summaryrefslogtreecommitdiffstats
path: root/src/pre.l
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-05-20 14:35:05 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-05-20 14:35:05 (GMT)
commit5a7cb5383abbd105c22dca28171806bd2a5a9cda (patch)
tree36be5408c1204bd5806673cb3fef2b25ed031174 /src/pre.l
parent697375aff0beddb756025e867289213dc46ca45f (diff)
downloadDoxygen-5a7cb5383abbd105c22dca28171806bd2a5a9cda.zip
Doxygen-5a7cb5383abbd105c22dca28171806bd2a5a9cda.tar.gz
Doxygen-5a7cb5383abbd105c22dca28171806bd2a5a9cda.tar.bz2
Release-1.2.16
Diffstat (limited to 'src/pre.l')
-rw-r--r--src/pre.l17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/pre.l b/src/pre.l
index f429133..7af3435 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -1549,16 +1549,16 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'"))
else // define is a guard => hide
{
//printf("Found a guard %s\n",yytext);
- Define *def=0;
- if (g_includeStack.isEmpty())
- {
- addDefine();
- }
- if ((def=g_fileDefineDict->find(g_defName))==0)
+ Define *def=g_fileDefineDict->find(g_defName);
+ //if (g_includeStack.isEmpty())
+ //{
+ // addDefine();
+ //}
+ if (def==0) // new define name for this file
{
g_fileDefineDict->insert(g_defName,newDefine());
}
- else if (def)// name already exists
+ else // name already exists
{
if (def->undef) // undefined name
{
@@ -1574,9 +1574,6 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'"))
//printf("Error: define %s is defined more than once!\n",g_defName.data());
}
}
- QCString tmp=(QCString)"#define "+g_defName;
- outputArray(tmp.data(),tmp.length());
- //outputChar('\n');
g_lastGuardName.resize(0);
BEGIN(Start);
}