# HG changeset patch # User David A. Holland # Date 1370915841 14400 # Node ID 36066289e31a588f5cb54fb5279d7b0157de304e # Parent 2b153df78214538d0dd937717f907d5842d2944a Always send the expansion state an EOF. (even if the state machine generates an error) diff -r 2b153df78214 -r 36066289e31a macro.c --- 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;