diff options
author | Bart Schaefer <schaefer@zsh.org> | 2023-02-12 11:21:23 -0800 |
---|---|---|
committer | Bart Schaefer <schaefer@zsh.org> | 2023-02-12 11:21:23 -0800 |
commit | 511e020c68955f737036b7febd360615517a3637 (patch) | |
tree | 32674f5c1af114622f81bd30b82cd74b02db9f8a /Src/zsh.h | |
parent | d3edf318306e37d2d96c4e4ea442d10207722e94 (diff) | |
download | zsh-511e020c68955f737036b7febd360615517a3637.tar.gz zsh-511e020c68955f737036b7febd360615517a3637.tar.xz zsh-511e020c68955f737036b7febd360615517a3637.zip |
51360: Initial implementation of named references.
Diffstat (limited to 'Src/zsh.h')
-rw-r--r-- | Src/zsh.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Src/zsh.h b/Src/zsh.h index f82e76e4b..1e35bd33e 100644 --- a/Src/zsh.h +++ b/Src/zsh.h @@ -1852,8 +1852,9 @@ struct param { GsuHash h; } gsu; - int base; /* output base or floating point prec */ - int width; /* field width */ + int base; /* output base or floating point prec or */ + /* for namerefs, locallevel of reference */ + int width; /* field width or nameref subscript idx */ char *env; /* location in environment, if exported */ char *ename; /* name of corresponding environment var */ Param old; /* old struct for use with local */ @@ -1932,9 +1933,10 @@ struct tieddata { */ #define PM_HASHELEM (1<<28) /* is a hash-element */ #define PM_NAMEDDIR (1<<29) /* has a corresponding nameddirtab entry */ +#define PM_NAMEREF (1<<30) /* pointer to a different parameter */ /* The option string corresponds to the first of the variables above */ -#define TYPESET_OPTSTR "aiEFALRZlurtxUhHTkz" +#define TYPESET_OPTSTR "aiEFALRZlurtxUhHT" /* These typeset options take an optional numeric argument */ #define TYPESET_OPTNUM "LRZiEF" |