aboutsummaryrefslogtreecommitdiffstats
path: root/interpret.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-09-05 11:21:38 +0300
committerArnold D. Robbins <arnold@skeeve.com>2014-09-05 11:21:38 +0300
commit0f5cb955662136ad4a93e35db5721dd986dfd55b (patch)
tree7ec575fe74a0fc599bafb01fad6811fc496f7256 /interpret.h
parentc30a04c8d3a2eef06338934f577fe3416f40d529 (diff)
downloadegawk-0f5cb955662136ad4a93e35db5721dd986dfd55b.tar.gz
egawk-0f5cb955662136ad4a93e35db5721dd986dfd55b.tar.bz2
egawk-0f5cb955662136ad4a93e35db5721dd986dfd55b.zip
Add builtin functions to FUNCTAB and PROCINFO["identifiers"] and doc.
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);