aboutsummaryrefslogtreecommitdiffstats
path: root/interpret.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-03-20 10:31:49 +0200
committerArnold D. Robbins <arnold@skeeve.com>2015-03-20 10:31:49 +0200
commit59514868fde1190f719e78d4c4b91bd14a321541 (patch)
tree9ec586a545a2ea215e896aec77d9fcfea8ed04b5 /interpret.h
parent925f9363c4b0a5bb9375298afcdcf404efb32587 (diff)
downloadegawk-59514868fde1190f719e78d4c4b91bd14a321541.tar.gz
egawk-59514868fde1190f719e78d4c4b91bd14a321541.tar.bz2
egawk-59514868fde1190f719e78d4c4b91bd14a321541.zip
Start on testing/fixing indirect calls of builtins.
Diffstat (limited to 'interpret.h')
-rw-r--r--interpret.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/interpret.h b/interpret.h
index b16dc126..9160d479 100644
--- a/interpret.h
+++ b/interpret.h
@@ -1066,7 +1066,11 @@ match_re:
assert(the_func != NULL);
/* call it */
- r = the_func(arg_count);
+ if (the_func == do_sub)
+ r = call_sub_func(t1->stptr, arg_count);
+ else
+ r = the_func(arg_count);
+
PUSH(r);
break;
} else if (f->type != Node_func) {