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.17 1997/01/18 21:34:33 hubbe Exp $"); + RCSID("$Id: main.c,v 1.18 1997/02/07 01:08:18 hubbe Exp $");   #include "types.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:193: Inside #if defined(HAVE_SETRLIMIT) && defined(RLIMIT_NOFILE)
  #endif    tmp=MINIMUM(lim.rlim_max, MAX_OPEN_FILEDESCRIPTORS);    lim.rlim_cur=tmp;    setrlimit(RLIMIT_NOFILE, &lim);    }    }   #endif       GETTIMEOFDAY(&current_time);    -  init_modules_efuns(); +  init_shared_string_table(); +  init_interpreter(); +  init_lex(); +  init_types(); +  +  init_modules();    master();    call_callback(& post_master_callbacks, 0);    free_callback(& post_master_callbacks); -  init_modules_programs(); +     -  +     a=allocate_array_no_init(argc,0);    for(num=0;num<argc;num++)    {    ITEM(a)[num].u.string=make_shared_string(argv[num]);    ITEM(a)[num].type=T_STRING;    }    push_array(a);       for(num=0;env[num];num++);    a=allocate_array_no_init(num,0);
pike.git/src/main.c:241:       UNSETJMP(back);       backend();       push_int(0);    f_exit(1);   }       - void init_main_efuns() + void init_main(void)   { -  init_shared_string_table(); -  init_interpreter(); -  init_lex(); -  init_types(); +  th_init();    init_builtin_efuns();    init_signals(); -  th_init(); +     init_dynamic_load();   }    - void init_main_programs() + void exit_main(void)   { -  th_init_programs(); - } -  -  - void exit_main() - { +     void cleanup_added_efuns();    void cleanup_pike_types();    void cleanup_program();       th_cleanup();    cleanup_objects();    exit_dynamic_load();    exit_signals();    exit_lex();    cleanup_interpret();