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.139 2001/12/14 04:10:20 nilsson Exp $"); + RCSID("$Id: main.c,v 1.140 2001/12/19 22:01:01 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:662:    init_cpp();    init_lex();    init_program();    init_object();    low_th_init();       TRACE((stderr, "Init modules...\n"));       init_modules();    -  TRACE((stderr, "Init master...\n")); -  -  master(); -  call_callback(& post_master_callbacks, 0); -  free_callback_list(& post_master_callbacks); -  +    #ifdef TEST_MULTISET    /* A C-level testsuite for the low level stuff in multisets. */    test_multiset();   #endif    -  TRACE((stderr, "Call master->_main()...\n")); -  +     if(SETJMP(back))    {    if(throw_severity == THROW_EXIT)    {    num=throw_value.u.integer;    }else{ -  call_handle_error(); +  if (get_master()) call_handle_error();    num=10;    }    }else{    back.severity=THROW_EXIT;    -  +  TRACE((stderr, "Init master...\n")); +  +  master(); +  call_callback(& post_master_callbacks, 0); +  free_callback_list(& post_master_callbacks); +  +  TRACE((stderr, "Call master->_main()...\n")); +     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;environ[num];num++);    a=allocate_array_no_init(num,0);