pike.git / lib / master.pike.in

version» Context lines:

pike.git/lib/master.pike.in:1: - /* $Id: master.pike.in,v 1.2 1998/04/06 04:34:59 hubbe Exp $ + /* $Id: master.pike.in,v 1.3 1998/04/08 22:08:55 hubbe Exp $    *    * Master-file for Pike.    *    * Based on master.pike 1.67.    */      int is_absolute_path(string p)   {   #ifdef __NT__    p=replace(p,"\\","/");
pike.git/lib/master.pike.in:710:    string current_file,    int local_include)   {    string *tmp, path;       if(local_include)    {    tmp=explode_path(current_file);    tmp[-1]=f;    path=combine_path_with_cwd(tmp*"/"); -  if(!master_file_stat(path)) return 0; +     }    else    {    foreach(pike_include_path, path)    {    path=combine_path(path,f);    if(master_file_stat(path))    break;    else    path=0;
pike.git/lib/master.pike.in:746:    {    cast_to_object(path[0..sizeof(path)-2]+"pre.pike","/");    }    }       return path;   }      string read_include(string f)   { -  return _static_modules.files()->Fd(f,"r")->read(); +  object o=_static_modules.files()->Fd(); +  if(o->open(f,"r")) +  return o->read();   }      // FIXME   string stupid_describe(mixed m)   {    switch(string typ=sprintf("%t",m))    {    case "int":    case "float":    return (string)m;