diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-05-20 14:35:05 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-05-20 14:35:05 (GMT) |
commit | 5a7cb5383abbd105c22dca28171806bd2a5a9cda (patch) | |
tree | 36be5408c1204bd5806673cb3fef2b25ed031174 /src/pre.l | |
parent | 697375aff0beddb756025e867289213dc46ca45f (diff) | |
download | Doxygen-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.l | 17 |
1 files changed, 7 insertions, 10 deletions
@@ -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); } |