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)



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