pike.git / lib / master.pike.in

version» Context lines:

pike.git/lib/master.pike.in:1813:   //! @[RandomSystem()->random()], @[random_string()]      //! @decl string random_string(int len)   //!   //! Get a string of random characters @expr{0..255@} with the length @[len]   //! from the default @[RandomSystem].   //!   //! @seealso   //! @[RandomSystem()->random_string()], @[random()]    + //! @decl int cp(string from, string to) + //! + //! Copies the file @[from] to the new position @[to]. This is an + //! alias for @[Stdio.cp]. +    /* Note that create is called before add_precompiled_program    */   protected void create()   {    foreach(master_efuns, string e)    if (has_index(this, e))    add_constant(e, this[e]);    else    error("Function %O is missing from master.pike.\n", e);   
pike.git/lib/master.pike.in:1854:    add_constant("random", rnd->random);    add_constant("random_string", rnd->random_string);      #define CO(X) add_constant(#X,Builtin.__backend->X)    CO(call_out);    CO(_do_call_outs);    CO(find_call_out);    CO(remove_call_out);    CO(call_out_info);    +  add_constant("cp", lambda(string from, string to) +  { +  function(string,string:int) f = resolv("Stdio.cp"); +  add_constant("cp",f); +  return f(from, to); +  }); +    #if "#share_prefix#"[0]!='#'    // add path for architecture-independant files    add_include_path("#share_prefix#/include");    add_module_path("#share_prefix#/modules");   #endif      #if "#lib_prefix#"[0]!='#'    // add path for architecture-dependant files    add_include_path("#lib_prefix#/include");    add_module_path("#lib_prefix#/modules");