summaryrefslogtreecommitdiffstats
path: root/src/pre.l
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-11-09 16:29:15 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2019-11-09 16:29:15 (GMT)
commit28c738d0319bf5de25bcf6aed90234419feded07 (patch)
tree00a73d746298a6516f287517419f5ea04f331084 /src/pre.l
parent87b9993978674fbea3804531a897c92f5b513944 (diff)
downloadDoxygen-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.l3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pre.l b/src/pre.l
index ecf6b57..0ce7eaa 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -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