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.76 2000/07/05 23:01:48 hubbe Exp $"); + RCSID("$Id: opcodes.c,v 1.77 2000/07/07 15:31:14 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))    error("Index permission denied.\n");   #endif
pike.git/src/opcodes.c:381:       sp[-1].type=T_STRING;    sp[-1].u.string=make_shared_string(buf);    break;    }       case T_OBJECT:    switch(sp[-1].type)    {    case T_STRING: -  if(fp->pc) +  if(Pike_fp->pc)    {    INT32 lineno; -  push_text(get_line(fp->pc, fp->context.prog, &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:    sp[-1].type = T_OBJECT;    break;       default:    error("Cannot cast %s to object.\n",get_name_of_type(sp[-1].type));    }    break;       case T_PROGRAM:    switch(sp[-1].type)    {    case T_STRING: -  if(fp->pc) +  if(Pike_fp->pc)    {    INT32 lineno; -  push_text(get_line(fp->pc, fp->context.prog, &lineno)); +  push_text(get_line(Pike_fp->pc, Pike_fp->context.prog, &lineno));    }else{    push_int(0);    }    APPLY_MASTER("cast_to_program",2);    return;       case T_FUNCTION:    {    struct program *p=program_from_function(sp-1);    if(p)