198c198,199
<   fprintf (ftable, "#ifndef __STDC__\n#define const\n#endif\n\n");
---
>   fprintf (ftable, "#ifdef __STDC__\n#define CONST const\n#else\n#define CONST\
> \n#endif\n\n");
226,228c227,229
<         fprintf(ftable, "\nstatic const char yytranslate[] = {     0");
<       else
< 	fprintf(ftable, "\nstatic const short yytranslate[] = {     0");
---
>         fprintf(ftable, "\nstatic CONST char yytranslate[] = {     0");
>       else
> 	fprintf(ftable, "\nstatic CONST short yytranslate[] = {     0");
264c265
<   fprintf(ftable, "\nstatic const short yyprhs[] = {     0");
---
>   fprintf(ftable, "\nstatic CONST short yyprhs[] = {     0");
284c285
<   fprintf(ftable, "\n};\n\nstatic const short yyrhs[] = {%6d", ritem[0]);
---
>   fprintf(ftable, "\n};\n\nstatic CONST short yyrhs[] = {%6d", ritem[0]);
317c318
<   fprintf(ftable, "\nstatic const short yystos[] = {     0");
---
>   fprintf(ftable, "\nstatic CONST short yystos[] = {     0");
347c348
<   fprintf(ftable, "\nstatic const short yyrline[] = {     0");
---
>   fprintf(ftable, "\nstatic CONST short yyrline[] = {     0");
369c370
<   fprintf(ftable, "\n};\n\nstatic const char * yytname[] = {     0");
---
>   fprintf(ftable, "\n};\n\nstatic CONST char * yytname[] = {     0");
406c407
<   fprintf(ftable, "\n};\n\nstatic const short yyr1[] = {     0");
---
>   fprintf(ftable, "\n};\n\nstatic CONST short yyr1[] = {     0");
428c429
<   fprintf(ftable, "\n};\n\nstatic const short yyr2[] = {     0");
---
>   fprintf(ftable, "\n};\n\nstatic CONST short yyr2[] = {     0");
461c462
<   fprintf(ftable, "#define\tYYFLAG\t\t%d\n", MINSHORT);
---
>   fprintf(ftable, "#define\tYYFLAG\t\t%ld\n", (long)MINSHORT);
514c515
<   fprintf(ftable, "\nstatic const short yydefact[] = {%6d", k);
---
>   fprintf(ftable, "\nstatic CONST short yydefact[] = {%6d", k);
772c773
<   fprintf(ftable, "\nstatic const short yydefgoto[] = {%6d", k);
---
>   fprintf(ftable, "\nstatic CONST short yydefgoto[] = {%6d", k);
1087c1088
<   fprintf(ftable, "\nstatic const short yypact[] = {%6d", base[0]);
---
>   fprintf(ftable, "\nstatic CONST short yypact[] = {%6d", base[0]);
1107c1108
<   fprintf(ftable, "\n};\n\nstatic const short yypgoto[] = {%6d", base[nstates]);
---
>   fprintf(ftable, "\n};\n\nstatic CONST short yypgoto[] = {%6d", base[nstates]);
1139c1140
<   fprintf(ftable, "\nstatic const short yytable[] = {%6d", table[0]);
---
>   fprintf(ftable, "\nstatic CONST short yytable[] = {%6d", table[0]);
1170c1171
<   fprintf(ftable, "\nstatic const short yycheck[] = {%6d", check[0]);
---
>   fprintf(ftable, "\nstatic CONST short yycheck[] = {%6d", check[0]);
