>> - 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

  https://lvc.github.io/abi-compliance-checker/

and report the results.


    Werner

_______________________________________________
Freetype-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to