[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] Prototypes of memory debugging routines on WIN64

From: Werner LEMBERG
Subject: Re: [ft-devel] Prototypes of memory debugging routines on WIN64
Date: Sun, 16 Sep 2018 08:04:38 +0200 (CEST)

>> - FT_Alloc_Func and FT_Realloc_Func have "long" in the headers but
>>   have FT_Long in the implementation of the debug pairs.  (the
>>   normal pair have "long").  Some consistency would be good.  I
>>   tried changing the header to FT_Long (and redefining FT_Long to
>>   64-bit) but unfortunately the public header does not include the
>>   FT_Long definition in inttypes.h

There is no `FT_Long' definition in the C99 header file
`inttypes.h'...  You probably mean a different file, right?

>>   and it gets rather ugly when different part of FreeType thinks of
>>   FT_Long with different sizes...  Those functions need a 64-bit
>>   type in the prototype, and neither "long" nor "FT_Long" are
>>   currently 64-bit on win64.
> Indeed, size_t is the correct C89-compliant type.  Would it hurt to
> modify FT_Alloc_Func and FT_Realloc_Func?

Good question.  Please check your changes with

and report the results.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]