pike.git / lib / master.pike.in

version» Context lines:

pike.git/lib/master.pike.in:1:   /* -*- Pike -*-    * -  * $Id: master.pike.in,v 1.151 2001/04/07 00:54:47 nilsson Exp $ +  * $Id: master.pike.in,v 1.152 2001/04/09 11:02:18 hubbe 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:1988:   {    string s;    if(!p) return 0;    if(s=search(programs,p))    {    if(sscanf(reverse(s),"%s.%s",string ext,string rest) && ext=="domp")    return EXPLODE_PATH(reverse(rest))[-1];    return trim_file_name(s);    }    -  if(functionp(p)) +     if(mixed tmp=function_object(p)) -  +  { +  if(objectp(tmp)) +  {    if(s=describe_program(object_program(tmp)))    return s+"."+function_name(p); -  +  } +  if(programp(tmp)) +  { +  if(s=describe_program(tmp)) +  return s+"."+function_name(p); +  } +  }    -  +     if(s=_static_modules.Builtin()->program_defined(p))    return EXPLODE_PATH(s)[-1];       return 0;   }      string describe_function (function f)   {    if (!f) return 0;