X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/716f248dcd69ff9c1adbf6140a7028b0dc19641c..127287e9c478d3b29f6671cab599131443443f95:/src/symlist.c 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); + } }