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

25:   #include "version.h"   #include "bignum.h"    - RCSID("$Id: encode.c,v 1.89 2001/03/03 00:28:35 grubba Exp $"); + RCSID("$Id: encode.c,v 1.90 2001/03/12 22:42:18 hubbe Exp $");      /* #define ENCODE_DEBUG */   
744:    {    INT32 e;    struct program *p=val->u.program; -  if(p->init || p->exit || p->gc_recurse_func || p->gc_check_func || -  (p->flags & PROGRAM_HAS_C_METHODS)) +  if(p->event_handler || (p->flags & PROGRAM_HAS_C_METHODS))    Pike_error("Cannot encode C programs.\n");    code_entry(type_to_tag(val->type), 1,data);    f_version(0);