X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/716f248dcd69ff9c1adbf6140a7028b0dc19641c..55f0c7b1f26afabb7f356343f2650626e09fce51:/src/symlist.c?ds=inline diff --git a/src/symlist.c b/src/symlist.c index 662f1f7b..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); + } }