summaryrefslogtreecommitdiffstats
path: root/src/pre.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2002-05-20 14:35:05 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2002-05-20 14:35:05 (GMT)
commit2999d2732d1471f144721808e52c04aa17dd63b6 (patch)
tree36be5408c1204bd5806673cb3fef2b25ed031174 /src/pre.l
parentbcf2f33d5be8c6de4de5bb7cbe8ea8b90f19cf88 (diff)
downloadDoxygen-2999d2732d1471f144721808e52c04aa17dd63b6.zip
Doxygen-2999d2732d1471f144721808e52c04aa17dd63b6.tar.gz
Doxygen-2999d2732d1471f144721808e52c04aa17dd63b6.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);
}