pike.git / src / interpret.c

version» Context lines:

pike.git/src/interpret.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   /**/   #include "global.h" - RCSID("$Id: interpret.c,v 1.116 1999/03/02 03:13:16 hubbe Exp $"); + RCSID("$Id: interpret.c,v 1.117 1999/03/17 21:51:30 hubbe Exp $");   #include "interpret.h"   #include "object.h"   #include "program.h"   #include "svalue.h"   #include "array.h"   #include "mapping.h"   #include "error.h"   #include "language.h"   #include "stralloc.h"   #include "constants.h"
pike.git/src/interpret.c:810:    fatal("Inherit offset out of range in program.\n");   #endif       /* init a new evaluation pike_frame */    new_frame->next = fp;    new_frame->current_object = o;    new_frame->context = p->inherits[ ref->inherit_offset ];       function = new_frame->context.prog->identifiers + ref->identifier_offset;    + #ifdef PIKE_DEBUG +  if(t_flag > 9) +  { +  fprintf(stderr,"-- ref: inoff=%d idoff=%d flags=%d\n", +  ref->inherit_offset, +  ref->identifier_offset, +  ref->id_flags); +  +  fprintf(stderr,"-- context: prog->id=%d inlev=%d idlev=%d pi=%d po=%d so=%d name=%s\n", +  new_frame->context.prog->id, +  new_frame->context.inherit_level, +  new_frame->context.identifier_level, +  new_frame->context.parent_identifier, +  new_frame->context.parent_offset, +  new_frame->context.storage_offset, +  new_frame->context.name ? new_frame->context.name->str : "NULL"); +  if(t_flag>19) +  { +  describe(new_frame->context.prog); +  } +  } + #endif +  +    #ifdef PIKE_SECURITY    CHECK_DATA_SECURITY_OR_ERROR(o, SECURITY_BIT_CALL, ("Function call permission denied.\n"));       if(!CHECK_DATA_SECURITY(o, SECURITY_BIT_NOT_SETUID))    SET_CURRENT_CREDS(o->prot);   #endif         #ifdef PROFILING    function->num_calls++;
pike.git/src/interpret.c:838:    new_frame->scope=scope;       add_ref(new_frame->current_object);    add_ref(new_frame->context.prog);    if(new_frame->context.parent) add_ref(new_frame->context.parent);    if(new_frame->scope) add_ref(new_frame->scope);       if(t_flag)    {    char buf[50]; +     init_buf();    sprintf(buf,"%lx->",(long)o);    my_strcat(buf);    my_strcat(function->name->str);    do_trace_call(args);    }       fp = new_frame;       if(function->func.offset == -1)