* src/symtab.h, src/symtab.c (symbol_from_uniqstr): New.

(symbol_get): Use it.
* src/parse-gram.y: Use it.
This commit is contained in:
Akim Demaille
2006-06-20 11:39:22 +00:00
parent 1b818f33ad
commit 203b927414
6 changed files with 142 additions and 122 deletions

View File

@@ -97,6 +97,9 @@ struct symbol
/* Print a symbol (for debugging). */
void symbol_print (symbol *s, FILE *f);
/* Fetch (or create) the symbol associated to KEY. */
symbol *symbol_from_uniqstr (const uniqstr key, location loc);
/* Fetch (or create) the symbol associated to KEY. */
symbol *symbol_get (const char *key, location loc);