pike.git / lib / master.pike.in

version» Context lines:

pike.git/lib/master.pike.in:1:   /* -*- Pike -*-    * -  * $Id: master.pike.in,v 1.165 2001/08/16 00:07:05 mast Exp $ +  * $Id: master.pike.in,v 1.166 2001/08/28 23:01:20 marcus Exp $    *    * Master-file for Pike.    *    * Based on master.pike 1.67.    */      // Some configurable parameters useful for debugging      #pike __REAL_VERSION__   #define PIKE_AUTORELOAD
pike.git/lib/master.pike.in:2366:    {    if(sscanf(x,"efun:%s",x)) return f[x];    if(sscanf(x,"resolv:%s",x)) return resolv(x);    return 0;    }       object objectof(string x)    {    if(sscanf(x,"efun:%s",x)) return f[x];    if(sscanf(x,"resolv:%s",x)) return resolv(x); +  if(sscanf(x,"mpath:%s",x)) +  foreach(pike_module_path, string path) +  if(object ret=low_cast_to_object(combine_path(path,x),0)) +  return ret;    return cast_to_object(x,0);    }       program programof(string x)    {    if(sscanf(x,"efun:%s",x)) return f[x];    if(sscanf(x,"resolv:%s",x)) return resolv(x); -  +  if(sscanf(x,"mpath:%s",x)) +  foreach(pike_module_path, string path) +  if(program ret=cast_to_program(combine_path(path,x),0)) +  return ret;    return cast_to_program(x,0);    }       mixed encode_object(object x)    {    if(x->_encode) return x->_encode();    error("Cannot encode objects yet.\n");    }