diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2021-10-18 18:41:51 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2021-10-18 18:41:51 +0300 |
commit | 51181b9f13fe0b26135a448e2a5f3d4e4d82e151 (patch) | |
tree | 7b86fd58bf49211a9666a6f94095c7105516cb2c /awkgram.c | |
parent | 3fc30463797c0ba8648e76ab6de76b883ce79a86 (diff) | |
download | egawk-51181b9f13fe0b26135a448e2a5f3d4e4d82e151.tar.gz egawk-51181b9f13fe0b26135a448e2a5f3d4e4d82e151.tar.bz2 egawk-51181b9f13fe0b26135a448e2a5f3d4e4d82e151.zip |
Code cleanups and bug fix.
Diffstat (limited to 'awkgram.c')
-rw-r--r-- | awkgram.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -9273,8 +9273,8 @@ check_qualified_special(char *token) * Now it's more complicated. Here are the rules. * * 1. Namespace name cannot be a standard awk reserved word or function. - * 2. Subordinate part of the name cannot be standard awk reserved word or function. - * 3. If namespace part is explicitly "awk", return result of check_special(). + * 2. Subordinate part of the name cannot be a standard awk reserved word or function. + * 3. If the namespace part is explicitly "awk", return the result of check_special(). * 4. Else return -1 (gawk extensions allowed, we check standard awk in step 2). */ @@ -9306,12 +9306,12 @@ check_qualified_special(char *token) // Now check the subordinate part i = check_special(subname); - if (i >= 0 && (tokentab[i].flags & GAWKX) == 0 && strcmp(ns, "awk") != 0) { + if (i >= 0 && (tokentab[i].flags & GAWKX) == 0 && strcmp(ns, awk_namespace) != 0) { error_ln(sourceline, _("using reserved identifier `%s' as second component of a qualified name is not allowed"), subname); goto done; } - if (strcmp(ns, "awk") == 0) { + if (strcmp(ns, awk_namespace) == 0) { i = check_special(subname); if (i >= 0) { if ((tokentab[i].flags & GAWKX) != 0 && tokentab[i].class == LEX_BUILTIN) |