From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30087 invoked from network); 12 Feb 2023 21:01:51 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 12 Feb 2023 21:01:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Message-ID:Date:Content-ID: Content-Type:MIME-Version:Subject:To:References:From:In-reply-to:cc:Reply-To: Content-Transfer-Encoding:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=5ZA/TScwYmkVC8xK6BYxiTlIDTESD/T64MFHw9kDSpw=; b=YN4L8f+8jAd3qw9izirJE32Le3 Azy3rTvD7SqhMos/qgdhfKDMERZi/VwyrdDQG/6EdurKwK+zObkh1CT11CXK4MdaZkuif8qvvUMIj 8P4o7K4Ajlj5XsZf4+D4sr1x92P1fEdLWdYy9HyYmuKyQvUIZFThmeWmW1UoflMtVf6pqH8yXNp6Z x7rKW1kxL5IU00fy/cp6ixAw2++W0VL5W7kdoMcgTbdbdE4/buFVZgLXCfhOjuWHmhwjdpM/KEj7I zay1+rRYZurx37ZKeADXt2bcM73DcaiOXODKTk73xDDfBgpCFk16K4BYAVwKvGi1LDPRwjdkurggR zVvdbkoQ==; Received: by zero.zsh.org with local id 1pRJTr-000252-6v; Sun, 12 Feb 2023 21:01:51 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1pRJTd-0001ke-Jf; Sun, 12 Feb 2023 21:01:37 +0000 Received: from [192.168.178.21] (helo=hydra) by mail.kiddle.eu with esmtp(Exim 4.95) (envelope-from ) id 1pRJTc-0005DM-Gq; Sun, 12 Feb 2023 22:01:36 +0100 cc: Zsh hackers list In-reply-to: From: Oliver Kiddle References: <67689-1675827940.088548@BxvG.D9_b.7RzI> <12608-1675903622.800470@Xj82.e3y1.svhG> <66045-1675975796.128039@FBF_.0yMO.Y8fk> <94092-1676192523.865597@yGHQ.rexg.4E4Z> To: Bart Schaefer Subject: Re: PM_* flags in zsh.h (was Re: [PATCH 1/3]: Add named references) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <20046.1676235696.1@hydra> Date: Sun, 12 Feb 2023 22:01:36 +0100 Message-ID: <20047-1676235696.518658@-dkD.F-In.Dv7_> X-Seq: 51419 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: Bart Schaefer wrote: > We're up to (1<<30) on PM_* flags. Can we go above (1<<31) ? We can't even use 1<<31 without either refactoring to ensure the use of unsigned int or making it otherwise work for either a 32 or 64-bit int. Perhaps assigning it as INT_MIN just works but I'm not sure. See 43674. I had somehow missed the fact that Peter had freed two bits there. It might be better to force it up to 64-bits if doing refactoring. There are a few mutually exclusive flags which would imply that bits could be freed but the need to correspond to letters in TYPESET_OPTSTR prevents that. Oliver