Branch: Tag:

2001-11-10

2001-11-10 19:43:52 by Martin Stjernholm <mast@lysator.liu.se>

Use global constants for the message strings in various common macros. Fixed
constness in some prototypes.

Rev: src/error.c:1.79
Rev: src/interpret.c:1.252
Rev: src/interpret.h:1.105
Rev: src/pike_error.h:1.16
Rev: src/svalue.c:1.127
Rev: src/svalue.h:1.98

5:   \*/   /**/   #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"
70:   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