pike.git / lib / master.pike.in

version» Context lines:

pike.git/lib/master.pike.in:1771:    */   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);       - // This gives the type int(1..1)|zero, which is more close to reality + // This gives the type int(0..1), which is more close to reality   // than the enum type (aka int(1..1))   //   // doing the add_constant on the typeof directly gives int(1..1)   // instead, since the same "optimization" of the type is done in that   // case. -  typeof(0)|typeof(1) _bool_type; -  add_constant("bool",typeof(_bool_type)); +  add_constant("bool", typeof([int(0..1)](mixed)0));       add_constant("__dirnode", dirnode);    add_constant("__joinnode", joinnode);       add_constant("write", write);    add_constant("werror", werror);    // To make it possible to overload get_dir and file_stat later on.    // It's not possible to replace efuns with normal functions in .o-files       add_constant("get_dir", high_master_get_dir );