summaryrefslogtreecommitdiffstats
path: root/src/config.l
diff options
context:
space:
mode:
authorAlbert <albert.tests@gmail.com>2013-11-17 13:40:00 (GMT)
committerAlbert <albert.tests@gmail.com>2013-11-17 13:40:00 (GMT)
commit73d94c3852893eef59af1ef8252df12bb1db9371 (patch)
tree97ac01508d1c38c3eb914a9e52acbaad882d7b5d /src/config.l
parent3c0a246bd1bcf6f0d560394fd81616260a174ae8 (diff)
downloadDoxygen-73d94c3852893eef59af1ef8252df12bb1db9371.zip
Doxygen-73d94c3852893eef59af1ef8252df12bb1db9371.tar.gz
Doxygen-73d94c3852893eef59af1ef8252df12bb1db9371.tar.bz2
Debug output for lexical analyzer
The previous commit (pull request) was missing the debug output possibility for config.l and partial for doctokinizer.l. The later is called on different places by means of the generic definition doctokinizerYYlex, which is declared by means of YY_DECL. To be able to add the debug output the YY_DECL had to be redefined to be a new function and the new function, with the debug output possibility, has to be called through the original function name.
Diffstat (limited to 'src/config.l')
-rw-r--r--src/config.l7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/config.l b/src/config.l
index cc0a2f8..05df386 100644
--- a/src/config.l
+++ b/src/config.l
@@ -33,6 +33,7 @@
#include "version.h"
#include "portable.h"
#include "util.h"
+#include "message.h"
#include "lang_cfg.h"
#include "configoptions.h"
@@ -1686,8 +1687,12 @@ bool Config::parseString(const char *fn,const char *str)
bool Config::parse(const char *fn)
{
+ int retval;
encoding = "UTF-8";
- return parseString(fn,configFileToString(fn));
+ printlex(yy_flex_debug, TRUE, __FILE__, fn);
+ retval = parseString(fn,configFileToString(fn));
+ printlex(yy_flex_debug, FALSE, __FILE__, fn);
+ return retval;
}
extern "C" { // some bogus code to keep the compiler happy