pike.git / src / main.c

version» Context lines:

pike.git/src/main.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: main.c,v 1.200 2004/04/18 02:16:05 mast Exp $ + || $Id: main.c,v 1.201 2004/09/16 00:18:35 nilsson Exp $   */      #include "global.h" - RCSID("$Id: main.c,v 1.200 2004/04/18 02:16:05 mast Exp $"); + RCSID("$Id: main.c,v 1.201 2004/09/16 00:18:35 nilsson 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:170: Inside #if defined(__NT__)
  static void get_master_key(HKEY cat)   {    HKEY k;    char buffer[4096];    DWORD len=sizeof(buffer)-1,type=REG_SZ;       if(RegOpenKeyEx(cat,    (LPCTSTR)("SOFTWARE\\Pike\\"    DEFINETOSTR(PIKE_MAJOR_VERSION)    "." -  DEFINETOSTR(PIKE_MINOR_VERSION)), +  DEFINETOSTR(PIKE_MINOR_VERSION) +  "." +  DEFINETOSTR(PIKE_BUILD_VERSION)),    0,KEY_READ,&k)==ERROR_SUCCESS)    {    if(RegQueryValueEx(k,    "PIKE_MASTER",    0,    &type,    buffer,    &len)==ERROR_SUCCESS)    {    dmalloc_accept_leak( master_file=strdup(buffer) );
pike.git/src/main.c:328:    master_file = 0;      #ifdef HAVE_GETENV    if(getenv("PIKE_MASTER"))    master_file = getenv("PIKE_MASTER");   #endif       if(master_location[CONSTANT_STRLEN(MASTER_COOKIE)])    master_file=master_location + CONSTANT_STRLEN(MASTER_COOKIE);    - #if __NT__ + #ifdef __NT__    if(!master_file) get_master_key(HKEY_CURRENT_USER);    if(!master_file) get_master_key(HKEY_LOCAL_MACHINE);   #endif       if(!master_file)    {    sprintf(master_location,DEFAULT_MASTER,    PIKE_MAJOR_VERSION,    PIKE_MINOR_VERSION,    PIKE_BUILD_VERSION);