From: ceriel Date: Thu, 26 Mar 1987 16:16:21 +0000 (+0000) Subject: another fix for an illegal initialisation struct X-Git-Tag: release-5-5~4328 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=4e19ece566df11b5d0928647ffb0d9f527060304;p=ack.git another fix for an illegal initialisation struct --- diff --git a/util/topgen/topgen.g b/util/topgen/topgen.g index ae72d3bb1..b570d8866 100644 --- a/util/topgen/topgen.g +++ b/util/topgen/topgen.g @@ -285,11 +285,11 @@ replacement (int *n;) | /* empty replacement, but there must be a * structure initializer anyway */ - { fputs("\t{\"\"",genc); + { fputs("\t{\"\", {",genc); for (i = 0; i < maxoperand; i++) { - fputs(",{\"\",-1,\"\"}",genc); + fprintf(genc, "%c{\"\",-1,\"\"}",i?',':' '); } - putc('}',genc); + fputs("}}",genc); } ] ;