Branch: Tag:

1999-12-07

1999-12-07 09:41:02 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

improved type checking (I hope)

Rev: src/Makefile.in:1.171
Rev: src/builtin_functions.c:1.218
Rev: src/constants.c:1.19
Rev: src/constants.h:1.10
Rev: src/las.c:1.135
Rev: src/opcodes.c:1.68
Rev: src/pike_types.c:1.85
Rev: src/pike_types.h:1.28
Rev: src/program.c:1.178
Rev: src/testsuite.in:1.248

26:   #include "bignum.h"   #include "operators.h"    - RCSID("$Id: opcodes.c,v 1.67 1999/11/08 18:14:08 hubbe Exp $"); + RCSID("$Id: opcodes.c,v 1.68 1999/12/07 09:40:58 hubbe Exp $");      void index_no_free(struct svalue *to,struct svalue *what,struct svalue *ind)   {
447:    struct pike_string *itype;    INT32 run_time_itype;    -  push_string(itype=index_type(type,0)); +  push_string(itype=index_type(type,mixed_type_string,0));    run_time_itype=compile_type_to_runtime_type(itype);       if(run_time_itype != T_MIXED)
544:    push_string(itype=key_type(type,0));    run_time_itype=compile_type_to_runtime_type(itype);    -  push_string(vtype=index_type(type,0)); +  push_string(vtype=index_type(type,mixed_type_string,0));    run_time_vtype=compile_type_to_runtime_type(vtype);       if(run_time_itype != T_MIXED ||