diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2010-06-21 11:43:42 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2010-06-21 12:41:05 -0700 |
commit | 4a2bbdacfc29460de09e5f806fcc96040ad17dc4 (patch) | |
tree | 9cdada229c0a4770457703740010a251a4d4ae76 /glsl_parser_extras.h | |
parent | 26e761edb26322eab497e884fcf7ae35fb3fd3e5 (diff) |
Use yy_scan_string and stop caring about shader->SourceLen.
We had to call strlen on the preprocessed source, which seemed a bit
pointless; also, we updated shader->SourceLen but not shader->Source,
which was even more confusing. Just leave both untouched.
Diffstat (limited to 'glsl_parser_extras.h')
-rw-r--r-- | glsl_parser_extras.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/glsl_parser_extras.h b/glsl_parser_extras.h index cad3424..1edd86b 100644 --- a/glsl_parser_extras.h +++ b/glsl_parser_extras.h @@ -102,11 +102,11 @@ extern void _mesa_glsl_warning(const YYLTYPE *locp, const char *fmt, ...); extern "C" { -extern int preprocess(void *ctx, const char **shader, size_t *shader_len); +extern int preprocess(void *ctx, const char **shader); } extern void _mesa_glsl_lexer_ctor(struct _mesa_glsl_parse_state *state, - const char *string, size_t len); + const char *string); extern void _mesa_glsl_lexer_dtor(struct _mesa_glsl_parse_state *state); |