summaryrefslogtreecommitdiffstats
path: root/src/code.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2003-10-05 12:34:05 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2003-10-05 12:34:05 (GMT)
commitf62ec1169d8f82ba7c44230f7666458244a96495 (patch)
tree97864d162da48ec2548b1b05987ddbb5301769b1 /src/code.l
parentb740d594fddfb880f5800b991e408bdb42a3f354 (diff)
downloadDoxygen-f62ec1169d8f82ba7c44230f7666458244a96495.zip
Doxygen-f62ec1169d8f82ba7c44230f7666458244a96495.tar.gz
Doxygen-f62ec1169d8f82ba7c44230f7666458244a96495.tar.bz2
Release-1.3.4-20031005
Diffstat (limited to 'src/code.l')
-rw-r--r--src/code.l36
1 files changed, 23 insertions, 13 deletions
diff --git a/src/code.l b/src/code.l
index 9680192..3cda27b 100644
--- a/src/code.l
+++ b/src/code.l
@@ -355,15 +355,23 @@ static void startCodeLine()
{
g_currentDefinition = d;
g_currentMemberDef = g_sourceFileDef->getSourceMember(g_yyLineNr);
- QCString anchor;
g_insideBody = FALSE;
g_searchingForBody = TRUE;
g_realScope = d->name().copy();
//printf("Real scope: `%s'\n",g_realScope.data());
g_bodyCurlyCount = 0;
- if (g_currentMemberDef) anchor=g_currentMemberDef->getBodyAnchor();
- g_code->writeLineNumber(d->getReference(),d->getOutputFileBase(),
- anchor,g_yyLineNr);
+ if (g_currentMemberDef)
+ {
+ g_code->writeLineNumber(g_currentMemberDef->getReference(),
+ g_currentMemberDef->getOutputFileBase(),
+ g_currentMemberDef->anchor(),g_yyLineNr);
+ }
+ else
+ {
+ g_code->writeLineNumber(d->getReference(),
+ d->getOutputFileBase(),
+ 0,g_yyLineNr);
+ }
}
else
{
@@ -702,13 +710,13 @@ static void generateClassOrGlobalLink(BaseCodeDocInterface &ol,char *clName,
if (md)
{
//printf("is a global md=%p g_currentDefinition=%s\n",md,g_currentDefinition?g_currentDefinition->name().data():"<none>");
- Definition *d = md->getOuterScope()==Doxygen::globalScope ?
- md->getBodyDef() : md->getOuterScope();
+ //Definition *d = md->getOuterScope()==Doxygen::globalScope ?
+ // md->getBodyDef() : md->getOuterScope();
//printf("definition %s\n",d?d->name().data():"<none>");
- if (md->getGroupDef()) d = md->getGroupDef();
- if (d && d->isLinkable() && md->isLinkable())
+ //if (md->getGroupDef()) d = md->getGroupDef();
+ if (md->isLinkable())
{
- writeMultiLineCodeLink(ol,d->getReference(),d->getOutputFileBase(),md->getBodyAnchor(),clName);
+ writeMultiLineCodeLink(ol,md->getReference(),md->getOutputFileBase(),md->anchor(),clName);
if (g_currentMemberDef)
{
addDocCrossReference(g_currentMemberDef,md);
@@ -770,8 +778,10 @@ static bool getLink(const char *className,
}
//printf("d->getReference()=`%s' d->getOutputBase()=`%s' name=`%s' member name=`%s'\n",d->getReference().data(),d->getOutputFileBase().data(),d->name().data(),md->name().data());
- writeMultiLineCodeLink(ol,d->getReference(),d->getOutputFileBase(),
- md->getBodyAnchor(),text ? text : memberName);
+ writeMultiLineCodeLink(ol,md->getReference(),
+ md->getOutputFileBase(),
+ md->anchor(),
+ text ? text : memberName);
return TRUE;
}
}
@@ -822,8 +832,8 @@ static bool generateClassMemberLink(BaseCodeDocInterface &ol,ClassDef *mcd,const
}
// write the actual link
- writeMultiLineCodeLink(ol,xd->getReference(),
- xd->getOutputFileBase(),xmd->getBodyAnchor(),memName);
+ writeMultiLineCodeLink(ol,xmd->getReference(),
+ xmd->getOutputFileBase(),xmd->anchor(),memName);
return TRUE;
}