summaryrefslogtreecommitdiffstats
path: root/src/commentscan.l
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2006-12-02 14:54:35 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2006-12-02 14:54:35 (GMT)
commitd2d57f02eabbe81ea976f31e2af66c80c01a2a0b (patch)
tree0af428e60324ef94f5e04cee664374d5907c36ac /src/commentscan.l
parentd384b6c7459cffcbb30bdd0ab06bde6f0cd12688 (diff)
downloadDoxygen-d2d57f02eabbe81ea976f31e2af66c80c01a2a0b.zip
Doxygen-d2d57f02eabbe81ea976f31e2af66c80c01a2a0b.tar.gz
Doxygen-d2d57f02eabbe81ea976f31e2af66c80c01a2a0b.tar.bz2
Release-1.5.1-20061202
Diffstat (limited to 'src/commentscan.l')
-rw-r--r--src/commentscan.l21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/commentscan.l b/src/commentscan.l
index dc80846..82178d4 100644
--- a/src/commentscan.l
+++ b/src/commentscan.l
@@ -656,24 +656,31 @@ static inline void setOutput(OutputContext ctx)
}
}
+ int oldContext = inContext;
inContext = ctx;
if (inContext!=OutputXRef && inBody) inContext=OutputInbody;
switch(inContext)
{
case OutputDoc:
- stripTrailingWhiteSpace(current->doc);
- if (current->docFile.isEmpty())
+ if (oldContext!=inContext)
{
- current->docFile = yyFileName;
- current->docLine = yyLineNr;
+ stripTrailingWhiteSpace(current->doc);
+ if (current->docFile.isEmpty())
+ {
+ current->docFile = yyFileName;
+ current->docLine = yyLineNr;
+ }
}
pOutputString = &current->doc;
break;
case OutputBrief:
- if (current->briefFile.isEmpty())
+ if (oldContext!=inContext)
{
- current->briefFile = yyFileName;
- current->briefLine = yyLineNr;
+ if (current->briefFile.isEmpty())
+ {
+ current->briefFile = yyFileName;
+ current->briefLine = yyLineNr;
+ }
}
pOutputString = &current->brief;
break;