diff options
author | Peter Stephenson <pws@zsh.org> | 2015-02-09 16:39:29 +0000 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2015-02-09 16:39:29 +0000 |
commit | da86d6b4f2c3eef5b1f0860c9dae433f3a540951 (patch) | |
tree | 962816f299b49fe713b15c974b97a65239093ebd /Src/parse.c | |
parent | dfbb5e4853d8cc55fb7c3ffe53887130cbc2dc3f (diff) | |
download | zsh-da86d6b4f2c3eef5b1f0860c9dae433f3a540951.tar.gz zsh-da86d6b4f2c3eef5b1f0860c9dae433f3a540951.tar.xz zsh-da86d6b4f2c3eef5b1f0860c9dae433f3a540951.zip |
34485: More rationalisation for anonymous functions.
Don't attempt to treat as "simple" case as there are too many hidden problems. Pull out some post-execution functions to a common case in execcmd().
Diffstat (limited to 'Src/parse.c')
-rw-r--r-- | Src/parse.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Src/parse.c b/Src/parse.c index 0b54a904d..ffd25de9d 100644 --- a/Src/parse.c +++ b/Src/parse.c @@ -1612,8 +1612,7 @@ par_funcdef(int *cmplx) num++; zshlex(); } - if (num > 0) - *cmplx = 1; + *cmplx = 1; ecbuf[parg] = ecused - parg; /*?*/ ecbuf[parg+1] = num; } @@ -1897,8 +1896,7 @@ par_simple(int *cmplx, int nr) argc++; zshlex(); } - if (argc > 0) - *cmplx = 1; + *cmplx = 1; ecbuf[parg] = ecused - parg; /*?*/ ecbuf[parg+1] = argc; } |