pike.git / lib / master.pike.in

version» Context lines:

pike.git/lib/master.pike.in:1:   /* -*- Pike -*-    * -  * $Id: master.pike.in,v 1.114 2000/04/10 21:20:08 grubba Exp $ +  * $Id: master.pike.in,v 1.115 2000/04/13 18:54:05 per Exp $    *    * Master-file for Pike.    *    * Based on master.pike 1.67.    */      // Some configurable parameters useful for debugging      #define PIKE_AUTORELOAD   
pike.git/lib/master.pike.in:197:   {    if(!s) return environment;    return environment[s];   }      void putenv(string var, string val)   {    environment[var]=val;   }    + string normalize_path( string X ) + { + #ifndef __NT__ +  return X; + #else +  return replace(X,"\\","/"); + #endif + }      void add_include_path(string tmp)   { -  tmp=combine_path_with_cwd(tmp); +  tmp=normalize_path(combine_path_with_cwd(tmp));    pike_include_path-=({tmp});    pike_include_path=({tmp})+pike_include_path;   }      void remove_include_path(string tmp)   { -  tmp=combine_path_with_cwd(tmp); +  tmp=normalize_path(combine_path_with_cwd(tmp));    pike_include_path-=({tmp});   }      void add_module_path(string tmp)   { -  tmp=combine_path_with_cwd(tmp); +  tmp=normalize_path(combine_path_with_cwd(tmp));    pike_module_path-=({tmp});    pike_module_path=({tmp})+pike_module_path;   }         void remove_module_path(string tmp)   { -  tmp=combine_path_with_cwd(tmp); +  tmp=normalize_path(combine_path_with_cwd(tmp));    pike_module_path-=({tmp});   }         void add_program_path(string tmp)   { -  tmp=combine_path_with_cwd(tmp); +  tmp=normalize_path(combine_path_with_cwd(tmp));    pike_program_path-=({tmp});    pike_program_path=({tmp})+pike_program_path;   }         void remove_program_path(string tmp)   { -  tmp=combine_path_with_cwd(tmp); +  tmp=normalize_path(combine_path_with_cwd(tmp));    pike_program_path-=({tmp});   }         mapping (string:program) programs=(["/master":object_program(this_object())]);      #define capitalize(X) (upper_case((X)[..0])+(X)[1..])      array(string) query_precompiled_names(string fname)   {
pike.git/lib/master.pike.in:489:    "remove_include_path",    "add_module_path",    "remove_module_path",    "add_program_path",    "remove_program_path",    "describe_backtrace",    "describe_error",    "new",    "clone",    +  "normalize_path",    "getenv",    "putenv",      #ifdef GETCWD_CACHE    "cd",    "getcwd",   #endif   });      /* Note that create is called before add_precompiled_program