pike.git / src / interpret.h

version» Context lines:

pike.git/src/interpret.h: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.   \*/      /* -  * $Id: interpret.h,v 1.63 2000/08/09 12:49:27 grubba Exp $ +  * $Id: interpret.h,v 1.64 2000/08/17 18:20:44 grubba Exp $    */   #ifndef INTERPRET_H   #define INTERPRET_H      #include "global.h"   #include "program.h"   #include "error.h"      struct Pike_interpreter {    /* Swapped variables */
pike.git/src/interpret.h:65: Inside #if defined(PIKE_DEBUG)
     #ifdef PIKE_DEBUG   #define debug_check_stack() do{if(Pike_sp<Pike_interpreter.evaluator_stack)fatal("Stack error.\n");}while(0)   #define check__positive(X,Y) if((X)<0) fatal Y   #include "error.h"   #else   #define check__positive(X,Y)   #define debug_check_stack()   #endif    - #define check_stack(X) do { \ -  if(Pike_sp - Pike_interpreter.evaluator_stack + (X) >= Pike_stack_size) \ + #define check_stack(X) do { \ +  if(Pike_sp - Pike_interpreter.evaluator_stack + (X) >= Pike_stack_size) \    error("Svalue stack overflow. " \ -  "(%d of %d entries on stack, needed %d more entries)\n", \ -  Pike_sp-Pike_interpreter.evaluator_stack,Pike_stack_size,(X)); \ +  "(%ld of %ld entries on stack, needed %ld more entries)\n", \ +  PTRDIFF_T_TO_LONG(Pike_sp - Pike_interpreter.evaluator_stack), \ +  PTRDIFF_T_TO_LONG(Pike_stack_size), \ +  PTRDIFF_T_TO_LONG(X)); \    }while(0)      #define check_mark_stack(X) do { \    if(Pike_mark_sp - Pike_interpreter.mark_stack + (X) >= Pike_stack_size) \    error("Mark stack overflow.\n"); \    }while(0)      #define check_c_stack(X) do { \    ptrdiff_t x_= ((char *)&x_) + STACK_DIRECTION * (X) - Pike_interpreter.stack_top ; \    x_*=STACK_DIRECTION; \