pike.git / lib / modules / Simulate.pmod

version» Context lines:

pike.git/lib/modules/Simulate.pmod:1:   inherit Array;   inherit String;   inherit Process;      #define error(X) throw( ({ (X), backtrace()[0..sizeof(backtrace())-2] }) )    - int member_array(mixed needle,mixed *haystack,int|void start) + int member_array(mixed needle,array(mixed) haystack,int|void start)   {    return search(haystack,needle,start);   }      object previous_object()   {    int e; -  mixed **trace; +  array(array(mixed)) trace;    object o,ret;    trace=backtrace();    o=function_object(trace[-2][2]);    for(e=sizeof(trace)-3;e>=0;e--)    {    if(!trace[e][2]) continue;    ret=function_object(trace[e][2]);    if(o!=ret) return ret;    }    return 0;
pike.git/lib/modules/Simulate.pmod:31:   }         function get_function(object o, string a)   {    mixed ret;    ret=o[a];    return functionp(ret) ? ret : 0;   }    - string *map_regexp(string *s, string reg) + array(string) map_regexp(array(string) s, string reg)   {       object(Regexp) regexp = Regexp(reg);    s=filter(s,regexp->match);    return s;   }      constant PI = 3.1415926535897932384626433832795080;   function all_efuns = all_constants;   function explode = `/;