Branch: Tag:

2001-01-11

2001-01-11 16:26:02 by David Norlin <norlin@roxen.com>

Added support for constants/literals in @decl method declarations. Like:
void convert("jpeg", Image image, float jpeg_quality)

Rev: lib/modules/Tools.pmod/AutoDoc.pmod/DocParser.pmod:1.6
Rev: lib/modules/Tools.pmod/AutoDoc.pmod/PikeObjects.pmod:1.4
Rev: lib/modules/Tools.pmod/AutoDoc.pmod/PikeParser.pike:1.5

537:    meta->type = "decl";       .PikeParser declparser = .PikeParser(arg); -  PikeObject p = declparser->parseDecl(); +  PikeObject p = declparser->parseDecl( +  ([ "allowArgListLiterals" : 1 ]) +  ); // with constants/literals    string s = declparser->peekToken();    if (s != ";" && s != EOF)    parseError("expected end of line, got %O", s);