From abae4fe16e26cf027e7c8165d27b93d74bbd18b2 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 18 Jun 2007 13:25:03 +0000 Subject: 23562: add KSH_ZERO_SUBSCRIPT option and leave off by default --- Src/zsh.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Src/zsh.h') 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, -- cgit 1.4.1