* src/symtab.h, src/symtab.c (symbol_print): Swap the arguments,

for consistency with the rest of the code.
* src/symlist.h, src/symlist.c (symbol_list_print): Ditto.
Add separators.
This commit is contained in:
Akim Demaille
2005-07-12 15:58:49 +00:00
parent 82b248ada6
commit 22dda0f004
5 changed files with 17 additions and 6 deletions

View File

@@ -49,10 +49,14 @@ symbol_list_new (symbol *sym, location loc)
`------------------*/
void
symbol_list_print (FILE *f, symbol_list *l)
symbol_list_print (symbol_list *l, FILE *f)
{
for (/* Nothing. */; l; l = l->next)
symbol_print (f, l->sym);
for (/* Nothing. */; l && l->sym; l = l->next)
{
symbol_print (l->sym, f);
if (l && l->sym)
fputc (' ', f);
}
}