Branch: Tag:

2002-11-29

2002-11-29 19:53:49 by Martin Nilsson <mani@lysator.liu.se>

Improved _sprintf

Rev: lib/modules/Tools.pmod/AutoDoc.pmod/DocParser.pmod:1.48
Rev: lib/modules/Tools.pmod/AutoDoc.pmod/PikeObjects.pmod:1.22
Rev: lib/modules/Tools.pmod/AutoDoc.pmod/ProcessXML.pmod:1.35
Rev: lib/modules/Tools.pmod/AutoDoc.pmod/module.pmod:1.8

90:    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)
118:    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);    }   }