aboutsummaryrefslogtreecommitdiffstats
path: root/ext.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2019-01-25 11:47:18 +0200
committerArnold D. Robbins <arnold@skeeve.com>2019-01-25 11:47:18 +0200
commiteceb548b02f0d72ca6a6e9a68bfd615ac9549a64 (patch)
tree10d127076e7f850560095dd386c9f28b2c4811aa /ext.c
parent378de9aa9e73d44d0172947c38be67c0bd78a0b0 (diff)
downloadegawk-eceb548b02f0d72ca6a6e9a68bfd615ac9549a64.tar.gz
egawk-eceb548b02f0d72ca6a6e9a68bfd615ac9549a64.tar.bz2
egawk-eceb548b02f0d72ca6a6e9a68bfd615ac9549a64.zip
Rework namespace handling to make simpler and correct. Add two test cases.
Diffstat (limited to 'ext.c')
-rw-r--r--ext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext.c b/ext.c
index b72360ff..36969b1c 100644
--- a/ext.c
+++ b/ext.c
@@ -118,7 +118,7 @@ make_builtin(const char *name_space, const awk_ext_func_t *funcinfo)
if (check_special(name) >= 0)
fatal(_("make_builtin: can't use gawk built-in `%s' as function name"), name);
- f = lookup(name, false);
+ f = lookup(name);
install_name = estrdup(name, strlen(name));
} else {
if (! is_valid_identifier(name_space))
@@ -135,7 +135,7 @@ make_builtin(const char *name_space, const awk_ext_func_t *funcinfo)
sprintf(buf, "%s::%s", name_space, name);
install_name = buf;
- f = lookup(install_name, false);
+ f = lookup(install_name);
}
if (f != NULL) {