diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-12-12 21:54:57 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-12-12 21:54:57 +0200 |
commit | 539de0a854fb94fd6ba47e91cee55f22fcd851a3 (patch) | |
tree | 2c7b590ae9a91127411cf2c6d0ee0dc2caf18b9b /ext.c | |
parent | 1bacda9f09bbb55c0ea3de42114c2dfe6cceec09 (diff) | |
download | egawk-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 */ |