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.14 1997/01/14 18:16:23 nisse Exp $"); + RCSID("$Id: main.c,v 1.15 1997/01/16 05:03:21 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:161:    break;       case 'l':    if(p[1]>='0' && p[1]<='9')    l_flag+=STRTOL(p+1,&p,10);    else    l_flag++,p++;    break;       default: -  fprintf(stderr,"Unknown flag '%c'\n",*p); -  exit(1); +  p+=strlen(p);    }    }    }else{    break;    }    }      #if !defined(RLIMIT_NOFILE) && defined(RLIMIT_OFILE)   #define RLIMIT_NOFILE RLIMIT_OFILE   #endif
pike.git/src/main.c:199:   #endif       GETTIMEOFDAY(&current_time);       init_modules_efuns();    master();    call_callback(& post_master_callbacks, 0);    free_callback(& post_master_callbacks);    init_modules_programs();    -  a=allocate_array_no_init(argc-e,0); -  for(num=0;e<argc;e++) +  +  a=allocate_array_no_init(argc,0); +  for(num=0;num<argc;num++)    { -  ITEM(a)[num].u.string=make_shared_string(argv[e]); +  ITEM(a)[num].u.string=make_shared_string(argv[num]);    ITEM(a)[num].type=T_STRING; -  num++; +     }    push_array(a);       for(num=0;env[num];num++);    a=allocate_array_no_init(num,0);    for(num=0;env[num];num++)    {    ITEM(a)[num].u.string=make_shared_string(env[num]);    ITEM(a)[num].type=T_STRING;    }