Branch: Tag:

2001-08-28

2001-08-28 21:50:42 by Marcus Comstedt <marcus@mc.pp.se>

Use relative paths to modules in dumped files, to facilitate moving the tree.

Rev: lib/master.pike.in:1.149
Rev: src/dumpmodule.pike:1.17

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.    *
2220:    {    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);    }   
2227:    {    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);    }