mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-14 14:53:03 +00:00
* 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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user