summaryrefslogtreecommitdiffstats
path: root/src/sqlcode.l
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-09-14 19:13:58 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-09-14 19:13:58 (GMT)
commit0fc06d657d596adcc289a5f228973ea268efd66d (patch)
treeb204043c2cfcb805b869b3647b3bbcea0746377e /src/sqlcode.l
parent5162dab5a4254ef65e2de972f07a00ff52e7734c (diff)
downloadDoxygen-0fc06d657d596adcc289a5f228973ea268efd66d.zip
Doxygen-0fc06d657d596adcc289a5f228973ea268efd66d.tar.gz
Doxygen-0fc06d657d596adcc289a5f228973ea268efd66d.tar.bz2
Refactoring: making xmlcode.l reentrant
Diffstat (limited to 'src/sqlcode.l')
-rw-r--r--src/sqlcode.l5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sqlcode.l b/src/sqlcode.l
index 58d8481..1ca9204 100644
--- a/src/sqlcode.l
+++ b/src/sqlcode.l
@@ -395,9 +395,6 @@ void SQLCodeParser::resetCodeParserState()
yyextra->currentMemberDef = 0;
}
-
-//---------------------------------------------------------------------------------
-
void SQLCodeParser::parseCode(CodeOutputInterface &codeOutIntf,
const char *scopeName,
const QCString &input,
@@ -417,6 +414,8 @@ void SQLCodeParser::parseCode(CodeOutputInterface &codeOutIntf,
yyscan_t yyscanner = p->yyscanner;
struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
+ if (input.isEmpty()) return;
+
printlex(yy_flex_debug, true, __FILE__, fileDef ? fileDef->fileName().data(): NULL);
yyextra->code = &codeOutIntf;