pike.git / src / main.c

version» Context lines:

pike.git/src/main.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   #include "global.h" - RCSID("$Id: main.c,v 1.40 1998/02/03 05:29:26 hubbe Exp $"); + RCSID("$Id: main.c,v 1.41 1998/02/11 00:05:01 hubbe Exp $");   #include "fdlib.h"   #include "backend.h"   #include "module.h"   #include "object.h"   #include "lex.h"   #include "pike_types.h"   #include "builtin_functions.h"   #include "array.h"   #include "stralloc.h"   #include "interpret.h"
pike.git/src/main.c:324:   #undef ATTRIBUTE   #define ATTRIBUTE(X)      void do_exit(int num) ATTRIBUTE((noreturn))   {    call_callback(&exit_callbacks, (void *)0);    free_callback(&exit_callbacks);       exit_modules();    + #ifdef DEBUG_MALLOC +  { +  extern cleanup_memhdrs(void); +  cleanup_memhdrs(); +  } + #endif +     exit(num);   }         void low_init_main(void)   {    th_init();    init_builtin_efuns();    init_signals();    init_dynamic_load();
pike.git/src/main.c:372:       do_gc();    free_svalue(& throw_value);    throw_value.type=T_INT;       cleanup_callbacks();   #if defined(DEBUG) && defined(DEBUG_MALLOC)    if(verbose_debug_exit)    {    INT32 num,size,recount=0; +  fprintf(stderr,"Exited normally, counting bytes.\n");       count_memory_in_arrays(&num, &size);    if(num)    {    recount++;    fprintf(stderr,"Arrays left: %d (%d bytes) (zapped)\n",num,size);    }       zap_all_arrays();