From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18418 invoked by alias); 8 Nov 2014 21:42:17 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 33655 Received: (qmail 5283 invoked from network); 8 Nov 2014 21:42:14 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, URIBL_RHS_DOB autolearn=no version=3.3.2 X-Originating-IP: [80.3.229.105] X-Spam: 0 X-Authority: v=2.1 cv=dY0O3Bne c=1 sm=1 tr=0 a=uz1KDxDNIq33yePw376BBA==:117 a=uz1KDxDNIq33yePw376BBA==:17 a=NLZqzBF-AAAA:8 a=kj9zAlcOel0A:10 a=q2GGsy2AAAAA:8 a=Ex5H5cVyaZl8tGkgI24A:9 a=CjuIK1q_8ugA:10 Date: Sat, 8 Nov 2014 21:42:11 +0000 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: PRINT_TYPESET vs PRINT_WHENCE_CSH Message-ID: <20141108214211.705fb2ac@pws-pc.ntlworld.com> In-Reply-To: <141108124604.ZM19297@torch.brasslantern.com> References: <141108124604.ZM19297@torch.brasslantern.com> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.7; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sat, 08 Nov 2014 12:46:04 -0800 Bart Schaefer wrote: > Either these sets of flags shouldn't overlap at all, or it shouldn't matter > that they both start at (1<<0) ... or there's some reason to imply that > whence and typeset are related? I think I added PRINT_TYPESET in 2002 without looking at the others; they should be kept separate for neatness though it doesn't actually matter in practice since they apply to different types of node. We seemed to lose bit 8 at some point. diff --git a/Src/zsh.h b/Src/zsh.h index d284c7a..031deaf 100644 --- a/Src/zsh.h +++ b/Src/zsh.h @@ -1865,9 +1865,9 @@ typedef groupset *Groupset; #define PRINT_TYPESET (1<<5) /* flags for printing for the whence builtin */ -#define PRINT_WHENCE_CSH (1<<5) -#define PRINT_WHENCE_VERBOSE (1<<6) -#define PRINT_WHENCE_SIMPLE (1<<7) +#define PRINT_WHENCE_CSH (1<<6) +#define PRINT_WHENCE_VERBOSE (1<<7) +#define PRINT_WHENCE_SIMPLE (1<<8) #define PRINT_WHENCE_FUNCDEF (1<<9) #define PRINT_WHENCE_WORD (1<<10) -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/