Branch: Tag:

2000-09-26

2000-09-26 22:19:03 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

basic 0.6 compatibility implemented

Rev: lib/0.6/modules/Array.pmod:1.1
Rev: lib/0.6/modules/__default.pmod:1.1
Rev: lib/0.6/modules/readline.pmod:1.1
Rev: lib/master.pike.in:1.133
Rev: src/docode.c:1.83
Rev: src/language.yacc:1.214
Rev: src/las.c:1.216

5:   \*/   /**/   #include "global.h" - RCSID("$Id: docode.c,v 1.82 2000/09/11 18:42:25 grubba Exp $"); + RCSID("$Id: docode.c,v 1.83 2000/09/26 22:19:02 hubbe Exp $");   #include "las.h"   #include "program.h"   #include "pike_types.h"
1028:    if(!is_const(lower))    yyerror("Case label isn't constant.");    -  if (lower && lower->type) { +  if (lower && lower->type && !TEST_COMPAT(0,6)) {    if (!pike_types_le(lower->type, current_switch_type)) {    if (!match_types(lower->type, current_switch_type)) {    yytype_error("Type mismatch in case.",