diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2021-10-18 19:22:28 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2021-10-18 19:22:28 +0300 |
commit | 3d6d06827c2a84b5b3a22de5b546857b3c3991e1 (patch) | |
tree | 26959c55eebe15fc055ab2cf7b8f15369c0863da /awkgram.c | |
parent | d100c8c8db2edd4a06a90c238cddf2a224689409 (diff) | |
parent | 51181b9f13fe0b26135a448e2a5f3d4e4d82e151 (diff) | |
download | egawk-3d6d06827c2a84b5b3a22de5b546857b3c3991e1.tar.gz egawk-3d6d06827c2a84b5b3a22de5b546857b3c3991e1.tar.bz2 egawk-3d6d06827c2a84b5b3a22de5b546857b3c3991e1.zip |
Merge branch 'gawk-5.1-stable'
Diffstat (limited to 'awkgram.c')
-rw-r--r-- | awkgram.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -9274,8 +9274,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). */ @@ -9307,12 +9307,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) |