pike.git / src / main.c

version» Context lines:

pike.git/src/main.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: main.c,v 1.191 2004/03/15 22:23:14 mast Exp $ + || $Id: main.c,v 1.192 2004/03/15 22:47:15 mast Exp $   */      #include "global.h" - RCSID("$Id: main.c,v 1.191 2004/03/15 22:23:14 mast Exp $"); + RCSID("$Id: main.c,v 1.192 2004/03/15 22:47:15 mast Exp $");   #include "fdlib.h"   #include "backend.h"   #include "module.h"   #include "object.h"   #include "language.h"   #include "lex.h"   #include "pike_types.h"   #include "builtin_functions.h"   #include "array.h"   #include "stralloc.h"
pike.git/src/main.c:899:    init_signals();    init_dynamic_load();   }      void exit_main(void)   {   #ifdef DO_PIKE_CLEANUP    /* Destruct all remaining objects before modules are shut down, so    * that they don't get calls to object exit callbacks after their    * module exit callback. The downside is that the leak report below -  * will always report destructed objects. */ -  cleanup_objects(); +  * will always report destructed objects. We use the gc in a special +  * mode for this to get a reasonably sane destruct order. */ +  gc_destruct_everything = 1; +  do_gc (NULL, 1); +  gc_destruct_everything = 0;       /* Unload dynamic modules before static ones. */    exit_dynamic_load();   #endif   }      void init_main(void)   {   }