diff options
author | Alexei Podtelezhnikov <apodtele@gmail.com> | 2018-09-27 21:17:36 -0400 |
---|---|---|
committer | Alexei Podtelezhnikov <apodtele@gmail.com> | 2018-09-27 21:17:36 -0400 |
commit | 877aa1b2cc662978aae61ed4d5c6ea8ba56b2fe7 (patch) | |
tree | 3d1bf0eb5e56b6d205134ed5fc9717a3a0ab12ee /include | |
parent | 4500c701c29f154eb0acd44552590d0dc315ac5f (diff) | |
download | freetype2-877aa1b2cc662978aae61ed4d5c6ea8ba56b2fe7.tar.gz |
Align FreeType with standard C memory management.
* include/freetype/ftsystem.h: Include FT_TYPES_H.
(*FT_Alloc_Func, *FT_Realloc_Func): Use size_t for the size arguments.
* src/raster/ftmisc.h: Ditto.
* builds/amiga/src/base/ftsystem.c, builds/unix/ftsystem.c,
* builds/vms/ftsystem.c, src/base/ftsystem.c (ft_alloc, ft_realloc):
Use size_t for the size arguments.
* src/base/ftdbgmem.c (ft_mem_debug_alloc, ft_mem_debug_realloc): Use
FT_Offset, aka size_t, for the size arguments.
Diffstat (limited to 'include')
-rw-r--r-- | include/freetype/ftsystem.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/freetype/ftsystem.h b/include/freetype/ftsystem.h index d6947f526..810b7b848 100644 --- a/include/freetype/ftsystem.h +++ b/include/freetype/ftsystem.h @@ -21,6 +21,7 @@ #include <ft2build.h> +#include FT_TYPES_H FT_BEGIN_HEADER @@ -86,7 +87,7 @@ FT_BEGIN_HEADER */ typedef void* (*FT_Alloc_Func)( FT_Memory memory, - long size ); + size_t size ); /************************************************************************** @@ -140,8 +141,8 @@ FT_BEGIN_HEADER */ typedef void* (*FT_Realloc_Func)( FT_Memory memory, - long cur_size, - long new_size, + size_t cur_size, + size_t new_size, void* block ); |