pike.git / src / opcodes.c

version» Context lines:

pike.git/src/opcodes.c:16:   #include "opcodes.h"   #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"    - RCSID("$Id: opcodes.c,v 1.36 2001/03/31 15:39:52 grubba Exp $"); + RCSID("$Id: opcodes.c,v 1.37 2001/03/31 15:41:23 grubba Exp $");      void index_no_free(struct svalue *to,struct svalue *what,struct svalue *ind)   {    INT32 i;    switch(what->type)    {    case T_ARRAY:    simple_array_index_no_free(to,what->u.array,ind);    break;   
pike.git/src/opcodes.c:295:    INT32 lineno;    push_text(get_line(fp->pc, fp->context.prog, &lineno));    }else{    push_int(0);    }    APPLY_MASTER("cast_to_object",2);    return;       case T_FUNCTION:    if (sp[-1].subtype == FUNCTION_BUILTIN) { -  Pike_error("Cannot cast builtin functions to object.\n"); +  error("Cannot cast builtin functions to object.\n");    } else {    sp[-1].type = T_OBJECT;    }    break;       default:    error("Cannot cast %s to object.\n",get_name_of_type(sp[-1].type));    }    break;