From 73a410a00efb17ab7bc673bf2e3ecdc45eb876f4 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sun, 24 Nov 2019 19:10:02 +0100 Subject: Fixed endless loop during preprocessing --- src/pre.l | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pre.l b/src/pre.l index cf13764..abc9df9 100644 --- a/src/pre.l +++ b/src/pre.l @@ -2391,10 +2391,13 @@ static void expandExpression(yyscan_t yyscanner,QCString &expr,QCString *rest,in //printf(">expandExpression(expr='%s',rest='%s',pos=%d,level=%d)\n",expr.data(),rest ? rest->data() : 0, pos, level); if (expr.isEmpty()) { + //printf("expansionDict.find(expr)!=0) // check for recursive expansions { + expr=expr.left(pos)+"@-"+expr.right(expr.length()-pos); + //printf("