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.95 1998/10/16 02:44:36 hubbe Exp $"); + RCSID("$Id: interpret.c,v 1.96 1998/10/16 15:29:39 grubba 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:183:      void check_stack(INT32 size)   {    if(sp - evaluator_stack + size >= stack_size)    error("Stack overflow.\n");   }      void check_mark_stack(INT32 size)   {    if(mark_sp - mark_stack + size >= stack_size) -  error("Stack overflow.\n"); +  error("Mark stack overflow.\n");   }      void check_c_stack(INT32 size)   {    long x=((char *)&size) + STACK_DIRECTION * size - stack_top ;    x*=STACK_DIRECTION;    if(x>0) -  error("Stack overflow.\n"); +  error("C stack overflow.\n");   }         static int eval_instruction(unsigned char *pc);         /*    * lvalues are stored in two svalues in one of these formats:    * array[index] : { array, index }    * mapping[index] : { mapping, index }
pike.git/src/interpret.c:539: Inside #if defined(DEBUG)
   fatal("Stack error (generic).\n");       if(sp > evaluator_stack+stack_size)    fatal("Stack error (overflow).\n");       if(fp->fun>=0 && fp->current_object->prog &&    fp->locals+fp->num_locals > sp)    fatal("Stack error (stupid!).\n");       if(recoveries && sp-evaluator_stack < recoveries->sp) -  fatal("Stack error (underflow)\n"); +  fatal("Stack error (underflow).\n");       if(d_flag > 9) do_debug();       backlogp++;    if(backlogp >= BACKLOG) backlogp=0;       if(backlog[backlogp].program)    free_program(backlog[backlogp].program);       backlog[backlogp].program=fp->context.prog;
pike.git/src/interpret.c:2297: Inside #if defined(DEBUG)
     #ifdef DEBUG   void slow_check_stack(void)   {    struct svalue *s,**m;    struct frame *f;       debug_check_stack();       if(sp > &(evaluator_stack[stack_size])) -  fatal("Stack overflow\n"); +  fatal("Stack overflow.\n");       if(mark_sp > &(mark_stack[stack_size]))    fatal("Mark stack overflow.\n");       if(mark_sp < mark_stack)    fatal("Mark stack underflow.\n");       for(s=evaluator_stack;s<sp;s++) check_svalue(s);       s=evaluator_stack;