Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PM_* flags in zsh.h (was Re: [PATCH 1/3]: Add named references)
- X-seq: zsh-workers 51419
- From: Oliver Kiddle <opk@xxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: PM_* flags in zsh.h (was Re: [PATCH 1/3]: Add named references)
- Date: Sun, 12 Feb 2023 22:01:36 +0100
- Archived-at: <https://zsh.org/workers/51419>
- In-reply-to: <CAH+w=7ZA6urwM5X8s+BXCW58-3dxy7yHiOgRHAbi9_zuW-VDvg@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAH+w=7bd5tHQ8_ZFuyheUrTStm8pR826jH1LB-vMdEnv14nH0w@mail.gmail.com> <67689-1675827940.088548@BxvG.D9_b.7RzI> <CAH+w=7ZFq_MyNtPVetDt84Zp8dnCQXis3p=2sKP018GZ-VTd0g@mail.gmail.com> <12608-1675903622.800470@Xj82.e3y1.svhG> <CAH+w=7ZZUCqYe6w1ZqZZKR6iLsZH0SDDXyzwgTU93nxx6bmxjQ@mail.gmail.com> <66045-1675975796.128039@FBF_.0yMO.Y8fk> <CAH+w=7bcqc8SsRxsht0QFyXy=DYzj6nVaBFhdzQ5MrBB+yBz+A@mail.gmail.com> <94092-1676192523.865597@yGHQ.rexg.4E4Z> <CAH+w=7ZWQ_KgSmLDeC6hDq+dsZVeK-29NriD0h0BdL60TOfTYQ@mail.gmail.com> <CAH+w=7ZA6urwM5X8s+BXCW58-3dxy7yHiOgRHAbi9_zuW-VDvg@mail.gmail.com>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author