modified generation of token mapping somewhat

This commit is contained in:
ceriel
1988-06-24 11:48:10 +00:00
parent 52dcb766dc
commit ff186b2daa
3 changed files with 11 additions and 12 deletions

View File

@@ -208,8 +208,8 @@ genrecovery() {
for (t = tokens; t < maxt; t++) {
index[t->t_tokno] = t - tokens;
}
fputs("static short LLindex[] = {\n",f);
for (q = index; q < &index[assval]; q++) {
fputs("#define LLindex (LL_index+1)\nstatic short LL_index[] = {0,0,\n",f);
for (q = index+1; q < &index[assval]; q++) {
fprintf(f, "%d,\n", *q);
}
fputs(c_arrend, f);