diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2001-01-28 18:16:38 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2001-01-28 18:16:38 (GMT) |
commit | 9d98e802c931c7d358c55c2f69dabdef78b1fb62 (patch) | |
tree | 26b976ebd24f845a5cf88ab76f81f928c47c4548 /src/tagreader.cpp | |
parent | cbf50dc79a88d3710287b312996da56f97154c56 (diff) | |
download | Doxygen-9d98e802c931c7d358c55c2f69dabdef78b1fb62.zip Doxygen-9d98e802c931c7d358c55c2f69dabdef78b1fb62.tar.gz Doxygen-9d98e802c931c7d358c55c2f69dabdef78b1fb62.tar.bz2 |
Release-1.2.4-20010128
Diffstat (limited to 'src/tagreader.cpp')
-rw-r--r-- | src/tagreader.cpp | 42 |
1 files changed, 31 insertions, 11 deletions
diff --git a/src/tagreader.cpp b/src/tagreader.cpp index 997f171..9070103 100644 --- a/src/tagreader.cpp +++ b/src/tagreader.cpp @@ -32,6 +32,7 @@ #include "doxygen.h" #include "util.h" #include "message.h" +//#include "reflist.h" /*! Container for member specific info that can be read from a tagfile */ class TagMemberInfo @@ -740,17 +741,36 @@ void TagFileParser::addDocAnchors(Entry *e,QStrList &l) while (s) { QCString *anchorName = new QCString(s); - if (Doxygen::sectionDict.find(*anchorName)==0) - { - SectionInfo *si=new SectionInfo(*anchorName,*anchorName, - SectionInfo::Anchor,m_tagName); - Doxygen::sectionDict.insert(*anchorName,si); - e->anchors->append(anchorName); - } - else - { - err("Duplicate anchor %s found\n",anchorName->data()); - } + //if (anchorName->left(5)=="_todo") + //{ + // int todoItemId = todoList.addRefItem(); + // char anchorLabel[12]; + // sprintf(anchorLabel,"_todo%06d",todoItemId); + // RefItem *item = todoList.getRefItem(todoItemId); + // item->listAnchor = anchorLabel; + //} + //else if (anchorName->left(5)=="_test") + //{ + // int testItemId = testList.addRefItem(); + // char anchorLabel[12]; + // sprintf(anchorLabel,"_test%06d",testItemId); + // RefItem *item = testList.getRefItem(testItemId); + // item->listAnchor = anchorLabel; + //} + //else + //{ + if (Doxygen::sectionDict.find(*anchorName)==0) + { + SectionInfo *si=new SectionInfo(*anchorName,*anchorName, + SectionInfo::Anchor,m_tagName); + Doxygen::sectionDict.insert(*anchorName,si); + e->anchors->append(anchorName); + } + else + { + err("Duplicate anchor %s found\n",anchorName->data()); + } + //} s=l.next(); } } |