pike.git / src / program.c

version» Context lines:

pike.git/src/program.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: program.c,v 1.559 2004/03/14 05:45:00 nilsson Exp $ + || $Id: program.c,v 1.560 2004/04/04 21:23:18 mast Exp $   */      #include "global.h" - RCSID("$Id: program.c,v 1.559 2004/03/14 05:45:00 nilsson Exp $"); + RCSID("$Id: program.c,v 1.560 2004/04/04 21:23:18 mast Exp $");   #include "program.h"   #include "object.h"   #include "dynamic_buffer.h"   #include "pike_types.h"   #include "stralloc.h"   #include "las.h"   #include "language.h"   #include "lex.h"   #include "pike_macros.h"   #include "fsort.h"
pike.git/src/program.c:3256:    * objects. It should call some gc_recurse_* function exactly once for    * each reference that the pike internals doesn't know about.    *    * If a reference is shared between objects, it should be traversed    * once for every instance sharing it.    *    * The callback might be called more than once for the same instance    * during a gc pass. The gc assumes that the references are enumerated    * in the same order in that case.    * +  * The callback is called after any mapped variables on the object +  * have been recursed (and possibly freed). +  *    * This function is obsolete, use pike_set_prog_event_callback instead.    */   PMOD_EXPORT void set_gc_recurse_callback(void (*m)(struct object *))   {    add_compat_event_handler();    ((oldhandlertype *)Pike_compiler->new_program->program)[PROG_EVENT_GC_RECURSE]=m;   }      /*    * This callback is used by the gc to count all references to objects.