summaryrefslogtreecommitdiffstats
path: root/src/pre.l
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-07-03 17:43:17 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-07-03 17:43:17 (GMT)
commite3baf8c5ec430e5f09f00384ebdfa35242fd3316 (patch)
treed1720b58a91abcbfb70196c277ad3b7a11da8263 /src/pre.l
parent1b2fd16cd8ed1830a7743a55dc1b9ec3ec59ad98 (diff)
downloadDoxygen-e3baf8c5ec430e5f09f00384ebdfa35242fd3316.zip
Doxygen-e3baf8c5ec430e5f09f00384ebdfa35242fd3316.tar.gz
Doxygen-e3baf8c5ec430e5f09f00384ebdfa35242fd3316.tar.bz2
Release-1.1.5
Diffstat (limited to 'src/pre.l')
-rw-r--r--src/pre.l7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/pre.l b/src/pre.l
index 11efd91..66eebfb 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -758,6 +758,10 @@ Define *newDefine()
def->fileName = g_yyFileName;
def->lineNr = g_yyLineNr;
def->varArgs = g_defVarArgs;
+ if (!def->name.isEmpty() && expandAsDefinedDict[def->name])
+ {
+ def->isPredefined=TRUE;
+ }
return def;
}
@@ -1505,7 +1509,8 @@ BN [ \t\r\n]
{
addDefine();
}
- if (/*!Config::onlyPredefinedFlag &&*/ (def=g_fileDefineDict->find(g_defName))==0)
+ def=g_fileDefineDict->find(g_defName);
+ if (def==0) // new define
{
g_fileDefineDict->insert(g_defName,newDefine());
}