[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
https://lvc.github.io/abi-compliance-checker/
and report the results.
Werner
- [ft-devel] Prototypes of memory debugging routines on WIN64, Hin-Tak Leung, 2018/09/11
- Re: [ft-devel] Prototypes of memory debugging routines on WIN64, Alexei Podtelezhnikov, 2018/09/11
- Re: [ft-devel] Prototypes of memory debugging routines on WIN64, Alexei Podtelezhnikov, 2018/09/14
- Re: [ft-devel] Prototypes of memory debugging routines on WIN64, Werner LEMBERG, 2018/09/16
- Re: [ft-devel] Prototypes of memory debugging routines on WIN64, Alexei Podtelezhnikov, 2018/09/26
- Re: [ft-devel] Prototypes of memory debugging routines on WIN64, Werner LEMBERG, 2018/09/27
- Re: [ft-devel] Prototypes of memory debugging routines on WIN64, Alexei Podtelezhnikov, 2018/09/27
- Re: [ft-devel] Prototypes of memory debugging routines on WIN64, Werner LEMBERG, 2018/09/28
Re: [ft-devel] Prototypes of memory debugging routines on WIN64,
Werner LEMBERG <=
Re: [ft-devel] Prototypes of memory debugging routines on WIN64, Hin-Tak Leung, 2018/09/28