pike.git / src / opcodes.c

version» Context lines:

pike.git/src/opcodes.c:19:   #include "pike_types.h"   #include "pike_memory.h"   #include "fd_control.h"   #include "cyclic.h"   #include "builtin_functions.h"   #include "module_support.h"   #include "security.h"   #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)   {    INT32 i;      #ifdef PIKE_SECURITY    if(what->type <= MAX_COMPLEX)    if(!CHECK_DATA_SECURITY(what->u.array, SECURITY_BIT_INDEX))    error("Index permission denied.\n");   #endif
pike.git/src/opcodes.c:440:       if (!type) return;       switch(run_time_type)    {    case T_ARRAY:    {    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)    {    struct array *a;    struct array *tmp=sp[-2].u.array;    DECLARE_CYCLIC();       if((a=(struct array *)BEGIN_CYCLIC(tmp,0)))    {
pike.git/src/opcodes.c:537:       case T_MAPPING:    {    struct pike_string *itype,*vtype;    INT32 run_time_itype;    INT32 run_time_vtype;       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 ||    run_time_vtype != T_MIXED)    {    struct mapping *m;    struct mapping *tmp=sp[-3].u.mapping;    DECLARE_CYCLIC();       if((m=(struct mapping *)BEGIN_CYCLIC(tmp,0)))