From: ceriel Date: Mon, 24 Nov 1986 21:24:42 +0000 (+0000) Subject: make to work with newer version of LLgen. X-Git-Tag: release-5-5~5142 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=00a231499951a9d343625e8a7eaa200579f87969;p=ack.git make to work with newer version of LLgen. --- diff --git a/util/topgen/topgen.g b/util/topgen/topgen.g index d3413b6cd..1b27f0eee 100644 --- a/util/topgen/topgen.g +++ b/util/topgen/topgen.g @@ -34,7 +34,13 @@ optim_description } separator SPACE* mode_definitions separator SPACE* patterns - separator user_routines + separator + { register int c; + fprintf(genc, linedir, lineno, inpfile); + while ((c = getc(input)) != EOF) { + putc(c,genc); + } + } ; parameter_line @@ -282,14 +288,6 @@ replacement (int *n;) ] ; -user_routines - {register c;} : - { fprintf(genc, linedir, lineno, inpfile); - while ((c = getc(input)) != EOF) { - putc(c,genc); - } - } -; identifier { char *p = idbuf; } :