mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-14 14:53:03 +00:00
We spend a lot of time in quotearg, in particular when --verbose.
* src/symtab.c (symbol_get): Store a quoted version of the key. (symbol_tag_get, symbol_tag_get_n, symbol_tag_print): Remove. Adjust all callers.
This commit is contained in:
11
src/symtab.h
11
src/symtab.h
@@ -91,17 +91,6 @@ struct symbol_s
|
||||
#define NUMBER_UNDEFINED ((symbol_number_t) -1)
|
||||
|
||||
|
||||
/* Return the tag of this SYMBOL in a printable form. Warning: uses
|
||||
the QUOTEARG slot 0. */
|
||||
const char *symbol_tag_get PARAMS ((symbol_t *symbol));
|
||||
|
||||
/* Return the tag of this SYMBOL in a printable form. Use the
|
||||
QUOTEARG slot number N. */
|
||||
const char *symbol_tag_get_n PARAMS ((symbol_t *symbol, int n));
|
||||
|
||||
/* Print the tag of this SYMBOL. */
|
||||
void symbol_tag_print PARAMS ((symbol_t *symbol, FILE *out));
|
||||
|
||||
/* Fetch (or create) the symbol associated to KEY. */
|
||||
symbol_t *symbol_get PARAMS ((const char *key, location_t location));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user