From d20bfe4f68d5e9b4fb920fbfa90a100eff1c1d27 Mon Sep 17 00:00:00 2001 From: ceriel Date: Fri, 24 Jun 1988 09:32:15 +0000 Subject: [PATCH] some tables are static now --- util/LLgen/src/gencode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util/LLgen/src/gencode.c b/util/LLgen/src/gencode.c index b661d02ae..8b6704bd4 100644 --- a/util/LLgen/src/gencode.c +++ b/util/LLgen/src/gencode.c @@ -200,7 +200,7 @@ genrecovery() { fputs("\tLLoldlevel(s);\n}\n",f); } /* Now generate the sets */ - fputs("char LLsets[] = {\n",f); + fputs("static char LLsets[] = {\n",f); for (psetl = setptr; psetl < maxptr; psetl++) prset(*psetl); fputs(c_arrend, f); index = (int *) alloc((unsigned) (assval * sizeof(int))); @@ -208,14 +208,14 @@ genrecovery() { for (t = tokens; t < maxt; t++) { index[t->t_tokno] = t - tokens; } - fputs("short LLindex[] = {\n",f); + fputs("static short LLindex[] = {\n",f); for (q = index; q < &index[assval]; q++) { fprintf(f, "%d,\n", *q); } fputs(c_arrend, f); free((p_mem) index); if (onerror) { - fputs("short LLtok[] = {\n", f); + fputs("static short LLtok[] = {\n", f); for (t = tokens; t < maxt; t++) { fprintf(f, t->t_tokno<0400 ? "'%s',\n" : "%s,\n",t->t_string); } -- 2.34.1