diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2010-03-19 15:32:57 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-06-24 14:56:26 -0700 |
commit | 84341f4b2014810b2964230384fe76338be1d78e (patch) | |
tree | c1434f4b61d6a26d8fea5e397c264b531764fd30 /src/mesa/shader/symbol_table.h | |
parent | b5e381d9783f17c9a527ac38122444eac6807566 (diff) |
Make sure that symbols aren't multiply defined in the same scope.
The assembly parser is already checking this, but we're relying on the
symbol table handling it in glsl2.
Diffstat (limited to 'src/mesa/shader/symbol_table.h')
-rw-r--r-- | src/mesa/shader/symbol_table.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/shader/symbol_table.h b/src/mesa/shader/symbol_table.h index 0c054ef139..1d570fc1a0 100644 --- a/src/mesa/shader/symbol_table.h +++ b/src/mesa/shader/symbol_table.h @@ -33,6 +33,9 @@ extern void _mesa_symbol_table_pop_scope(struct _mesa_symbol_table *table); extern int _mesa_symbol_table_add_symbol(struct _mesa_symbol_table *symtab, int name_space, const char *name, void *declaration); +extern int _mesa_symbol_table_symbol_scope(struct _mesa_symbol_table *table, + int name_space, const char *name); + extern void *_mesa_symbol_table_find_symbol( struct _mesa_symbol_table *symtab, int name_space, const char *name); |