aboutsummaryrefslogtreecommitdiffstats
path: root/interpret.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-09-05 11:24:03 +0300
committerArnold D. Robbins <arnold@skeeve.com>2014-09-05 11:24:03 +0300
commitc59f2580c1c2e3ac399c7fd33a860470e58ca76a (patch)
tree2db038b2be8bbf2456671f6ff5228b62e2641d06 /interpret.h
parent3f30f514c6e81c4a9e8ba1374a5080683783c382 (diff)
parent0f5cb955662136ad4a93e35db5721dd986dfd55b (diff)
downloadegawk-c59f2580c1c2e3ac399c7fd33a860470e58ca76a.tar.gz
egawk-c59f2580c1c2e3ac399c7fd33a860470e58ca76a.tar.bz2
egawk-c59f2580c1c2e3ac399c7fd33a860470e58ca76a.zip
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'interpret.h')
-rw-r--r--interpret.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/interpret.h b/interpret.h
index fee8136e..28804330 100644
--- a/interpret.h
+++ b/interpret.h
@@ -1039,12 +1039,13 @@ match_re:
}
if (f == NULL) {
+ fatal(_("`%s' is not a function, so it cannot be called indirectly"),
+ t1->stptr);
+ } else if (f->type == Node_builtin_func) {
int arg_count = (pc + 1)->expr_count;
builtin_func_t the_func = lookup_builtin(t1->stptr);
- if (the_func == NULL)
- fatal(_("`%s' is not a user-defined function, so it cannot be called indirectly"),
- t1->stptr);
+ assert(the_func != NULL);
/* call it */
r = the_func(arg_count);