summaryrefslogtreecommitdiffstats
path: root/src/pyscanner.l
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-01-26 15:07:32 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-01-26 15:07:32 (GMT)
commit8d49c7c40e59970565872f666e2110755cac7828 (patch)
treee2fd095f7aa69d3768ad61ef54a8d99d3acc8cc3 /src/pyscanner.l
parentd0a664e8d46808df68fb6a29b2d76f4c6b22a85c (diff)
downloadDoxygen-8d49c7c40e59970565872f666e2110755cac7828.zip
Doxygen-8d49c7c40e59970565872f666e2110755cac7828.tar.gz
Doxygen-8d49c7c40e59970565872f666e2110755cac7828.tar.bz2
Move DocGroup inside CommentScanner instead of using a global
Diffstat (limited to 'src/pyscanner.l')
-rw-r--r--src/pyscanner.l10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pyscanner.l b/src/pyscanner.l
index 97f7988..e5f4073 100644
--- a/src/pyscanner.l
+++ b/src/pyscanner.l
@@ -1465,7 +1465,7 @@ static void initEntry(yyscan_t yyscanner)
yyextra->current->virt = yyextra->virt;
yyextra->current->stat = yyextra->stat;
yyextra->current->lang = SrcLangExt_Python;
- Doxygen::docGroup.initGroupInfo(yyextra->current.get());
+ yyextra->commentScanner.initGroupInfo(yyextra->current.get());
yyextra->stat = FALSE;
}
@@ -1766,13 +1766,13 @@ static void parseCompounds(yyscan_t yyscanner,std::shared_ptr<Entry> rt)
initEntry(yyscanner);
QCString name = ce->name;
- Doxygen::docGroup.enterCompound(yyextra->yyFileName,yyextra->yyLineNr,name);
+ yyextra->commentScanner.enterCompound(yyextra->yyFileName,yyextra->yyLineNr,name);
pyscannerYYlex(yyscanner) ;
yyextra->lexInit=TRUE;
ce->program.resize(0);
- Doxygen::docGroup.leaveCompound(yyextra->yyFileName,yyextra->yyLineNr,name);
+ yyextra->commentScanner.leaveCompound(yyextra->yyFileName,yyextra->yyLineNr,name);
}
parseCompounds(yyscanner,ce);
@@ -1830,7 +1830,7 @@ static void parseMain(yyscan_t yyscanner, const char *fileName,const char *fileB
initParser(yyscanner);
- Doxygen::docGroup.enterFile(yyextra->yyFileName,yyextra->yyLineNr);
+ yyextra->commentScanner.enterFile(yyextra->yyFileName,yyextra->yyLineNr);
yyextra->current->reset();
initEntry(yyscanner);
@@ -1839,7 +1839,7 @@ static void parseMain(yyscan_t yyscanner, const char *fileName,const char *fileB
pyscannerYYlex(yyscanner);
yyextra->lexInit=TRUE;
- Doxygen::docGroup.leaveFile(yyextra->yyFileName,yyextra->yyLineNr);
+ yyextra->commentScanner.leaveFile(yyextra->yyFileName,yyextra->yyLineNr);
yyextra->current_root->program.resize(0);