Fixing doc tests in the btest suite.

- reduce number of docs generated by `make doc`; will add as they're reviewed

- Conforming to new Notice::Type enum for notices
This commit is contained in:
Jon Siwek 2011-05-12 11:21:20 -05:00
parent 7399b79dd2
commit 68784634ff
4 changed files with 8 additions and 23 deletions

View file

@ -1059,7 +1059,8 @@ decl:
BroDocObj* o = new BroDocObj(fake_id, reST_doc_comments, true);
o->SetRole(true);
if ( streq(fake_id->Name(), "Notice" ) )
if ( extract_module_name(fake_id->Name()) == "Notice" &&
extract_var_name(fake_id->Name()) == "Type" )
current_reST_doc->AddNotice(o);
else
current_reST_doc->AddRedef(o);