diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-11-09 16:29:15 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2019-11-09 16:29:15 (GMT) |
commit | 28c738d0319bf5de25bcf6aed90234419feded07 (patch) | |
tree | 00a73d746298a6516f287517419f5ea04f331084 /src/pre.l | |
parent | 87b9993978674fbea3804531a897c92f5b513944 (diff) | |
download | Doxygen-28c738d0319bf5de25bcf6aed90234419feded07.zip Doxygen-28c738d0319bf5de25bcf6aed90234419feded07.tar.gz Doxygen-28c738d0319bf5de25bcf6aed90234419feded07.tar.bz2 |
Remove global state from constexp lexer
Diffstat (limited to 'src/pre.l')
-rw-r--r-- | src/pre.l | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -380,6 +380,7 @@ struct preYY_state QCString delimiter; QDict<void> allIncludes; DefineManager defineManager; + ConstExpressionParser constExpParser; }; // stateless functions @@ -2704,7 +2705,7 @@ static bool computeExpression(yyscan_t yyscanner,const QCString &expr) e = removeIdsAndMarkers(e); if (e.isEmpty()) return FALSE; //printf("parsing '%s'\n",e.data()); - return parseconstexp(state->yyFileName,state->yyLineNr,e); + return state->constExpParser.parse(state->yyFileName,state->yyLineNr,e); } /*! expands the macro definition in \a name |