aboutsummaryrefslogtreecommitdiffstats
path: root/ext.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-12-12 21:54:57 +0200
committerArnold D. Robbins <arnold@skeeve.com>2016-12-12 21:54:57 +0200
commit539de0a854fb94fd6ba47e91cee55f22fcd851a3 (patch)
tree2c7b590ae9a91127411cf2c6d0ee0dc2caf18b9b /ext.c
parent1bacda9f09bbb55c0ea3de42114c2dfe6cceec09 (diff)
downloadegawk-539de0a854fb94fd6ba47e91cee55f22fcd851a3.tar.gz
egawk-539de0a854fb94fd6ba47e91cee55f22fcd851a3.tar.bz2
egawk-539de0a854fb94fd6ba47e91cee55f22fcd851a3.zip
Improve handling of min and max args for extension functions.
Diffstat (limited to 'ext.c')
-rw-r--r--ext.c3
1 files changed, 1 insertions, 2 deletions
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 */