symbol_table: Add support for adding a symbol at top-level/global scope.

This commit is contained in:
Kenneth Graunke
2010-12-06 10:42:27 -08:00
parent 6fae1e4c4d
commit a8f52647b0
2 changed files with 84 additions and 5 deletions

View File

@@ -33,6 +33,10 @@ 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_add_global_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);