Commit 611a37e7 authored by Mark Andrews's avatar Mark Andrews
Browse files

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

parent fa41ee66
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment