Expand debug to contain more than 31 cases

Kornel Benko kornel at lyx.org
Thu Apr 21 12:59:21 UTC 2022


Am Thu, 21 Apr 2022 14:45:39 +0200
schrieb Pavel Sanda <sanda at lyx.org>:

> On Tue, Apr 19, 2022 at 11:12:06AM +0200, Kornel Benko wrote:
> > > I am not sure that we need a verbose level yet. What about
> > > -dbg find => FINDSHORT
> > > -dbg find --verbose => FIND
> > > 
> > > JMarc  
> > 
> > I propose to do it as a next step. Better not too many changes at once IMO.  
> 
> make[5]: Entering directory '/lyx/src/support'
>   CXX      debug.o
> In file included from debug.cpp:15:0:
> ./../support/debug.h:40:10: error: 'uint64_t' does not name a type
>   typedef uint64_t base_type;
> 
> 
> Well, not that small change. On some gcc versions you need to include cstdint
> header to have uint64_t available (AFAIK we don't use uint64_t anywhere else
> in the code).
> And including <cstdint> in debug.h which is used everywhere is not great idea.
> 
> Pavel

Does your /usr/include/stdint.h define anything appropriate?
Here it includes /usr/include/x86_64-linux-gnu/bits/stdint-uintn.h which defines uint64_t
OTOH, there is also the sequence
#if __WORDSIZE == 64
typedef unsigned long int       uint_least64_t;
#else
__extension__
typedef unsigned long long int  uint_least64_t;
#endif

	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/20220421/5de1d7f0/attachment.asc>


More information about the lyx-devel mailing list