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.205 2004/07/04 21:03:09 srb Exp $ + || $Id: main.c,v 1.206 2004/09/16 00:15:22 nilsson Exp $   */      #include "global.h" - RCSID("$Id: main.c,v 1.205 2004/07/04 21:03:09 srb Exp $"); + RCSID("$Id: main.c,v 1.206 2004/09/16 00:15:22 nilsson 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:169: 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) );