pike.git
/
lib
/
master.pike.in
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/lib/master.pike.in:1:
/* -*- Pike -*- *
-
* $Id: master.pike.in,v 1.
148
2001/
06
/
21
10
:
10
:
52
wellhard
Exp $
+
* $Id: master.pike.in,v 1.
149
2001/
08
/
28
21:
50
:
42
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:2213:
{ 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"); }