From 539de0a854fb94fd6ba47e91cee55f22fcd851a3 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Mon, 12 Dec 2016 21:54:57 +0200 Subject: Improve handling of min and max args for extension functions. --- ext.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ext.c') diff --git a/ext.c b/ext.c index b6447c5a..609b3b2b 100644 --- a/ext.c +++ b/ext.c @@ -136,8 +136,7 @@ make_builtin(const awk_ext_func_t *funcinfo) b = bcalloc(Op_symbol, 1, 0); b->extfunc = funcinfo->function; - b->min_required = funcinfo->min_required_args; - b->max_expected = funcinfo->max_expected_args; + b->c_func = (awk_ext_func_t *) funcinfo; /* NB: extension sub must return something */ -- cgit v1.2.3