Branch: Tag:

2011-12-04

2011-12-04 14:10:28 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Tools.AutoDoc: Propagate flags to the Pike- and C- extractors and to the DocParser.

293:    //!    SourcePosition currentPosition = 0;    +  .Flags flags = .FLAG_NORMAL; +     protected void parseError(string s, mixed ... args) {    s = sprintf(s, @args);    if (currentPosition->lastline) {
782:    }       protected void create(string | array(Token) s, -  SourcePosition|void position) +  SourcePosition|void position, +  .Flags|void flags)    { -  +  if (zero_type(flags)) flags = .FLAG_NORMAL; +  +  this_program::flags = flags; +     if (arrayp(s)) {    tokenArr = s;    }
1020:    protected string mContext = 0;       //! Parse a documentation string @[s]. -  void create(string | array(Token) s, SourcePosition|void sp) { -  ::create(s, sp); +  void create(string | array(Token) s, SourcePosition|void sp, +  .Flags|void flags) { +  ::create(s, sp, flags);    state = 0;    }