From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24792 invoked by alias); 7 Jun 2017 22:17:43 -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: 41254 Received: (qmail 4237 invoked from network); 7 Jun 2017 22:17:43 -0000 X-Qmail-Scanner-Diagnostics: from mail-vk0-f51.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.213.51):SA:0(-0.0/5.0):. Processed in 0.757682 secs); 07 Jun 2017 22:17:43 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.213.51 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=VOX3mnXCq7ZzLeXTo5IOlEmQTeN9JvVG1hNjZ7kQeX4=; b=BpNpEVByI9JWnZWkkhbmsFx4EXdsMmCLgdJYVID73OAjQ0A7oa61nB0WHgQyxMHLBg C3ijB+LAcGq2+9i48fQrV2hVzGdRqMUP8B90kICPhpPNQMNrzg4OzRG9+GFQ+KMmuW6m +jI9z2F/Ya55RBmZerOffy1cRCxfLS+oSF/etZbOF5iGXbtxFqyR0cpJsYXwC9QoUxop Ic/8KbZWlIv8YKY0pvKrqzz1WP6b80XZBDdq2Pq3O/nReFk6wI+mHenc4a3a7skIA688 +Quyy+4MFFiLEYA4qx2XUiaG9/UYlIXZ2xtb5eTGeC4WCi58xW6KZ2aTm0T6Qw7mV2lq D/aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=VOX3mnXCq7ZzLeXTo5IOlEmQTeN9JvVG1hNjZ7kQeX4=; b=fRz+gwhrTvYX6KWzEoaDdyAGAl7E8UXFIQQv3JOFWMZ9DwkN/5tRnmwk2QvoIVtakY 1Ak9GrnkxsvwZiJ73TNiO3AY6Exxe3b4SRPU5y1rYhb+SkSIPmY37Y/vNcb1Df9PHrfa AgLd+cQ9kUT8d3MZfKDlFFyw2D6Bh8w8+Rr68/vGvxAnFfxbZNy0m/Gao1JIU7FCohpa FW+jFKzTN2VPU0jar4jzNZlwu6jT64IBbVzh8oeShkrP0OdPqziBBW7oH/5raNeeeIep 8+JGx6NtzOkrnzRYhf9HEU9Iu9BulUx6SuOgCDIU7cKV97ESNNETXLOxkwr5HwFGek3V FS1A== X-Gm-Message-State: AODbwcBGo+ybhY/wb6nKCT+7TCQoEOMEwj/GZbqWryNxjbn77Uie26jG 8TTp4uefgmdJJYda9+g= X-Received: by 10.31.152.18 with SMTP id a18mr7177526vke.145.1496873858250; Wed, 07 Jun 2017 15:17:38 -0700 (PDT) From: Bart Schaefer Message-Id: <170607151802.ZM17932@torch.brasslantern.com> Date: Wed, 7 Jun 2017 15:18:02 -0700 In-Reply-To: <16943.1496832826@thecus.kiddle.eu> Comments: In reply to Oliver Kiddle "PM_ flags (Re: mikachu/badarrays ...)" (Jun 7, 12:53pm) References: <170528124337.ZM9444@torch.brasslantern.com> <170530224728.ZM25709@torch.brasslantern.com> <16943.1496832826@thecus.kiddle.eu> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh workers Subject: Re: PM_ flags (Re: mikachu/badarrays ...) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jun 7, 12:53pm, Oliver Kiddle wrote: } } Should we perhaps change the flags field in struct param to be a 64-bit } value to make room for more flags? Can we portably use something like } uint64_t or is it not that simple? The main problem is that there is assumed to be a mapping from bit positions to indexes in the TYPESET_OPTSTR string. At some point we started adding PM_FLAGS at the opt of the range to mean things other than what could be assigned via "typeset -C" for some value of C, and now the stack has grown down to meet the heap, so to speak. So we'd have to renumber everything to move to a 64-bit representation, opening up that space in the middle again. This, by the way, is an example of why it's very difficult to build zsh modules outside the tree that can be re-used across zsh versions; there are lots of cases (wordcode being another example) where values that are built into a module at time T could be dangerously wrong for a shell compiled at T+N.