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:
Akim Demaille
2013-02-09 16:07:09 +01:00
parent ec6dc4375e
commit 848bcc288d
2 changed files with 10 additions and 5 deletions

View File

@@ -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