summaryrefslogtreecommitdiffstats
path: root/Src/zsh.h
diff options
context:
space:
mode:
authorPhilippe Altherr <philippe.altherr@gmail.com>2026-02-16 16:22:18 -0800
committerBart Schaefer <schaefer@zsh.org>2026-02-16 16:22:18 -0800
commit09e1b5631dfe367aa8e44acf28bc8581a47a5d54 (patch)
tree2ce03eb479e7e6306ce55cdd26d812fb2d1b68a4 /Src/zsh.h
parent54122: avoid warnings for valid nameref options (diff)
downloadzsh-09e1b5631dfe367aa8e44acf28bc8581a47a5d54.tar
zsh-09e1b5631dfe367aa8e44acf28bc8581a47a5d54.tar.gz
zsh-09e1b5631dfe367aa8e44acf28bc8581a47a5d54.tar.bz2
zsh-09e1b5631dfe367aa8e44acf28bc8581a47a5d54.tar.lz
zsh-09e1b5631dfe367aa8e44acf28bc8581a47a5d54.tar.xz
zsh-09e1b5631dfe367aa8e44acf28bc8581a47a5d54.tar.zst
zsh-09e1b5631dfe367aa8e44acf28bc8581a47a5d54.zip
53776: Add PM_NAMEREF to PM_TYPE, reject array initializers for namerefs
Diffstat (limited to 'Src/zsh.h')
-rw-r--r--Src/zsh.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/zsh.h b/Src/zsh.h
index bc784e7ad..0dc83ded4 100644
--- a/Src/zsh.h
+++ b/Src/zsh.h
@@ -1883,7 +1883,7 @@ struct tieddata {
#define PM_HASHED (1<<4) /* association */
#define PM_TYPE(X) \
- (X & (PM_SCALAR|PM_INTEGER|PM_EFLOAT|PM_FFLOAT|PM_ARRAY|PM_HASHED))
+ (X & (PM_SCALAR|PM_INTEGER|PM_EFLOAT|PM_FFLOAT|PM_ARRAY|PM_HASHED|PM_NAMEREF))
#define PM_LEFT (1<<5) /* left justify, remove leading blanks */
#define PM_RIGHT_B (1<<6) /* right justify, fill with leading blanks */