pike.git / src / interpret.h

version» Context lines:

pike.git/src/interpret.h:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: interpret.h,v 1.170 2007/06/17 01:33:51 mast Exp $ + || $Id: interpret.h,v 1.171 2008/02/27 23:59:13 grubba Exp $   */      #ifndef INTERPRET_H   #define INTERPRET_H      #include "global.h"   #include "program.h"   #include "pike_error.h"   #include "object.h"   #include "pike_rusage.h"
pike.git/src/interpret.h:82:    struct svalue *save_sp;       /**    * This tells us the current level of svalues on the stack that can    * be discarded once the current function is done with them    */    struct svalue *expendible;    struct svalue **save_mark_sp;    struct svalue **mark_sp_base;    struct object *current_object; +  struct program *current_program; /* program containing the context. */ +  struct inherit *context; +  char *current_storage;       DO_IF_SECURITY(struct object *current_creds;)   #if defined(PROFILING)    cpu_time_t children_base; /** Accounted time when the frame started. */    cpu_time_t start_time; /** Adjusted time when thr frame started. */    cpu_time_t self_time_base; /* ??? */   #endif -  struct inherit context; -  char *current_storage; +    };      #define PIKE_FRAME_RETURN_INTERNAL 1   #define PIKE_FRAME_RETURN_POP 2   #define PIKE_FRAME_MALLOCED_LOCALS 0x8000      struct external_variable_context   {    struct object *o;    struct inherit *inherit;
pike.git/src/interpret.h:599:    }); \    self_time = time_passed - time_in_children; \    DO_IF_DEBUG(if (self_time < 0) { \    Pike_fatal("Negative self_time: %" PRINT_CPU_TIME \    " time_passed: %" PRINT_CPU_TIME \    " time_in_children: %" PRINT_CPU_TIME \    "\n", self_time, time_passed, \    time_in_children); \    }); \    Pike_interpreter.accounted_time += self_time; \ -  /* FIXME: Can context.prog be NULL? */ \ -  function = _fp_->context.prog->identifiers + _fp_->ident; \ +  /* FIXME: Can context->prog be NULL? */ \ +  function = _fp_->context->prog->identifiers + _fp_->ident; \    /* function->total_time = \    Pike_fp->self_time_base + time_passed; */ \    function->total_time += time_passed; \    function->self_time += self_time; \    }); \    LOW_POP_PIKE_FRAME (_fp_); \    }while(0)         enum apply_type
pike.git/src/interpret.h:789:   #else /* !__ECL */   #define apply_low(O,FUN,ARGS) \    mega_apply(APPLY_LOW, (ARGS), (void*)(O),(void*)(ptrdiff_t)(FUN))      #define strict_apply_svalue(SVAL,ARGS) \    mega_apply(APPLY_SVALUE, (ARGS), (void*)(SVAL),0)   #endif /* __ECL */      #define apply_current(FUN, ARGS) \    apply_low(Pike_fp->current_object, \ -  (FUN) + Pike_fp->context.identifier_level, \ +  (FUN) + Pike_fp->context->identifier_level, \    (ARGS))      PMOD_EXPORT extern int d_flag; /* really in main.c */      PMOD_EXPORT extern int Pike_stack_size;   PMOD_EXPORT struct callback;   PMOD_EXPORT extern struct callback_list evaluator_callbacks;      /* Things to try:    * we could reduce thread swapping to a pointer operation if