pike.git / lib / modules / Debug.pmod / Subject.pike

version» Context lines:

pike.git/lib/modules/Debug.pmod/Subject.pike:30:      #define ENTER(X) \    string t = sprintf("%{%O, %}", args); \    werror("%s%s(%s)\n", id, #X, \    has_suffix(t, ", ") ? t[..<2] : t)      #define PROXY(X,Y) X(mixed ... args) { ENTER(X); return Y; }      protected string id = "";    - void create(mixed ... args) + protected void create(mixed ... args)   {    ENTER(create);    if(sizeof(args)==1 && stringp(args[0]))    id = "(" + args[0] + ") ";   }    - void PROXY(_destruct, 0); + protected void PROXY(_destruct, 0);    - mixed PROXY(`->, 0); - mixed PROXY(`->=, 0); - mixed PROXY(`[], 0); - mixed PROXY(`[]=, 0); + protected mixed PROXY(`->, 0); + protected mixed PROXY(`->=, 0); + protected mixed PROXY(`[], 0); + protected mixed PROXY(`[]=, 0);    - mixed PROXY(`+, 0); - mixed PROXY(`-, 0); - mixed PROXY(`&, 0); - mixed PROXY(`|, 0); - mixed PROXY(`^, 0); - mixed PROXY(`<<, 0); - mixed PROXY(`>>, 0); - mixed PROXY(`*, 0); - mixed PROXY(`/, 0); - mixed PROXY(`%, 0); - mixed PROXY(`~, 0); + protected mixed PROXY(`+, 0); + protected mixed PROXY(`-, 0); + protected mixed PROXY(`&, 0); + protected mixed PROXY(`|, 0); + protected mixed PROXY(`^, 0); + protected mixed PROXY(`<<, 0); + protected mixed PROXY(`>>, 0); + protected mixed PROXY(`*, 0); + protected mixed PROXY(`/, 0); + protected mixed PROXY(`%, 0); + protected mixed PROXY(`~, 0);    - int(0..1) PROXY(`==, 0); - int(0..1) PROXY(`<, 0); - int(0..1) PROXY(`>, 0); - int PROXY(`!, 0); + protected int(0..1) PROXY(`==, 0); + protected int(0..1) PROXY(`<, 0); + protected int(0..1) PROXY(`>, 0); + protected int PROXY(`!, 0);    - int PROXY(__hash, 0); - int PROXY(_sizeof, 0); - mixed PROXY(cast, 0); - mixed PROXY(`(), 0); + protected int PROXY(__hash, 0); + protected int PROXY(_sizeof, 0); + protected mixed PROXY(cast, 0); + protected mixed PROXY(`(), 0);    - mixed PROXY(``+, 0); - mixed PROXY(``-, 0); - mixed PROXY(``&, 0); - mixed PROXY(``|, 0); - mixed PROXY(``^, 0); - mixed PROXY(``<<, 0); - mixed PROXY(``>>, 0); - mixed PROXY(``*, 0); - mixed PROXY(``/, 0); - mixed PROXY(``%, 0); + protected mixed PROXY(``+, 0); + protected mixed PROXY(``-, 0); + protected mixed PROXY(``&, 0); + protected mixed PROXY(``|, 0); + protected mixed PROXY(``^, 0); + protected mixed PROXY(``<<, 0); + protected mixed PROXY(``>>, 0); + protected mixed PROXY(``*, 0); + protected mixed PROXY(``/, 0); + protected mixed PROXY(``%, 0);    - mixed PROXY(`+=, 0); + protected mixed PROXY(`+=, 0);    - int(0..1) PROXY(_is_type, 0); - int PROXY(_equal, 0); - mixed PROXY(_m_delete, 0); + protected int(0..1) PROXY(_is_type, 0); + protected int PROXY(_equal, 0); + protected mixed PROXY(_m_delete, 0);      //! @ignore - array PROXY(_indices, ::_indices()); - array PROXY(_values, ::_values()); + protected array PROXY(_indices, ::_indices()); + protected array PROXY(_values, ::_values());   //! @endignore    - object _get_iterator(mixed ... args) + protected object _get_iterator(mixed ... args)   {    ENTER(_get_iterator);    string iid = id==""?"":id[1..<2];    return this_program("("+iid+" iterator) ");   }    - string _sprintf(int|void t, mapping|void opt, mixed ... x) + protected string _sprintf(int|void t, mapping|void opt, mixed ... x)   {    string args = "";    if(t)    args += sprintf("'%c'", t);    if(opt)    {    string tmp = sprintf("%O", opt);    string a,b; int c;    if( sscanf(tmp, "%s /* 1 element */%s", a, b)==2 ||    sscanf(tmp, "%s /* %d elements */%s", a, c, b)==3 )
pike.git/lib/modules/Debug.pmod/Subject.pike:118:    }    string tmp = sprintf("%{%O, %}", x);    if(has_suffix(tmp, ", "))    tmp = tmp[..<2];    if(sizeof(tmp))    args += ", " + tmp;    werror("%s_sprintf(%s)\n", id, args);    return "Debug.Subject" + id[..<1];   }    - mixed PROXY(_random, 0); + protected mixed PROXY(_random, 0);