Branch: Tag:

2001-08-16

2001-08-16 04:38:53 by Martin Stjernholm <mast@lysator.liu.se>

Further cleanups and some bug fixes in the error handling during cpp and
compilation. Errors in resolv, handle_inherit and handle_import are sent to
compile_exception, but those thrown by compile_error, compile_warning and
compile_exception are handled by the normal handle_error. Replaced some
more SAFE_APPLY_MASTER with safe_apply_handler.

Rev: src/cpp.c:1.93
Rev: src/interpret.c:1.243
Rev: src/interpret.h:1.98
Rev: src/language.yacc:1.260
Rev: src/las.c:1.265
Rev: src/preprocessor.h:1.45
Rev: src/program.c:1.366
Rev: src/program.h:1.143

5:   \*/      /* -  * $Id: program.h,v 1.142 2001/08/15 20:58:44 mast Exp $ +  * $Id: program.h,v 1.143 2001/08/16 04:38:53 mast Exp $    */   #ifndef PROGRAM_H   #define PROGRAM_H
414:   void compiler_do_inherit(node *n,    INT32 flags,    struct pike_string *name); + int call_handle_inherit(struct pike_string *s);   void simple_do_inherit(struct pike_string *s,    INT32 flags,    struct pike_string *name);
600:   #define add_function pike_add_function   #endif    + #define ADD_INHERIT(PROGRAM, FLAGS) \ +  low_inherit((PROGRAM), 0, 0, 0, (FLAGS), 0) +    #define START_NEW_PROGRAM_ID(ID) do { \    start_new_program(); \    Pike_compiler->new_program->id=PIKE_CONCAT3(PROG_,ID,_ID); \