summaryrefslogtreecommitdiff
path: root/glsl_symbol_table.h
AgeCommit message (Collapse)Author
2010-03-19Add query to determine whether a name was declared at this scopeIan Romanick
This will be used to prevent a variable and a function with the same name from being declared. As a side effect, the calls to add_{type,name,function} should never fail.
2010-03-19Use separate namespaces for types, variables, and functionsIan Romanick
This will allow types and their constructors to be easily stored in the same symbol table. This does add a potential problem that a shader could declare a variable and a function with the same name. This appears to be forbidden by the GLSL spec.
2010-03-19Add a GLSL-specific facade to _mesa_symbol_tableIan Romanick
This adds some type saftey and will enable elimination of a bunch of type casts and other ugly crap in the code.