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.33 1998/01/15 05:59:42 hubbe Exp $"); + RCSID("$Id: main.c,v 1.34 1998/01/16 22:33:06 grubba 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:51:   static struct callback_list post_master_callbacks;      struct callback *add_post_master_callback(callback_func call,    void *arg,    callback_func free_func)   {    return add_to_callback(&post_master_callbacks, call, arg, free_func);   }       - void main(int argc, char **argv) + int main(int argc, char **argv)   {    JMP_BUF back;    int e, num;    char *p;    struct array *a;   #ifdef DECLARE_ENVIRON    extern char **environ;   #endif       ARGV=argv;
pike.git/src/main.c:280:       apply(master(),"_main",2);    pop_stack();       UNSETJMP(back);       backend();       push_int(0);    f_exit(1); +  +  /* NOT REACHED */ +  return(-1); /* To avoid warnings. */   }         void low_init_main(void)   {    th_init();    init_builtin_efuns();    init_signals();    init_dynamic_load();   }