1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-08 09:41:14 +02:00

Pass the new Eprog argument to hend().

This commit is contained in:
Wayne Davison 2000-07-19 21:09:40 +00:00
parent 495249342e
commit 8740d0b407

View file

@ -119,14 +119,14 @@ loop(int toplevel, int justonce)
intr(); /* interrupts on */ intr(); /* interrupts on */
lexinit(); /* initialize lexical state */ lexinit(); /* initialize lexical state */
if (!(prog = parse_event())) { /* if we couldn't parse a list */ if (!(prog = parse_event())) { /* if we couldn't parse a list */
hend(); hend(NULL);
if ((tok == ENDINPUT && !errflag) || if ((tok == ENDINPUT && !errflag) ||
(tok == LEXERR && (!isset(SHINSTDIN) || !toplevel)) || (tok == LEXERR && (!isset(SHINSTDIN) || !toplevel)) ||
justonce) justonce)
break; break;
continue; continue;
} }
if (hend()) { if (hend(prog)) {
int toksav = tok; int toksav = tok;
Eprog preprog; Eprog preprog;