Branch: Tag:

2001-03-12

2001-03-12 22:42:19 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

preparation for adding more event callbacks for C programs, also saves a little memory

Rev: src/encode.c:1.90
Rev: src/object.c:1.163
Rev: src/program.c:1.301
Rev: src/program.h:1.118

5:   \*/      /* -  * $Id: program.h,v 1.117 2001/02/24 18:23:15 grubba Exp $ +  * $Id: program.h,v 1.118 2001/03/12 22:42:19 hubbe Exp $    */   #ifndef PROGRAM_H   #define PROGRAM_H
254:   /* Program is in an inconsistant state */   #define PROGRAM_AVOID_CHECK 512    + enum pike_program_event + { +  PROG_EVENT_INIT =0, +  PROG_EVENT_EXIT, +  PROG_EVENT_GC_RECURSE, +  PROG_EVENT_GC_CHECK, +  NUM_PROG_EVENTS, + };      struct program   {
275:    struct program *next;    struct program *prev;    -  void (*init)(struct object *); -  void (*exit)(struct object *); -  void (*gc_recurse_func)(struct object *); -  void (*gc_check_func)(struct object *); +  void (*event_handler)(enum pike_program_event);   #ifdef PIKE_DEBUG    unsigned INT32 checksum;   #endif