pike.git / lib / modules / Tools.pmod / AutoDoc.pmod / module.pmod

version» Context lines:

pike.git/lib/modules/Tools.pmod/AutoDoc.pmod/module.pmod:83:    }    this_program::filename = filename;    this_program::firstline = firstline;    this_program::lastline = lastline;    }       SourcePosition copy() {    return SourcePosition(filename, firstline, lastline);    }    -  string _sprintf() { +  string _sprintf(int t) { +  if(t!='O') return 0;    string res = "SourcePosition(File: " + (filename ? filename : "?");    if (firstline)    if (lastline)    res += sprintf(", lines: %d..%d", firstline, lastline);    else    res += sprintf(", line: %d", firstline);    return res + ")";    }       string xml() {
pike.git/lib/modules/Tools.pmod/AutoDoc.pmod/module.pmod:111:      class AutoDocError {    SourcePosition position;    string part; // which part of the autodoc system...    string message;    static void create(SourcePosition _position, string _part, string _message) {    position = _position;    part = _part;    message = _message;    } -  string _sprintf() { -  return sprintf("AutoDocError(%O, %O, %O)", position, part, message); +  string _sprintf(int t) { +  return t=='O' && sprintf("%O(%O, %O, %O)", this_program, +  position, part, message);    }   }