summaryrefslogtreecommitdiff
path: root/glsl_lexer.lpp
AgeCommit message (Collapse)Author
2010-06-23Close memory leak in lexer.Carl Worth
Simply call talloc_strdup rather than strdup, (using the talloc_parent of our 'state' object, (known here as yyextra). This fix now makes glsl-orangebook-ch06-bump.frag 99.97% leak free: total heap usage: 55,623 allocs, 55,609 frees Only 14 missing frees now.
2010-06-23Remove comment support from the main lexer.Kenneth Graunke
Now handled by the preprocessor.
2010-06-21Use yy_scan_string and stop caring about shader->SourceLen.Kenneth Graunke
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.
2010-06-18glsl_lexer: centroid and invariant are not reserved words in GLSL 1.10Ian Romanick
2010-06-18glsl_lexer: Handle interpolation qualifiersIan Romanick
2010-05-03glsl_lexer: Quiet warning about unused unput().Eric Anholt
2010-04-26Initial implementation of #lineIan Romanick
Does not handle comments in #line or line continuation characters, but it should be good enough for now.
2010-04-07Eat whitespace while in the PP stateIan Romanick
2010-04-07Partially fix comment handling in preprocessor directives.Ian Romanick
Multi-line /* */ comments are still broken. I think this will wait to be fixed until we have a real preprocessor.
2010-03-19Don't track new type names during pass-1 parsingIan Romanick
This implementation was wrong anyway because it did not respect scoping rules. This will need to be revisited soon. The most likely result is that the grammar is going to need some significant re-work to be able to use a IDENTIFIER in all the places where a TYPE_NAME is currently used.
2010-02-25autoconf for the ...Ian Romanick