Expand debug to contain more than 31 cases

Jean-Marc Lasgouttes lasgouttes at lyx.org
Tue Apr 19 11:05:37 UTC 2022


Le 19/04/2022 à 11:07, Kornel Benko a écrit :
>> Besides the discussion of FINDSHORT, I do not think that size_t is a
>> good type, since the only guarantee is that it is more than 16 bits
>> (even on 32bit architectures, it is probably 32 bits). int64_t is
>> probably what you are after.
> 
> Yes. I had the (apparently wrong) impression that size_t ==  .

This is exact, regexp-wise: size_t is... something :)

>> Using int64_t instead of Debug::Type is indeed the thing to do for
>> bitfields like this. However, it would be best to define this type as
>> Debug::base_type or some simpler name if you have one in mind.
> 
> Like
> 	typedef uint64_t Debug::base_type;
> ?

Right.

JMarc


More information about the lyx-devel mailing list