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

192:    string text,    SourcePosition position,   ) { -  string _sprintf() { -  return sprintf("Token(%d, %O, %O, %O, %O)", type, keyword, -  arg, text, position); +  string _sprintf(int t) { +  return t=='O' && sprintf("%O(%d, %O, %O, %O, %O)", this_program, type, +  keyword, arg, text, position);    }   }