some tables are static now
authorceriel <none@none>
Fri, 24 Jun 1988 09:32:15 +0000 (09:32 +0000)
committerceriel <none@none>
Fri, 24 Jun 1988 09:32:15 +0000 (09:32 +0000)
util/LLgen/src/gencode.c

index b661d02..8b6704b 100644 (file)
@@ -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);
                }