diff options
author | Michal Krol <[email protected]> | 2009-11-10 20:49:45 +0100 |
---|---|---|
committer | Michal Krol <[email protected]> | 2009-11-10 20:49:45 +0100 |
commit | d44cebd1ee7b3e461e264150a28c9d49a0f69f8f (patch) | |
tree | 8d850a088a2610fbd8ac2c5cef61f74d2fe7277d /src/glsl/pp/sl_pp_purify.h | |
parent | 4703d7d3f8d50a0ff00dd043e999b0b8b11d45e6 (diff) |
glsl/pp: Add sl_pp_purify_getc().
Diffstat (limited to 'src/glsl/pp/sl_pp_purify.h')
-rw-r--r-- | src/glsl/pp/sl_pp_purify.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/glsl/pp/sl_pp_purify.h b/src/glsl/pp/sl_pp_purify.h index 88ea9c9e7a7..c0f55cbfd89 100644 --- a/src/glsl/pp/sl_pp_purify.h +++ b/src/glsl/pp/sl_pp_purify.h @@ -41,4 +41,23 @@ sl_pp_purify(const char *input, unsigned int cberrormsg, unsigned int *errorline); +struct sl_pp_purify_state { + struct sl_pp_purify_options options; + const char *input; + unsigned int current_line; + unsigned int inside_c_comment:1; +}; + +void +sl_pp_purify_state_init(struct sl_pp_purify_state *state, + const char *input, + const struct sl_pp_purify_options *options); + +unsigned int +sl_pp_purify_getc(struct sl_pp_purify_state *state, + char *output, + unsigned int *current_line, + char *errormsg, + unsigned int cberrormsg); + #endif /* SL_PP_PURIFY_H */ |