Have to "break" at end of second level switch.

This commit is contained in:
Mark Andrews 1999-01-19 04:40:48 +00:00
parent fa41ee66c7
commit 611a37e72d

View file

@ -142,6 +142,7 @@ doswitch(char *name, char *function, char *args,
fprintf(stdout, "\t\tdefault: result = %s; \\\n",
res);
fputs(/*{*/ "\t\t} \\\n", stdout);
fputs("\t\tbreak; \\\n", stdout);
subswitch = 0;
}
if (tt->class && tt->type != lasttype) {
@ -164,6 +165,7 @@ doswitch(char *name, char *function, char *args,
if (subswitch) {
fprintf(stdout, "\t\tdefault: result = %s; \\\n", res);
fputs(/*{*/ "\t\t}\n", stdout);
fputs("\t\tbreak; \\\n", stdout);
}
if (first)
fprintf(stdout, "\n#define %s result = %s;\n", name, res);