summaryrefslogtreecommitdiffstats
path: root/src/xmlcode.l
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-12-25 09:09:33 (GMT)
committerGitHub <noreply@github.com>2019-12-25 09:09:33 (GMT)
commit80f1f380f199f470ef9678a413d537feba68d87a (patch)
tree57ad379d75b0ede4af42ec20e1d21fd04c9b5360 /src/xmlcode.l
parent36c549da50d685fd8be82e88cb63db5cf13c57f5 (diff)
parentff3fdb3ac14a1f90334ca6c40eac46c772b5af63 (diff)
downloadDoxygen-80f1f380f199f470ef9678a413d537feba68d87a.zip
Doxygen-80f1f380f199f470ef9678a413d537feba68d87a.tar.gz
Doxygen-80f1f380f199f470ef9678a413d537feba68d87a.tar.bz2
Merge branch 'master' into feature/bug_style_change
Diffstat (limited to 'src/xmlcode.l')
-rw-r--r--src/xmlcode.l32
1 files changed, 26 insertions, 6 deletions
diff --git a/src/xmlcode.l b/src/xmlcode.l
index bd6e8a8..94548f8 100644
--- a/src/xmlcode.l
+++ b/src/xmlcode.l
@@ -407,12 +407,32 @@ void resetXmlCodeParserState()
g_currentMemberDef = 0;
}
-#if !defined(YY_FLEX_SUBMINOR_VERSION)
-extern "C" { // some bogus code to keep the compiler happy
- void xmlcodeYYdummy() { yy_flex_realloc(0,0); }
+//----------------------------------------------------------------------------
+
+void XMLCodeParser::parseCode(CodeOutputInterface &codeOutIntf,
+ const char *scopeName,
+ const QCString &input,
+ SrcLangExt,
+ bool isExampleBlock,
+ const char *exampleName,
+ FileDef *fileDef,
+ int startLine,
+ int endLine,
+ bool inlineFragment,
+ const MemberDef *memberDef,
+ bool showLineNumbers,
+ const Definition *searchCtx,
+ bool collectXRefs
+ )
+{
+ parseXmlCode(codeOutIntf,scopeName,input,isExampleBlock,exampleName,
+ fileDef,startLine,endLine,inlineFragment,memberDef,
+ showLineNumbers,searchCtx,collectXRefs);
+}
+
+void XMLCodeParser::resetCodeParserState()
+{
+ resetXmlCodeParserState();
}
-#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 "xmlcode.l.h"