aboutsummaryrefslogtreecommitdiffstats
path: root/interpret.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-09-01 22:44:44 +0300
committerArnold D. Robbins <arnold@skeeve.com>2014-09-01 22:44:44 +0300
commitfb838ec318104f66a36e59f71ffb4f9eaa9b2eaa (patch)
tree144d88026bf6a306c39a6931f309e12d998a0ba8 /interpret.h
parentba1e7ab66563efb5b597a418e2e9fb4a01998d03 (diff)
parent2783f2c7d4e52fa7accfba7b847c416d8c71cd0f (diff)
downloadegawk-fb838ec318104f66a36e59f71ffb4f9eaa9b2eaa.tar.gz
egawk-fb838ec318104f66a36e59f71ffb4f9eaa9b2eaa.tar.bz2
egawk-fb838ec318104f66a36e59f71ffb4f9eaa9b2eaa.zip
Merge branch 'gawk-4.1-stable'
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 c26a9d46..be017355 100644
--- a/interpret.h
+++ b/interpret.h
@@ -1038,7 +1038,11 @@ match_re:
f = lookup(t1->stptr);
}
- if (f == NULL || f->type != Node_func) {
+ if (f == NULL) {
+ /* FIXME: See if function is a built-in and try to call it */
+ fatal(_("`%s' is not a user-defined function, so it cannot be called indirectly"),
+ t1->stptr);
+ } else if(f->type != Node_func) {
if (f->type == Node_ext_func || f->type == Node_old_ext_func)
fatal(_("cannot (yet) call extension functions indirectly"));
else