summary refs log tree commit diff
path: root/Src/zsh.h
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-06-18 13:25:03 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-06-18 13:25:03 +0000
commitabae4fe16e26cf027e7c8165d27b93d74bbd18b2 (patch)
tree811bae4da4a0b6f0b370334a7f01ee5d9b9c8baf /Src/zsh.h
parent5c44b0a472c6e9efdec28ef03337c484b1bc3ce1 (diff)
downloadzsh-abae4fe16e26cf027e7c8165d27b93d74bbd18b2.tar.gz
zsh-abae4fe16e26cf027e7c8165d27b93d74bbd18b2.tar.xz
zsh-abae4fe16e26cf027e7c8165d27b93d74bbd18b2.zip
23562: add KSH_ZERO_SUBSCRIPT option and leave off by default
Diffstat (limited to 'Src/zsh.h')
-rw-r--r--Src/zsh.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/Src/zsh.h b/Src/zsh.h
index f7255c6e7..4f11b19ad 100644
--- a/Src/zsh.h
+++ b/Src/zsh.h
@@ -585,12 +585,17 @@ struct asgment {
 struct value {
     int isarr;
     Param pm;		/* parameter node                      */
-    int inv;		/* should we return the index ?        */
+    int flags;		/* flags defined below                 */
     int start;		/* first element of array slice, or -1 */
     int end;		/* 1-rel last element of array slice, or -1 */
     char **arr;		/* cache for hash turned into array */
 };
 
+enum {
+    VALFLAG_INV =	0x0001,	/* We are performing inverse subscripting */
+    VALFLAG_EMPTY =	0x0002	/* Subscripted range is empty */
+};
+
 #define MAX_ARRLEN    262144
 
 /********************************************/
@@ -1725,6 +1730,7 @@ enum {
     KSHGLOB,
     KSHOPTIONPRINT,
     KSHTYPESET,
+    KSHZEROSUBSCRIPT,
     LISTAMBIGUOUS,
     LISTBEEP,
     LISTPACKED,