From 00a231499951a9d343625e8a7eaa200579f87969 Mon Sep 17 00:00:00 2001 From: ceriel Date: Mon, 24 Nov 1986 21:24:42 +0000 Subject: [PATCH] make to work with newer version of LLgen. --- util/topgen/topgen.g | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) 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; } : -- 2.34.1