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_lexer.lpp | |
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_lexer.lpp')
-rw-r--r-- | glsl_lexer.lpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/glsl_lexer.lpp b/glsl_lexer.lpp index cd150f81ca..9a3037a8ff 100644 --- a/glsl_lexer.lpp +++ b/glsl_lexer.lpp @@ -330,11 +330,10 @@ precision return PRECISION; %% void -_mesa_glsl_lexer_ctor(struct _mesa_glsl_parse_state *state, - const char *string, size_t len) +_mesa_glsl_lexer_ctor(struct _mesa_glsl_parse_state *state, const char *string) { yylex_init_extra(state, & state->scanner); - yy_scan_bytes(string, len, state->scanner); + yy_scan_string(string, state->scanner); } void |