Mercurial > ~dholland > hg > tradcpp > index.cgi
changeset 88:36066289e31a
Always send the expansion state an EOF.
(even if the state machine generates an error)
author | David A. Holland |
---|---|
date | Mon, 10 Jun 2013 21:57:21 -0400 |
parents | 2b153df78214 |
children | 64d275661bf0 |
files | macro.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/macro.c Mon Jun 10 21:56:09 2013 -0400 +++ b/macro.c Mon Jun 10 21:57:21 2013 -0400 @@ -1031,7 +1031,6 @@ { switch (es->state) { case ES_NORMAL: - expand_send_eof(es, p); break; case ES_WANTLPAREN: expand_missingargs(es, p, false); @@ -1048,6 +1047,7 @@ expstate_destroyargs(es); break; } + expand_send_eof(es, p); es->state = ES_NORMAL; es->curmacro = NULL; es->argparens = 0;