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 /profile.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 'profile.c')
-rw-r--r-- | profile.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2072,7 +2072,8 @@ adjust_namespace(char *name, bool *malloced) // unadorned name from symbol table, add awk:: if not in awk:: n.s. if (strchr(name, ':') == NULL && current_namespace != awk_namespace && // can be equal if namespace never changed - strcmp(current_namespace, "awk") != 0) { + strcmp(current_namespace, "awk") != 0 && + ! is_all_upper(name)) { char *buf; size_t len = 5 + strlen(name) + 1; |