diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-05-26 16:28:08 -0400 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-05-26 16:28:08 -0400 |
commit | 33ffd32ea8ea143a210fef2181a804ee0c70cdfb (patch) | |
tree | 00047e89140f0075084957e297baabad107f1a6d /ext.c | |
parent | 01e482c9f36b34fe03bff724bb3079d86f1c4625 (diff) | |
parent | 4d634960a411622cfb2e757d8e98c84f7601e09e (diff) | |
download | egawk-33ffd32ea8ea143a210fef2181a804ee0c70cdfb.tar.gz egawk-33ffd32ea8ea143a210fef2181a804ee0c70cdfb.tar.bz2 egawk-33ffd32ea8ea143a210fef2181a804ee0c70cdfb.zip |
Merge branch 'master' into feature/cmake
Diffstat (limited to 'ext.c')
-rw-r--r-- | ext.c | 16 |
1 files changed, 1 insertions, 15 deletions
@@ -187,28 +187,14 @@ get_argument(int i) */ NODE * -get_actual_argument(int i, bool optional, bool want_array) +get_actual_argument(NODE *t, int i, bool optional, bool want_array) { - NODE *t; char *fname; - int pcount; INSTRUCTION *pc; pc = TOP()->code_ptr; /* Op_ext_builtin instruction */ fname = (pc + 1)->func_name; - pcount = (pc + 1)->expr_count; - t = get_argument(i); - if (t == NULL) { - if (i >= pcount) /* must be fatal */ - fatal(_("function `%s' defined to take no more than %d argument(s)"), - fname, pcount); - if (! optional) - fatal(_("function `%s': missing argument #%d"), - fname, i + 1); - return NULL; - } - if (t->type == Node_var_new) { if (want_array) return force_array(t, false); |