pike.git/
src/
docode.c
Branch:
Tag:
Non-build tags
All tags
No tags
2014-08-10
2014-08-10 20:41:12 by Martin Nilsson <nilsson@opera.com>
c2c932064ba183b17a76160970d2075154df9c0f (
3
lines) (+
2
/-
1
)
[
Show
|
Annotate
]
Branch:
8.0
Remove Pike 0.6 support.
2309:
if(!is_const(case_val)) yyerror("Case label isn't constant.");
-
if (case_val->type
&& !TEST_COMPAT(0,6
)
)
{
+
if (case_val->type) {
if (!pike_types_le(case_val->type, current_switch.type)) { if (!match_types(case_val->type, current_switch.type)) { yytype_error("Type mismatch in case.",