pike.git / lib / master.pike.in

version» Context lines:

pike.git/lib/master.pike.in:1:   /* -*- Pike -*-    * -  * $Id: master.pike.in,v 1.124 2000/08/02 11:06:36 grubba Exp $ +  * $Id: master.pike.in,v 1.125 2000/08/22 02:15:46 mast Exp $    *    * Master-file for Pike.    *    * Based on master.pike 1.67.    */      // Some configurable parameters useful for debugging      #define PIKE_AUTORELOAD   
pike.git/lib/master.pike.in:1674:    desc=tmp;    };    }    pos=desc;    }       string data;       if(sizeof(tmp)>=3)    { -  if(functionp(tmp[2])) -  data = function_name(tmp[2]); +  if(functionp(tmp[2])) { +  data = ""; +  if (object o = function_object(tmp[2])) { +  string s; +  if (!catch (s = sprintf("%O",o)) && s != "object") +  data = s + "->"; +  } +  data += function_name(tmp[2]); +  }    else if (stringp(tmp[2])) {    data= tmp[2];    } else    data ="unknown function";       data+="("+    stupid_describe_comma_list(tmp[3..], backtrace_len)+    ")";       if(sizeof(pos)+sizeof(data) < linewidth-4)