X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fprogram%2Fsymbol_table.h;h=6db2164fc21af09e083d1ab4e25035be267a39cd;hb=HEAD;hp=1027f476110dff42793f5f0a8e0ebf9d7bc8954b;hpb=aa0d95a08dbf8f0e3ed66b624ccbc60753b61ef1;p=mesa.git diff --git a/src/mesa/program/symbol_table.h b/src/mesa/program/symbol_table.h index 1027f476110..6db2164fc21 100644 --- a/src/mesa/program/symbol_table.h +++ b/src/mesa/program/symbol_table.h @@ -23,6 +23,10 @@ #ifndef MESA_SYMBOL_TABLE_H #define MESA_SYMBOL_TABLE_H +#ifdef __cplusplus +extern "C" { +#endif + struct _mesa_symbol_table; extern void _mesa_symbol_table_push_scope(struct _mesa_symbol_table *table); @@ -30,20 +34,29 @@ extern void _mesa_symbol_table_push_scope(struct _mesa_symbol_table *table); 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); + 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, int name_space, const char *name, - void *declaration); +extern int +_mesa_symbol_table_add_global_symbol(struct _mesa_symbol_table *symtab, + const char *name, + void *declaration); extern int _mesa_symbol_table_symbol_scope(struct _mesa_symbol_table *table, - int name_space, const char *name); + const char *name); -extern void *_mesa_symbol_table_find_symbol( - struct _mesa_symbol_table *symtab, int name_space, const char *name); +extern void *_mesa_symbol_table_find_symbol(struct _mesa_symbol_table *symtab, + const char *name); extern struct _mesa_symbol_table *_mesa_symbol_table_ctor(void); extern void _mesa_symbol_table_dtor(struct _mesa_symbol_table *); +#ifdef __cplusplus +} +#endif + #endif /* MESA_SYMBOL_TABLE_H */