Skip to content

Commit

Permalink
Make fortranscanner.l reentrant
Browse files Browse the repository at this point in the history
  • Loading branch information
doxygen committed Jan 1, 2020
1 parent a036d64 commit 79cca78
Show file tree
Hide file tree
Showing 2 changed files with 1,231 additions and 1,184 deletions.
6 changes: 4 additions & 2 deletions src/fortranscanner.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
class FortranOutlineParser : public OutlineParserInterface
{
public:
FortranOutlineParser(FortranFormat format=FortranFormat_Unknown) : m_format(format) { }
FortranOutlineParser(FortranFormat format=FortranFormat_Unknown);
~FortranOutlineParser();
void startTranslationUnit(const char *) {}
void finishTranslationUnit() {}
void parseInput(const char *fileName,
Expand All @@ -39,7 +40,8 @@ class FortranOutlineParser : public OutlineParserInterface
void parsePrototype(const char *text);

private:
FortranFormat m_format;
struct Private;
std::unique_ptr<Private> p;
};

class FortranOutlineParserFree : public FortranOutlineParser
Expand Down
Loading

0 comments on commit 79cca78

Please sign in to comment.