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.36 1999/04/13 20:10:08 hubbe Exp $"); + RCSID("$Id: opcodes.c,v 1.37 1999/04/15 04:08:15 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:520:    pop_n_elems(2);    }    }   }         void f_cast(void)   {   #ifdef PIKE_DEBUG    struct svalue *save_sp=sp; +  if(sp[-2].type != T_STRING) +  fatal("Cast expression destroyed stack or left droppings!\n");   #endif    o_cast(sp[-2].u.string,    compile_type_to_runtime_type(sp[-2].u.string));   #ifdef PIKE_DEBUG    if(save_sp != sp)    fatal("Internal error: o_cast() left droppings on stack.\n");   #endif    free_svalue(sp-2);    sp[-2]=sp[-1];    sp--;