From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Update Util/printdefines for recent changes
Date: Tue, 7 Mar 2023 17:52:41 -0800 [thread overview]
Message-ID: <CAH+w=7bL4AxJ7iWDr-g8H74uthKrY47AzQMg-x-BrrsDERHfrg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 191 bytes --]
Also fix a problem in "printnodeflags" by splitting into
"printparamflags" and "printwhenceflags". There's really no need for
the overlap, though -- should we just renumber PRINT_WHENCE_* ?
[-- Attachment #2: printdefines-update.txt --]
[-- Type: text/plain, Size: 1916 bytes --]
diff --git a/Util/printdefines b/Util/printdefines
index 30c06533b..c1306a19e 100644
--- a/Util/printdefines
+++ b/Util/printdefines
@@ -288,16 +288,18 @@ local -AHPrt scanparamflags=(
mapbase 2
$((1<<0)) SCANPM_WANTVALS # Return value includes hash values
$((1<<1)) SCANPM_WANTKEYS # Return value includes hash keys
- $((1<<2)) SCANPM_WANTINDEX # Return value includes array index
+ $((1<<2)) SCANPM_WANTINDEX # Return value includes array index
$((1<<3)) SCANPM_MATCHKEY # Subscript matched against key
$((1<<4)) SCANPM_MATCHVAL # Subscript matched against value
- $((1<<5)) SCANPM_MATCHMANY # Subscript matched repeatedly, return all
- $((1<<6)) SCANPM_ASSIGNING # Assigning whole array/hash
+ $((1<<5)) SCANPM_MATCHMANY # Subscript matched repeatedly, return all
+ $((1<<6)) SCANPM_ASSIGNING # Assigning whole array/hash
$((1<<7)) SCANPM_KEYMATCH # keys of hash treated as patterns
$((1<<8)) SCANPM_DQUOTED # substitution was double-quoted
$((1<<9)) SCANPM_ARRONLY # value is array but we don't
$((1<<10)) SCANPM_CHECKING # Check if set, no need to create
$((1<<11)) SCANPM_NOEXEC # No command substitutions, etc.
+ $((1<<12)) SCANPM_NONAMESPC # namespace syntax not allowed
+ $((1<<13)) SCANPM_NONAMEREF # named references are not followed
)
local -AHPrt substmodifiers=(
mapbase 16
@@ -314,7 +316,7 @@ local -AHPrt substmodifiers=(
$((0x0400)) SUB_DOSUBST # replacement string needs substituting
$((0x4000)) SUB_EGLOB # use extended globbing in patterns
)
-local -AHPrt printnodeflags=(
+local -AHPrt printparamflags=(
mapbase 2
$((1<<0)) PRINT_NAMEONLY
$((1<<1)) PRINT_TYPE
@@ -325,6 +327,9 @@ local -AHPrt printnodeflags=(
$((1<<6)) PRINT_LINE
$((1<<7)) PRINT_POSIX_EXPORT
$((1<<8)) PRINT_POSIX_READONLY
+ $((1<<9)) PRINT_WITH_NAMESPACE
+)
+local -AHPrt printwhenceflags=(
$((1<<7)) PRINT_WHENCE_CSH
$((1<<8)) PRINT_WHENCE_VERBOSE
$((1<<9)) PRINT_WHENCE_SIMPLE
reply other threads:[~2023-03-08 1:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAH+w=7bL4AxJ7iWDr-g8H74uthKrY47AzQMg-x-BrrsDERHfrg@mail.gmail.com' \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).