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.136 2001/09/09 05:18:46 hubbe Exp $"); + RCSID("$Id: main.c,v 1.137 2001/09/24 14:41:37 grubba 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:148:   {    return add_to_callback(&exit_callbacks, call, arg, free_func);   }      #ifdef __NT__   static void get_master_key(HKEY cat)   {    HKEY k;    char buffer[4096];    DWORD len=sizeof(buffer)-1,type=REG_SZ; -  long ret; +     if(RegOpenKeyEx(cat,    (LPCTSTR)("SOFTWARE\\Idonex\\Pike\\"    DEFINETOSTR(PIKE_MAJOR_VERSION)    "."    DEFINETOSTR(PIKE_MINOR_VERSION)),    0,KEY_READ,&k)==ERROR_SUCCESS)    {    if(RegQueryValueEx(k,    "PIKE_MASTER",    0,
pike.git/src/main.c:173: Inside #if defined(__NT__)
   dmalloc_accept_leak( master_file=strdup(buffer) );    }    RegCloseKey(k);    }   }   #endif /* __NT__ */      int dbm_main(int argc, char **argv)   {    JMP_BUF back; -  int e, num, do_backend; +  int e, num;    char *p;    struct array *a;   #ifdef DECLARE_ENVIRON    extern char **environ;   #endif       TRACE((stderr, "dbm_main()\n"));       /* Attempt to make sure stderr is unbuffered. */   #ifdef HAVE_SETVBUF