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.251 2001/10/22 19:09:48 mast Exp $"); + RCSID("$Id: interpret.c,v 1.252 2001/11/10 19:43:51 mast Exp $");   #include "interpret.h"   #include "object.h"   #include "program.h"   #include "svalue.h"   #include "array.h"   #include "mapping.h"   #include "pike_error.h"   #include "language.h"   #include "stralloc.h"   #include "constants.h"
pike.git/src/interpret.c:63:   /* Keep some margin on the stack space checks. They're lifted when    * handle_error runs to give it some room. */   #define SVALUE_STACK_MARGIN 100 /* Tested in 7.1: 40 was enough, 30 wasn't. */   #define C_STACK_MARGIN 8000 /* Tested in 7.1: 3000 was enough, 2600 wasn't. */      #ifdef HAVE_COMPUTED_GOTO   PIKE_OPCODE_T *fcode_to_opcode = NULL;   struct op_2_f *opcode_to_fcode = NULL;   #endif /* HAVE_COMPUTED_GOTO */    - PMOD_EXPORT const char *Pike_check_stack_errmsg = + PMOD_EXPORT const char Pike_check_stack_errmsg[] =    "Svalue stack overflow. "    "(%ld of %ld entries on stack, needed %ld more entries)\n"; - PMOD_EXPORT const char *Pike_check_mark_stack_errmsg = + PMOD_EXPORT const char Pike_check_mark_stack_errmsg[] =    "Mark stack overflow.\n"; - PMOD_EXPORT const char *Pike_check_c_stack_errmsg = + PMOD_EXPORT const char Pike_check_c_stack_errmsg[] =    "C stack overflow.\n"; -  + #ifdef PIKE_DEBUG + PMOD_EXPORT const char msg_stack_error[] = +  "Stack error.\n"; + PMOD_EXPORT const char msg_pop_neg[] = +  "Popping negative number of args.... (%"PRINTPTRDIFFT"d) \n"; + #endif         #ifdef PIKE_DEBUG   static char trace_buffer[2000];   #endif         /* Pike_sp points to first unused value on stack    * (much simpler than letting it point at the last used value.)    */