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.30 1998/01/08 17:20:07 hubbe Exp $"); + RCSID("$Id: main.c,v 1.31 1998/01/10 21:19:09 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"   #include "error.h"   #include "pike_macros.h"   #include "callback.h"   #include "signal_handler.h"   #include "threads.h"   #include "dynamic_load.h"   #include "gc.h"   #include "mapping.h"   #include "cpp.h"    - #ifdef HAVE_WINSOCK_H - #include "winsock.h" - #endif -  +    #include <errno.h>      #ifdef HAVE_LOCALE_H   #include <locale.h>   #endif      #include "time_stuff.h"      #ifdef HAVE_SYS_RESOURCE_H   #include <sys/resource.h>
pike.git/src/main.c:69:    char *p;    struct array *a;   #ifdef DECLARE_ENVIRON    extern char **environ;   #endif       ARGV=argv;       fd_init();    - #ifdef HAVE_WINSOCK_H -  { -  WSADATA wsadata; -  if(WSAStartup(MAKEWORD(2,0), &wsadata) != 0) -  { -  fatal("No winsock available.\n"); -  } -  } - #endif -  +    #ifdef HAVE_SETLOCALE   #ifdef LC_NUMERIC    setlocale(LC_NUMERIC, "C");   #endif   #ifdef LC_CTYPE    setlocale(LC_CTYPE, "");   #endif   #ifdef LC_TIME    setlocale(LC_TIME, "C");   #endif