summaryrefslogtreecommitdiffstats
path: root/src/code.l
diff options
context:
space:
mode:
authormueller <mueller@afe2bf4a-e733-0410-8a33-86f594647bc7>1999-12-15 19:34:06 (GMT)
committermueller <mueller@afe2bf4a-e733-0410-8a33-86f594647bc7>1999-12-15 19:34:06 (GMT)
commitf18128845407f8612668950e112c2d5c3e0ff5be (patch)
tree43e0b215b5d3d2b436509cbb1cd22102aef61b1d /src/code.l
parentdaf91dc906e217e81f77f491e0abf505a91289b8 (diff)
downloadDoxygen-f18128845407f8612668950e112c2d5c3e0ff5be.zip
Doxygen-f18128845407f8612668950e112c2d5c3e0ff5be.tar.gz
Doxygen-f18128845407f8612668950e112c2d5c3e0ff5be.tar.bz2
mods for doxygen-0.49-990829
Diffstat (limited to 'src/code.l')
-rw-r--r--src/code.l50
1 files changed, 30 insertions, 20 deletions
diff --git a/src/code.l b/src/code.l
index beafeca..962b328 100644
--- a/src/code.l
+++ b/src/code.l
@@ -167,7 +167,7 @@ static void generateClassLink(OutputList &ol,const char *clName)
QCString className=clName;
if (className.length()==0) return;
ClassDef *cd;
- if ((cd=getClass(className)) && cd->isVisible())
+ if ((cd=getClass(className)) && cd->isLinkable())
{
if (exampleBlock)
{
@@ -202,8 +202,7 @@ static bool getLink(const char *className,
QCString m=memberName;
QCString c=className;
//printf("Trying `%s'::`%s'\n",c.data(),m.data());
- if (getDefs(c,m,"()",md,cd,fd,nd) &&
- (md->hasDocumentation() || md->isReference()))
+ if (getDefs(c,m,"()",md,cd,fd,nd) && md->isLinkable())
{
//printf("Found!\n");
if (exampleBlock)
@@ -218,24 +217,35 @@ static bool getLink(const char *className,
anchorCount++;
}
}
- if (cd)
- {
- result.writeCodeLink(cd->getReference(),cd->getOutputFileBase(),
- md->anchor(),memberName);
- return TRUE;
- }
- else if (nd)
- {
- result.writeCodeLink(nd->getReference(),nd->getOutputFileBase(),
- md->anchor(),memberName);
- return TRUE;
- }
- else if (fd)
+ Definition *d=0;
+ if (cd) d=cd; else if (cd) d=nd; else d=fd;
+
+ if (d)
{
- result.writeCodeLink(fd->getReference(),fd->getOutputFileBase(),
- md->anchor(),memberName);
+ result.writeCodeLink(d->getReference(),d->getOutputFileBase(),
+ md->anchor(),memberName);
return TRUE;
- }
+
+ }
+
+// if (cd)
+// {
+// result.writeCodeLink(cd->getReference(),cd->getOutputFileBase(),
+// md->anchor(),memberName);
+// return TRUE;
+// }
+// else if (nd)
+// {
+// result.writeCodeLink(nd->getReference(),nd->getOutputFileBase(),
+// md->anchor(),memberName);
+// return TRUE;
+// }
+// else if (fd)
+// {
+// result.writeCodeLink(fd->getReference(),fd->getOutputFileBase(),
+// md->anchor(),memberName);
+// return TRUE;
+// }
}
return FALSE;
@@ -372,7 +382,7 @@ ID [a-z_A-Z][a-z_A-Z0-9]*
bool ambig;
FileDef *fd;
if ((fd=findFileDef(&inputNameDict,yytext,ambig)) &&
- fd->hasDocumentation())
+ fd->isLinkable())
{
code->writeCodeLink(0,fd->getOutputFileBase(),0,yytext);
}