summaryrefslogtreecommitdiff
path: root/src/mesa/program/symbol_table.h
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2010-12-06 10:42:27 -0800
committerKenneth Graunke <kenneth@whitecape.org>2010-12-06 13:43:22 -0800
commita8f52647b045b5400ebcfc58ba235599a6e9ad87 (patch)
treedc5c04fec64807773a8f1b1ef587e371ca991965 /src/mesa/program/symbol_table.h
parent6fae1e4c4d33769e2f255d50907b5aa0ab80edd4 (diff)
symbol_table: Add support for adding a symbol at top-level/global scope.
Diffstat (limited to 'src/mesa/program/symbol_table.h')
-rw-r--r--src/mesa/program/symbol_table.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/program/symbol_table.h b/src/mesa/program/symbol_table.h
index 1d570fc1a0..f9d91649bb 100644
--- a/src/mesa/program/symbol_table.h
+++ b/src/mesa/program/symbol_table.h
@@ -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);