pike.git / lib / master.pike.in

version» Context lines:

pike.git/lib/master.pike.in:1401:   //!   //! @note   //! On NT the environment variable name is case insensitive.   //!   //! @seealso   //! @[putenv()]   mapping(string:string) getenv (void|int force_update)   {    mapping(string:string) res;    -  if (force_update) { +  if (force_update > 0) {    res = Builtin._getenv();   #ifdef __NT__    set_lc_env (res);   #else    environment = res + ([]);   #endif    }    else {   #ifdef __NT__    // Can't use the cached environment since variable names have been    // lowercased there.    res = Builtin._getenv();    if (!environment) set_lc_env (res);   #else    if (!environment) environment = Builtin._getenv();    res = environment + ([]);   #endif -  +  if (force_update < 0) return environment;    }       return res;   }      //! @decl string getenv (string varname, void|int force_update)   //!   //! Query the value of a specific environment variable.   //!   //! @param varname