diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-09-10 20:00:47 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-09-10 20:01:58 (GMT) |
commit | 99ca73d04ac162741fb63403c5bfb8cb9809ff1c (patch) | |
tree | 99b894c4e7560f2689280b827a96539204b9c8cb /src/fortrancode.h | |
parent | b8398bdd9cb5498b1b3328feefd74a770420f342 (diff) | |
download | Doxygen-99ca73d04ac162741fb63403c5bfb8cb9809ff1c.zip Doxygen-99ca73d04ac162741fb63403c5bfb8cb9809ff1c.tar.gz Doxygen-99ca73d04ac162741fb63403c5bfb8cb9809ff1c.tar.bz2 |
Refactoring: making fortrancode.l reentrant
Diffstat (limited to 'src/fortrancode.h')
-rw-r--r-- | src/fortrancode.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/fortrancode.h b/src/fortrancode.h index 7da6a61..b8cac31 100644 --- a/src/fortrancode.h +++ b/src/fortrancode.h @@ -1,12 +1,12 @@ /****************************************************************************** * - * + * * * Copyright (C) 1997-2015 by Dimitri van Heesch. * * Permission to use, copy, modify, and distribute this software and its - * documentation under the terms of the GNU General Public License is hereby - * granted. No representations are made about the suitability of this software + * documentation under the terms of the GNU General Public License is hereby + * granted. No representations are made about the suitability of this software * for any purpose. It is provided "as is" without express or implied warranty. * See the GNU General Public License for more details. * @@ -26,13 +26,11 @@ class MemberDef; class QCString; class Definition; -void codeFreeScanner(); - - class FortranCodeParser : public CodeParserInterface { public: - FortranCodeParser(FortranFormat format=FortranFormat_Unknown) : m_format(format) { } + FortranCodeParser(FortranFormat format=FortranFormat_Unknown); + virtual ~FortranCodeParser(); void parseCode(CodeOutputInterface &codeOutIntf, const char *scopeName, const QCString &input, @@ -51,7 +49,8 @@ class FortranCodeParser : public CodeParserInterface void resetCodeParserState(); private: - FortranFormat m_format; + struct Private; + std::unique_ptr<Private> p; }; class FortranCodeParserFree : public FortranCodeParser |