diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2011-10-25 21:44:18 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2011-10-25 21:44:18 +0200 |
commit | 1bba94521445126120cecd41f7ea29a2810a5eeb (patch) | |
tree | 79b5bdd3a3831ca2aa51edf1b4408dc5d9f87206 /extension/arrayparm.c | |
parent | 29658e8b38047b234d682613592253761df63d24 (diff) | |
parent | 118622c2a66b302ec9706ccd3296a6cc2b8bfb13 (diff) | |
download | egawk-1bba94521445126120cecd41f7ea29a2810a5eeb.tar.gz egawk-1bba94521445126120cecd41f7ea29a2810a5eeb.tar.bz2 egawk-1bba94521445126120cecd41f7ea29a2810a5eeb.zip |
Merge branch 'gawk_performance'
Diffstat (limited to 'extension/arrayparm.c')
-rw-r--r-- | extension/arrayparm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/extension/arrayparm.c b/extension/arrayparm.c index 8a550ace..b0aee33d 100644 --- a/extension/arrayparm.c +++ b/extension/arrayparm.c @@ -43,13 +43,13 @@ int plugin_is_GPL_compatible; */ static NODE * -do_mkarray(int args) +do_mkarray(int nargs) { int ret = -1; NODE *var, *sub, *val; NODE **elemval; - if (do_lint && get_curfunc_arg_count() > 3) + if (do_lint && nargs > 3) lintwarn("mkarray: called with too many arguments"); var = get_array_argument(0, FALSE); @@ -60,9 +60,9 @@ do_mkarray(int args) printf("sub->type = %s\n", nodetype2str(sub->type)); printf("val->type = %s\n", nodetype2str(val->type)); - assoc_clear(var); + assoc_clear(var, NULL); - elemval = assoc_lookup(var, sub, 0); + elemval = assoc_lookup(var, sub); *elemval = dupnode(val); ret = 0; |