Branch: Tag:

1999-11-04

1999-11-04 02:35:31 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added support to specify an error handler to compile() et al.

Rev: lib/master.pike.in:1.66
Rev: src/language.yacc:1.129
Rev: src/program.c:1.170
Rev: src/program.h:1.65

5:   \*/      /* -  * $Id: program.h,v 1.64 1999/10/29 03:34:34 mast Exp $ +  * $Id: program.h,v 1.65 1999/11/04 02:35:27 grubba Exp $    */   #ifndef PROGRAM_H   #define PROGRAM_H
278:   #define free_program(p) do{ struct program *_=(p); debug_malloc_touch(_); if(!--_->refs) really_free_program(_); }while(0)       + extern struct object *error_handler; +    extern struct object *fake_object;   extern struct program *new_program;   extern struct program *first_program;
420:   void store_linenumber(INT32 current_line, struct pike_string *current_file);   char *get_line(unsigned char *pc,struct program *prog,INT32 *linep);   void my_yyerror(char *fmt,...) ATTRIBUTE((format(printf,1,2))); - struct program *compile(struct pike_string *prog); + struct program *compile(struct pike_string *prog, struct object *handler);   int add_function(char *name,void (*cfun)(INT32),char *type,INT16 flags);   int quick_add_function(char *name,    int name_length,