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.103 2001/03/04 19:27:18 mirar Exp $"); + RCSID("$Id: opcodes.c,v 1.104 2001/03/31 15:36:03 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:416:    {    INT32 lineno;    push_text(get_line(Pike_fp->pc, Pike_fp->context.prog, &lineno));    }else{    push_int(0);    }    APPLY_MASTER("cast_to_object",2);    return;       case T_FUNCTION: +  if (Pike_sp[-1].subtype == FUNCTION_BUILTIN) { +  Pike_error("Cannot cast builtin functions to object.\n"); +  } else {    sp[-1].type = T_OBJECT; -  +  }    break;       default:    Pike_error("Cannot cast %s to object.\n",get_name_of_type(sp[-1].type));    }    break;       case T_PROGRAM:    switch(sp[-1].type)    {