diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-11-24 18:10:02 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2019-11-24 18:10:02 (GMT) |
commit | 73a410a00efb17ab7bc673bf2e3ecdc45eb876f4 (patch) | |
tree | 59109819825aa660370f455cc372f04426f9427d /src/pre.l | |
parent | 26a634f60f53987d4d8b1f94259cc0a94e2414c3 (diff) | |
download | Doxygen-73a410a00efb17ab7bc673bf2e3ecdc45eb876f4.zip Doxygen-73a410a00efb17ab7bc673bf2e3ecdc45eb876f4.tar.gz Doxygen-73a410a00efb17ab7bc673bf2e3ecdc45eb876f4.tar.bz2 |
Fixed endless loop during preprocessing
Diffstat (limited to 'src/pre.l')
-rw-r--r-- | src/pre.l | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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("<expandExpression: empty\n"); return; } if (state->expansionDict.find(expr)!=0) // check for recursive expansions { + expr=expr.left(pos)+"@-"+expr.right(expr.length()-pos); + //printf("<expandExpression: already expanded expr='%s'\n",expr.data()); return; } else |