mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-15 07:13:02 +00:00
debug: improve the display of symbol lists
* src/symtab.c (symbol_print): Remove useless quotes (the symbol already has quotes). Prefer fputs. * src/symlist.c (symbol_list_syms_print): Likewise. Fix separators.
This commit is contained in:
@@ -153,13 +153,13 @@ symbol_print (symbol const *s, FILE *f)
|
||||
{
|
||||
if (s)
|
||||
{
|
||||
fprintf (f, "\"%s\"", s->tag);
|
||||
fputs (s->tag, f);
|
||||
SYMBOL_ATTR_PRINT (type_name);
|
||||
SYMBOL_CODE_PRINT (destructor);
|
||||
SYMBOL_CODE_PRINT (printer);
|
||||
}
|
||||
else
|
||||
fprintf (f, "<NULL>");
|
||||
fputs ("<NULL>", f);
|
||||
}
|
||||
|
||||
#undef SYMBOL_ATTR_PRINT
|
||||
|
||||
Reference in New Issue
Block a user