diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-12-06 22:06:26 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-12-06 22:06:26 +0200 |
commit | f2b6d100d8958a9c811c950f113a0ce38a25d484 (patch) | |
tree | 53c03280dab7f88134bbcdad1279f13cf12b0cf6 /ext.c | |
parent | 0dd8054d05d8286f2f7cbcf85456c6953a9b6146 (diff) | |
download | egawk-f2b6d100d8958a9c811c950f113a0ce38a25d484.tar.gz egawk-f2b6d100d8958a9c811c950f113a0ce38a25d484.tar.bz2 egawk-f2b6d100d8958a9c811c950f113a0ce38a25d484.zip |
Add min_required and max_expected arg counts to API.
Diffstat (limited to 'ext.c')
-rw-r--r-- | ext.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -136,7 +136,8 @@ make_builtin(const awk_ext_func_t *funcinfo) b = bcalloc(Op_symbol, 1, 0); b->extfunc = funcinfo->function; - b->expr_count = count; + b->min_required = funcinfo->min_required_args; + b->max_expected = funcinfo->max_expected_args; /* NB: extension sub must return something */ |