summaryrefslogtreecommitdiffstats
path: root/src/code.l
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2010-03-24 20:39:59 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2010-03-24 20:39:59 (GMT)
commit707831ea739af5ae137c9cc1d04e3ffbbde11a6a (patch)
tree1e47a4443afb2ec61f032669050ee1b8834baa8d /src/code.l
parent23b0a90048405fda4e4304052c3c1277c33a6a2b (diff)
downloadDoxygen-707831ea739af5ae137c9cc1d04e3ffbbde11a6a.zip
Doxygen-707831ea739af5ae137c9cc1d04e3ffbbde11a6a.tar.gz
Doxygen-707831ea739af5ae137c9cc1d04e3ffbbde11a6a.tar.bz2
Release-1.6.3-20100324
Diffstat (limited to 'src/code.l')
-rw-r--r--src/code.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/code.l b/src/code.l
index 2ad58de..99bb0f2 100644
--- a/src/code.l
+++ b/src/code.l
@@ -3343,7 +3343,7 @@ void resetCCodeParserState()
void parseCCode(CodeOutputInterface &od,const char *className,const QCString &s,
bool exBlock, const char *exName,FileDef *fd,
int startLine,int endLine,bool inlineFragment,
- MemberDef *memberDef)
+ MemberDef *memberDef,bool showLineNumbers)
{
//printf("***parseCode() exBlock=%d exName=%s fd=%p\n",exBlock,exName,fd);
if (s.isEmpty()) return;
@@ -3378,7 +3378,7 @@ void parseCCode(CodeOutputInterface &od,const char *className,const QCString &s,
g_exampleBlock = exBlock;
g_exampleName = exName;
g_sourceFileDef = fd;
- g_lineNumbers = fd!=0;
+ g_lineNumbers = fd!=0 && showLineNumbers;
if (exBlock && fd==0)
{
// create a dummy filedef for the example