diff options
author | Peter Stephenson <pws@zsh.org> | 2016-09-06 09:42:33 +0100 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2016-09-06 09:42:33 +0100 |
commit | fe3a63fa6cdffa020e380d3e27cf0eb8f3b46b1f (patch) | |
tree | 57c9d2effcaf3fa6638dcecff492b2bd4e058f60 /Src/zsh.h | |
parent | 33a8a6f86cd63a1daf845b269f6c56ea477c891e (diff) | |
download | zsh-fe3a63fa6cdffa020e380d3e27cf0eb8f3b46b1f.tar.gz zsh-fe3a63fa6cdffa020e380d3e27cf0eb8f3b46b1f.zip |
39181: Add PM_SINGLE and use for compstate.
This flags that compstate (or any other special) can only have
a single instance and an attempt to create a new one is an error.
Given the very fiddly semantics of compstate any other usage
seems pointless.
No investigation yet of other variables that could use this.
Note it's still possible to hide such variables; only instances
that keep the special nature are affected.
Diffstat (limited to 'Src/zsh.h')
-rw-r--r-- | Src/zsh.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1792,6 +1792,7 @@ struct tieddata { #define PM_ZSHSTORED (1<<18) /* function stored in zsh form */ /* Remaining flags do not correspond directly to command line arguments */ +#define PM_SINGLE (1<<20) /* special can only have a single instance */ #define PM_LOCAL (1<<21) /* this parameter will be made local */ #define PM_SPECIAL (1<<22) /* special builtin parameter */ #define PM_DONTIMPORT (1<<23) /* do not import this variable */ |