diff options
author | Michal Krol <michal@vmware.com> | 2009-11-21 20:41:48 +0100 |
---|---|---|
committer | Michal Krol <michal@vmware.com> | 2009-11-21 20:41:48 +0100 |
commit | abe1f332983e5c70d75b5ae83f06c0dfdd081a26 (patch) | |
tree | 93fb1dec081fdffe0c80b041a21b1a01a0730ead /src/glsl/pp/sl_pp_context.h | |
parent | b89cd8afc510541a18f2f5c04884637626e104e1 (diff) |
glsl/pp: Do purification and tokenisation in a single step.
Diffstat (limited to 'src/glsl/pp/sl_pp_context.h')
-rw-r--r-- | src/glsl/pp/sl_pp_context.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/glsl/pp/sl_pp_context.h b/src/glsl/pp/sl_pp_context.h index 6b8cc2f960..569a2d735b 100644 --- a/src/glsl/pp/sl_pp_context.h +++ b/src/glsl/pp/sl_pp_context.h @@ -30,6 +30,7 @@ #include "sl_pp_dict.h" #include "sl_pp_macro.h" +#include "sl_pp_purify.h" #define SL_PP_MAX_IF_NESTING 64 @@ -53,10 +54,12 @@ struct sl_pp_context { unsigned int line; unsigned int file; -}; -int -sl_pp_context_add_unique_str(struct sl_pp_context *context, - const char *str); + struct sl_pp_purify_state pure; + + char *getc_buf; + unsigned int getc_buf_size; + unsigned int getc_buf_capacity; +}; #endif /* SL_PP_CONTEXT_H */ |