%+ now only records argument counts for ufuns, not for built-in functions
authorAri Johnson <ari@cobramush.org>
Wed, 21 Feb 2007 14:34:48 +0000 (14:34 +0000)
committerAri Johnson <ari@cobramush.org>
Wed, 21 Feb 2007 14:34:48 +0000 (14:34 +0000)
src/parse.c

index ea2004467019f2cbd3c7b711871a7619f4708d53..399f8a79bb3f53072acc772ec46b09be85159d89 100644 (file)
@@ -1243,14 +1243,10 @@ process_expression(char *buff, char **bp, char const **str,
            global_fun_recursions++;
            pe_info->fun_depth++;
            if (fp->flags & FN_BUILTIN) {
-             int old_nfargs;
              global_fun_invocations++;
              pe_info->fun_invocations++;
-             old_nfargs = pe_info->arg_count;
-             pe_info->arg_count = nfargs;
              fp->where.fun(fp, buff, bp, nfargs, fargs, arglens, executor,
                            caller, enactor, fp->name, pe_info);
-             pe_info->arg_count = old_nfargs;
              if (fp->flags & FN_LOGARGS) {
                char logstr[BUFFER_LEN];
                char *logp;