summaryrefslogtreecommitdiffstats
path: root/src/tagreader.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-11-28 20:38:57 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-11-28 20:38:57 (GMT)
commitf3e7209fed9703e8be668753d1083ba335121a6e (patch)
tree229ba1f0bd2e721f4cc81307b63d8c79051d1bc4 /src/tagreader.cpp
parente952dab58265a6f21867e51f72d7d81ffe39e082 (diff)
downloadDoxygen-f3e7209fed9703e8be668753d1083ba335121a6e.zip
Doxygen-f3e7209fed9703e8be668753d1083ba335121a6e.tar.gz
Doxygen-f3e7209fed9703e8be668753d1083ba335121a6e.tar.bz2
Release-1.3-rc1-20021128
Diffstat (limited to 'src/tagreader.cpp')
-rw-r--r--src/tagreader.cpp41
1 files changed, 11 insertions, 30 deletions
diff --git a/src/tagreader.cpp b/src/tagreader.cpp
index 3edb09f..1637044 100644
--- a/src/tagreader.cpp
+++ b/src/tagreader.cpp
@@ -857,36 +857,17 @@ void TagFileParser::addDocAnchors(Entry *e,QStrList &l)
while (s)
{
QCString *anchorName = new QCString(s);
- //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());
- }
- //}
+ if (Doxygen::sectionDict.find(*anchorName)==0)
+ {
+ SectionInfo *si=new SectionInfo(e->fileName,*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();
}
}