Expand debug to contain more than 31 cases

Kornel Benko kornel at lyx.org
Tue Apr 19 11:53:06 UTC 2022


Am Tue, 19 Apr 2022 13:05:37 +0200
schrieb Jean-Marc Lasgouttes <lasgouttes at lyx.org>:

> 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

Done at d09f5ce1. Needs recompiling everything because 'make'
here has not all dependencies right. I had to do:
	$ make clean
	$ make package
in the build directory to get it right.

	Kornel

-- 
lyx-devel mailing list
lyx-devel at lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20220419/f3aca182/attachment.asc>


More information about the lyx-devel mailing list