pike.git / src / opcodes.c

version» Context lines:

pike.git/src/opcodes.c:16:   #include "object.h"   #include "error.h"   #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"    - RCSID("$Id: opcodes.c,v 1.41 1999/07/04 12:35:54 mirar Exp $"); + RCSID("$Id: opcodes.c,v 1.42 1999/07/27 16:41:37 mirar 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:365:    error("Cannot cast %s to a program.\n",get_name_of_type(sp[-1].type));    }    }    }      #ifdef PIKE_DEBUG    if(run_time_type != sp[-1].type)    fatal("Internal error: Cast failed (run_time_type = %d, sp[-1].type = %d.)\n",run_time_type,sp[-1].type);   #endif    +  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));    run_time_itype=compile_type_to_runtime_type(itype);