diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-12-05 20:55:22 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2019-12-05 20:55:22 (GMT) |
commit | 4a4fcdf7931efba208a57b658185de689f2ef7fb (patch) | |
tree | b97454bf5ed14ca024f81e7a4faffd38ee522862 | |
parent | 2401964449ca956ac90cecaf05f2befd5650eb97 (diff) | |
download | Doxygen-4a4fcdf7931efba208a57b658185de689f2ef7fb.zip Doxygen-4a4fcdf7931efba208a57b658185de689f2ef7fb.tar.gz Doxygen-4a4fcdf7931efba208a57b658185de689f2ef7fb.tar.bz2 |
Added missing debug flags for scanner that were made reentrant
-rw-r--r-- | src/code.l | 3 | ||||
-rw-r--r-- | src/commentcnv.l | 3 | ||||
-rw-r--r-- | src/declinfo.l | 2 | ||||
-rw-r--r-- | src/scanner.l | 3 | ||||
-rw-r--r-- | src/sqlcode.l | 2 |
5 files changed, 11 insertions, 2 deletions
@@ -3870,6 +3870,9 @@ struct CCodeParser::Private CCodeParser::CCodeParser() : p(std::make_unique<CCodeParser::Private>()) { codeYYlex_init_extra(&p->state,&p->yyscanner); +#ifdef FLEX_DEBUG + codeYYset_debug(1,p->yyscanner); +#endif } CCodeParser::~CCodeParser() diff --git a/src/commentcnv.l b/src/commentcnv.l index 940f1a5..13a21c3 100644 --- a/src/commentcnv.l +++ b/src/commentcnv.l @@ -1093,6 +1093,9 @@ void convertCppComments(BufStr *inBuf,BufStr *outBuf,const char *fileName) yyscan_t yyscanner; commentcnvYY_state extra; commentcnvYYlex_init_extra(&extra,&yyscanner); +#ifdef FLEX_DEBUG + commentcnvYYset_debug(1,yyscanner); +#endif struct yyguts_t *yyg = (struct yyguts_t*)yyscanner; //printf("convertCppComments(%s)\n",fileName); yyextra->inBuf = inBuf; diff --git a/src/declinfo.l b/src/declinfo.l index 37d0449..af94569 100644 --- a/src/declinfo.l +++ b/src/declinfo.l @@ -262,7 +262,7 @@ void parseFuncDecl(const QCString &decl,const SrcLangExt lang,QCString &cl,QCStr struct yyguts_t *yyg = (struct yyguts_t*)g_yyscanner; #ifdef FLEX_DEBUG - yyset_debug(1,g_yyscanner); + declinfoYYset_debug(1,g_yyscanner); #endif printlex(yy_flex_debug, TRUE, __FILE__, NULL); diff --git a/src/scanner.l b/src/scanner.l index a03b777..ed2c88c 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -7329,6 +7329,9 @@ struct COutlineParser::Private COutlineParser::COutlineParser() : p(std::make_unique<COutlineParser::Private>()) { scannerYYlex_init_extra(&p->state,&p->yyscanner); +#ifdef FLEX_DEBUG + scannerYYset_debug(1,p->yyscanner); +#endif } COutlineParser::~COutlineParser() diff --git a/src/sqlcode.l b/src/sqlcode.l index 499a512..02c2c14 100644 --- a/src/sqlcode.l +++ b/src/sqlcode.l @@ -383,7 +383,7 @@ void parseSqlCode( struct yyguts_t *yyg = (struct yyguts_t*)yyscanner; #ifdef FLEX_DEBUG - yyset_debug(1,yyscanner); + sqlcodeYYset_debug(1,yyscanner); #endif printlex(yy_flex_debug, TRUE, __FILE__, fd ? fd->fileName().data(): NULL); |