diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2019-01-25 11:47:18 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2019-01-25 11:47:18 +0200 |
commit | eceb548b02f0d72ca6a6e9a68bfd615ac9549a64 (patch) | |
tree | 10d127076e7f850560095dd386c9f28b2c4811aa /ext.c | |
parent | 378de9aa9e73d44d0172947c38be67c0bd78a0b0 (diff) | |
download | egawk-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |