diff options
author | Samuel Iglesias Gonsálvez <[email protected]> | 2016-10-20 09:04:59 +0200 |
---|---|---|
committer | Samuel Iglesias Gonsálvez <[email protected]> | 2016-10-26 11:57:02 +0200 |
commit | dfbdb2c0b3559c46d93f10d636a88b9541304fc7 (patch) | |
tree | c600fbac7cf559e59025d1aa9c1627c29164aa47 /src/mesa/program/symbol_table.h | |
parent | 2e423ca1477bd212c01676c5e4828ebdb83310d8 (diff) |
mesa/program: Add _mesa_symbol_table_replace_symbol()
This function allows to modify an existing symbol.
v2:
- Remove namespace usage now that it was deleted.
Signed-off-by: Samuel Iglesias Gonsálvez <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/program/symbol_table.h')
-rw-r--r-- | src/mesa/program/symbol_table.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/program/symbol_table.h b/src/mesa/program/symbol_table.h index ff1e6f2065a..cba47143ef2 100644 --- a/src/mesa/program/symbol_table.h +++ b/src/mesa/program/symbol_table.h @@ -32,6 +32,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, const char *name, void *declaration); +extern int _mesa_symbol_table_replace_symbol(struct _mesa_symbol_table *table, + const char *name, + void *declaration); + extern int _mesa_symbol_table_add_global_symbol(struct _mesa_symbol_table *symtab, const char *name, |