Expand debug to contain more than 31 cases

Jean-Marc Lasgouttes lasgouttes at lyx.org
Tue Apr 19 08:51:14 UTC 2022


Le 18/04/2022 à 12:21, Kornel Benko a écrit :
> The output while debugging findadv is overwhelming, but sometimes
> one needs only a small subset. Therefore the addition of -dbg findshort.

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.

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.

JMarc



More information about the lyx-devel mailing list