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.101 2001/02/21 18:25:25 grubba Exp $"); + RCSID("$Id: opcodes.c,v 1.102 2001/02/23 14:32:18 grubba 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))    Pike_error("Index permission denied.\n");   #endif
pike.git/src/opcodes.c:489:    if (!type) return;       switch(run_time_type)    {    case T_ARRAY:    {    struct pike_type *itype;    INT32 run_time_itype;       push_type_value(itype = index_type(type, int_type_string, 0)); -  run_time_itype=compile_type_to_runtime_type(itype); +  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)))    {    ref_push_array(a);
pike.git/src/opcodes.c:534:    pop_stack();    }    break;       case T_MULTISET:    {    struct pike_type *itype;    INT32 run_time_itype;       push_type_value(itype = key_type(type, 0)); -  run_time_itype=compile_type_to_runtime_type(itype); +  run_time_itype = compile_type_to_runtime_type(itype);       if(run_time_itype != T_MIXED)    {    struct multiset *m;    struct array *tmp=sp[-2].u.multiset->ind;    DECLARE_CYCLIC();       if((m=(struct multiset *)BEGIN_CYCLIC(tmp,0)))    {    ref_push_multiset(m);
pike.git/src/opcodes.c:583:    }    break;       case T_MAPPING:    {    struct pike_type *itype, *vtype;    INT32 run_time_itype;    INT32 run_time_vtype;       push_type_value(itype = key_type(type, 0)); -  run_time_itype=compile_type_to_runtime_type(itype); +  run_time_itype = compile_type_to_runtime_type(itype);       push_type_value(vtype = index_type(type, mixed_type_string, 0)); -  run_time_vtype=compile_type_to_runtime_type(vtype); +  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)))    {