Branch: Tag:

2001-07-12

2001-07-12 23:15:42 by Fredrik H├╝binette (Hubbe) <hubbe@hubbe.net>

changed an enum to defines to allow #ifdefs, also added some functions to object.c

Rev: bin/precompile.pike:1.58
Rev: src/modules/files/file.c:1.218
Rev: src/object.c:1.178
Rev: src/object.h:1.63
Rev: src/program.c:1.352
Rev: src/program.h:1.137

5:   \*/   /**/   #include "global.h" - RCSID("$Id: program.c,v 1.351 2001/07/11 18:12:37 grubba Exp $"); + RCSID("$Id: program.c,v 1.352 2001/07/12 23:15:41 hubbe Exp $");   #include "program.h"   #include "object.h"   #include "dynamic_buffer.h"
2068:   }      typedef void (*oldhandlertype)(struct object *); - static void compat_event_handler(enum pike_program_event e) + static void compat_event_handler(int e)   {    oldhandlertype handler;    handler=((oldhandlertype *)Pike_fp->context.prog->program)[e];
2084:       for(d=0;d<NUM_PROG_EVENTS;d++) {    /* FIXME: This looks like it might be broken. */ +  /* Broken how? -Hubbe */   #ifdef HAVE_COMPUTED_GOTO    add_to_program(Pike_compiler->new_program->event_handler);   #else /* !HAVE_COMPUTED_GOTO */
2156:    ((oldhandlertype *)Pike_compiler->new_program->program)[PROG_EVENT_GC_CHECK]=m;   }    - void pike_set_prog_event_callback(void (*cb)(enum pike_program_event)) + void pike_set_prog_event_callback(void (*cb)(int))   {   #ifdef PIKE_DEBUG    if(Pike_compiler->new_program->event_handler)