Branch: Tag:

2002-06-11

2002-06-11 17:48:11 by Martin Stjernholm <mast@lysator.liu.se>

Added #pragma dont_save_parent to be able to override when the constant
__pragma_save_parent__ has been set.

Rev: src/lexer.h:1.37
Rev: src/program.c:1.435
Rev: src/program.h:1.163

5:   \*/      /* -  * $Id: program.h,v 1.162 2002/06/11 17:41:36 mast Exp $ +  * $Id: program.h,v 1.163 2002/06/11 17:48:11 mast Exp $    */   #ifndef PROGRAM_H   #define PROGRAM_H
28:   /* Needed to support dynamic loading on NT */   PMOD_PROTO extern struct program_state * Pike_compiler;    - #ifdef PIKE_DEBUG - #define PROGRAM_LINE_ARGS int line, char *file - #else - #define PROGRAM_LINE_ARGS void - #endif -  +    extern struct pike_string *this_program_string;      #define LFUN___INIT 0
221:      #define ID_STRICT_TYPES 0x8000 /* #pragma strict_types */   #define ID_SAVE_PARENT 0x10000 /* #pragma save_parent */ + #define ID_DONT_SAVE_PARENT 0x20000 /* #pragma dont_save_parent */         /*
471:    struct pike_string *name,    int flags,    int *idp); - PMOD_EXPORT void debug_start_new_program(PROGRAM_LINE_ARGS); + PMOD_EXPORT void debug_start_new_program(int line, char *file);   void dump_program_desc(struct program *p);   int sizeof_variable(int run_time_type);   void dump_program_tables (struct program *p, int indent);
726:   #ifdef PIKE_DEBUG   #define start_new_program() debug_start_new_program(__LINE__,__FILE__)   #else - #define start_new_program() debug_start_new_program() + #define start_new_program() debug_start_new_program(0, "native module")   #endif      #define gc_cycle_check_program(X, WEAK) \