Skip to content
Snippets Groups Projects
Commit f26d3303 authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

bugfixed for NT (hopefully)

Rev: lib/master.pike.in:1.31
parent c5f17cac
No related branches found
No related tags found
No related merge requests found
/* $Id: master.pike.in,v 1.30 1998/05/27 22:49:37 hubbe Exp $ /* $Id: master.pike.in,v 1.31 1998/06/06 03:03:23 hubbe Exp $
* *
* Master-file for Pike. * Master-file for Pike.
* *
...@@ -561,16 +561,16 @@ void _main(string *orig_argv, string *env) ...@@ -561,16 +561,16 @@ void _main(string *orig_argv, string *env)
#if defined(__NT__) && !defined(NOT_INSTALLED) #if defined(__NT__) && !defined(NOT_INSTALLED)
function rget=lambda(string ent) { function rget=lambda(string ent) {
return catch { return RegGetValue(HKEY_CURRENT_USER,"SOFTWARE\\Idonex\\Pike\\0.6",ent); };
RegGetValue(HKEY_CURRENT_USER,"SOFTWARE\\Idonex\\Pike\\0.6",ent) || catch { return RegGetValue(HKEY_LOCAL_MACHINE,"SOFTWARE\\Idonex\\Pike\\0.6",ent); };
RegGetValue(HKEY_LOCAL_MACHINE,"SOFTWARE\\Idonex\\Pike\\0.6",ent) ;
}; };
string tmppath=rget("share_prefix"); string tmppath=rget("share_prefix");
// add path for architecture-shared files // add path for architecture-shared files
add_include_path(tmppath+"/include"); add_include_path(tmppath+"/include");
add_module_path(tmppath+"/modules"); add_module_path(tmppath+"/modules");
string tmp=rget("lib_prefix"); tmppath=rget("lib_prefix");
// add path for architecture-dependant files // add path for architecture-dependant files
add_include_path(tmppath+"/include"); add_include_path(tmppath+"/include");
add_module_path(tmppath+"/modules"); add_module_path(tmppath+"/modules");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment