summaryrefslogtreecommitdiffstats
path: root/src/defargs.l
diff options
context:
space:
mode:
authorAlbert <albert.tests@gmail.com>2013-11-13 17:43:28 (GMT)
committerAlbert <albert.tests@gmail.com>2013-11-13 17:43:28 (GMT)
commit3c0a246bd1bcf6f0d560394fd81616260a174ae8 (patch)
treea0314c4c4ccc8e1af611823f2fd76bf991ccd519 /src/defargs.l
parente4b819d62fa50f0445ddad92e46b3575ce011e3c (diff)
downloadDoxygen-3c0a246bd1bcf6f0d560394fd81616260a174ae8.zip
Doxygen-3c0a246bd1bcf6f0d560394fd81616260a174ae8.tar.gz
Doxygen-3c0a246bd1bcf6f0d560394fd81616260a174ae8.tar.bz2
Debug output for lexical analyzer
In case of error messages like: input buffer overflow, can't enlarge buffer because scanner uses REJECT it is not always directly clear from which lexical analyzer (.l file) this problem comes. This patch helps to find these problems and does the following things: - when using the option -d lex with doxygen each time a lexical analyzer is called at the start a line like the following line will be given: Entering lexical analyzer: pre.l (for: ..../file.c) and at the end: Finished lexical analyzer: pre.l (for: ..../file.c) - in case the lexical analyzer has been translated with the -d option of lex / flex the above mentioned lines will be given as part of the lexical analyzer output (to stderr) and look like: --entering lexical analyzer: pre.l (for: ..../file.c) --finished lexical analyzer: pre.l (for: ..../file.c)
Diffstat (limited to 'src/defargs.l')
-rw-r--r--src/defargs.l3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/defargs.l b/src/defargs.l
index 6d6136a..5f64b66 100644
--- a/src/defargs.l
+++ b/src/defargs.l
@@ -55,6 +55,7 @@
#include "entry.h"
#include "util.h"
#include "arguments.h"
+#include "message.h"
#define YY_NEVER_INTERACTIVE 1
#define YY_NO_INPUT 1
@@ -527,6 +528,7 @@ void stringToArgumentList(const char *argsString,ArgumentList* al,QCString *extr
{
if (al==0) return;
if (argsString==0) return;
+ printlex(yy_flex_debug, TRUE, __FILE__, NULL);
g_copyArgValue=0;
g_curArgDocs.resize(0);
@@ -549,6 +551,7 @@ void stringToArgumentList(const char *argsString,ArgumentList* al,QCString *extr
defargsYYlex();
if (extraTypeChars) *extraTypeChars=g_extraTypeChars;
//printf("stringToArgumentList(%s) result=%s\n",argsString,argListToString(al).data());
+ printlex(yy_flex_debug, FALSE, __FILE__, NULL);
}
#if !defined(YY_FLEX_SUBMINOR_VERSION)