X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/867a3e0085abd0281d41a7a1a56dea143dadf4eb..d1ff7a7cc62900b658ee4bb8cb2a2c6a1b0a2bea:/src/symlist.c diff --git a/src/symlist.c b/src/symlist.c index 36156261..106db46c 100644 --- a/src/symlist.c +++ b/src/symlist.c @@ -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); + } } @@ -118,7 +122,6 @@ symbol_list_n_type_name_get (symbol_list *rp, location loc, int n) if (rp == NULL || rp->sym == NULL) { complain_at (loc, _("invalid $ value: $%d"), n); - fprintf (stderr, "\n"); return NULL; } ++i;