diff options
author | mueller <mueller@afe2bf4a-e733-0410-8a33-86f594647bc7> | 1999-12-15 19:39:36 (GMT) |
---|---|---|
committer | mueller <mueller@afe2bf4a-e733-0410-8a33-86f594647bc7> | 1999-12-15 19:39:36 (GMT) |
commit | 74cc4d70240d09e10c9da94c0537670fc287a85e (patch) | |
tree | 46bbaf2d590cf1e2edf1bc86a8d7000a2012dc0d /src/pre.l | |
parent | 5576fbf6d0a8baa16fa65a37a172543397ee950a (diff) | |
download | Doxygen-74cc4d70240d09e10c9da94c0537670fc287a85e.zip Doxygen-74cc4d70240d09e10c9da94c0537670fc287a85e.tar.gz Doxygen-74cc4d70240d09e10c9da94c0537670fc287a85e.tar.bz2 |
mods for doxygen-0.49-991117
Diffstat (limited to 'src/pre.l')
-rw-r--r-- | src/pre.l | 34 |
1 files changed, 19 insertions, 15 deletions
@@ -40,6 +40,7 @@ #include "message.h" #include "util.h" #include "defargs.h" +#include "debug.h" #if defined(_MSC_VER) || defined(__BORLANDC__) #define popen _popen @@ -48,7 +49,7 @@ #define YY_NEVER_INTERACTIVE 1 -#define DUMP_OUTPUT 0 // set this to one to see what the preprocessor +#define DUMP_OUTPUT 1 // set this to one to see what the preprocessor // produces. #define SHOW_INCLUDES 0 // set this to one to list all parsed include files @@ -1627,9 +1628,9 @@ void cleanupPreprocessor() void preprocessFile(const char *fileName,BufStr &output) { -#if DUMP_OUTPUT +//#if DUMP_OUTPUT uint orgOffset=output.curPos(); -#endif +//#endif outputBuf=&output; includeStack.setAutoDelete(TRUE); @@ -1765,20 +1766,23 @@ void preprocessFile(const char *fileName,BufStr &output) else pclose(preYYin); -#if DUMP_OUTPUT - char *orgPos=output.data()+orgOffset; - char *newPos=output.data()+output.curPos(); - printf("Resulting size: %d bytes\n",newPos-orgPos); - int line=1; - printf("---------\n00001 "); - while (orgPos<newPos) +//#if DUMP_OUTPUT + if (Debug::isFlagSet(Debug::Preprocessor)) { - putchar(*orgPos); - if (*orgPos=='\n') printf("%05d ",++line); - orgPos++; + char *orgPos=output.data()+orgOffset; + char *newPos=output.data()+output.curPos(); + printf("Preprocessor output (size: %d bytes):\n",newPos-orgPos); + int line=1; + printf("---------\n00001 "); + while (orgPos<newPos) + { + putchar(*orgPos); + if (*orgPos=='\n') printf("%05d ",++line); + orgPos++; + } + printf("\n---------\n"); } - printf("\n---------\n"); -#endif +//#endif } extern "C" { // some bogus code to keep the compiler happy |