From da86d6b4f2c3eef5b1f0860c9dae433f3a540951 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 9 Feb 2015 16:39:29 +0000 Subject: 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(). --- Src/parse.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Src/parse.c') 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; } -- cgit 1.4.1