diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2002-05-20 14:35:05 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2002-05-20 14:35:05 (GMT) |
commit | 2999d2732d1471f144721808e52c04aa17dd63b6 (patch) | |
tree | 36be5408c1204bd5806673cb3fef2b25ed031174 /src/pre.l | |
parent | bcf2f33d5be8c6de4de5bb7cbe8ea8b90f19cf88 (diff) | |
download | Doxygen-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.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); } |