diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-12-23 13:18:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-23 13:18:30 (GMT) |
commit | 9cafaedb50c8e430cc8c34ef44a84bc1dbcb64ad (patch) | |
tree | ffee9d6d930022c55710bc0931d0da6a77be27f0 /src/pycode.l | |
parent | c9284a1aae6e876e0399c4757837bec3563751e2 (diff) | |
parent | ecc4f838db18336c4afbc6dabb1a8edbc6d8bbd0 (diff) | |
download | Doxygen-9cafaedb50c8e430cc8c34ef44a84bc1dbcb64ad.zip Doxygen-9cafaedb50c8e430cc8c34ef44a84bc1dbcb64ad.tar.gz Doxygen-9cafaedb50c8e430cc8c34ef44a84bc1dbcb64ad.tar.bz2 |
Merge branch 'master' into spelling
Diffstat (limited to 'src/pycode.l')
-rw-r--r-- | src/pycode.l | 32 |
1 files changed, 26 insertions, 6 deletions
diff --git a/src/pycode.l b/src/pycode.l index 4ff4fc1..f7e255f 100644 --- a/src/pycode.l +++ b/src/pycode.l @@ -1638,13 +1638,33 @@ void parsePythonCode(CodeOutputInterface &od,const char * /*className*/, return; } +//---------------------------------------------------------------------------- + +void PythonCodeParser::parseCode(CodeOutputInterface &codeOutIntf, + const char *scopeName, + const QCString &input, + SrcLangExt /*lang*/, + bool isExampleBlock, + const char *exampleName, + FileDef *fileDef, + int startLine, + int endLine, + bool inlineFragment, + const MemberDef *memberDef, + bool showLineNumbers, + const Definition *searchCtx, + bool collectXRefs + ) +{ + ::parsePythonCode(codeOutIntf,scopeName,input,isExampleBlock,exampleName, + fileDef,startLine,endLine,inlineFragment,memberDef, + showLineNumbers,searchCtx,collectXRefs); +} -#if !defined(YY_FLEX_SUBMINOR_VERSION) -extern "C" { // some bogus code to keep the compiler happy - void pycodeYYdummy() { yy_flex_realloc(0,0); } +void PythonCodeParser::resetCodeParserState() +{ + ::resetPythonCodeParserState(); } -#elif YY_FLEX_MAJOR_VERSION<=2 && YY_FLEX_MINOR_VERSION<=5 && YY_FLEX_SUBMINOR_VERSION<33 -#error "You seem to be using a version of flex newer than 2.5.4. These are currently incompatible with 2.5.4, and do NOT work with doxygen! Please use version 2.5.4 or expect things to be parsed wrongly! A bug report has been submitted (#732132)." -#endif + #include "pycode.l.h" |