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 /gawkapi.c | |
parent | 378de9aa9e73d44d0172947c38be67c0bd78a0b0 (diff) | |
download | gawk-eceb548b02f0d72ca6a6e9a68bfd615ac9549a64.tar.gz |
Rework namespace handling to make simpler and correct. Add two test cases.
Diffstat (limited to 'gawkapi.c')
-rw-r--r-- | gawkapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1603,7 +1603,7 @@ ns_lookup(const char *name_space, const char *name, char **fullname) if (name_space[0] == '\0' || strcmp(name_space, awk_namespace) == 0) { if (fullname != NULL) *fullname = estrdup(name, strlen(name)); - return lookup(name, false); + return lookup(name); } size_t len = strlen(name_space) + 2 + strlen(name) + 1; @@ -1611,7 +1611,7 @@ ns_lookup(const char *name_space, const char *name, char **fullname) emalloc(buf, char *, len, "ns_lookup"); sprintf(buf, "%s::%s", name_space, name); - NODE *f = lookup(buf, false); + NODE *f = lookup(buf); if (fullname != NULL) *fullname = buf; else |