pike.git/
src/
docode.c
Branch:
Tag:
Non-build tags
All tags
No tags
2000-01-04
2000-01-04 01:29:11 by Henrik Grubbström (Grubba) <grubba@grubba.org>
271a6bf798149224b68530a73d90e4b6b3164e11 (
60
lines) (+
33
/-
27
)
[
Show
|
Annotate
]
Branch:
7.9
Avoid the "Count cases is wrong!" fatal...
Rev: src/docode.c:1.63
5:
\*/ /**/ #include "global.h"
-
RCSID("$Id: docode.c,v 1.
62
2000/01/04
00
:
39
:
04
grubba Exp $");
+
RCSID("$Id: docode.c,v 1.
63
2000/01/04
01
:
29
:
11
grubba Exp $");
#include "las.h" #include "program.h" #include "language.h"
963:
for(tmp1=current_switch_values_on_stack; tmp1 > 1; tmp1--) if(is_equal(sp-tmp1, sp-1)) yyerror("Duplicate case.");
-
+
} else {
+
push_int(0);
+
current_switch_values_on_stack++;
+
}
current_switch_jumptable[current_switch_case++]=ins_label(-1); if(CDR(n))
994:
for(tmp1=current_switch_values_on_stack; tmp1 > 1; tmp1--) if(is_equal(sp-tmp1, sp-1)) yyerror("Duplicate case.");
+
} else {
+
push_int(0);
+
current_switch_values_on_stack++;
} current_switch_jumptable[current_switch_case++]=-1; }
1001:
current_switch_jumptable[current_switch_case++]=-1; } }
-
}
+
return 0; }