diff options
author | Alexei Podtelezhnikov <apodtele@gmail.com> | 2023-02-26 08:07:08 -0500 |
---|---|---|
committer | Alexei Podtelezhnikov <apodtele@gmail.com> | 2023-03-06 16:23:14 -0500 |
commit | de94e2cbfbbb65ad2242023b056a52a5427af9fc (patch) | |
tree | 9bce68d0cbbe4c1180553009dc1d6904fa2cf305 /src/truetype/ttinterp.h | |
parent | b2a949062367f0b3c5eff2e71144547b09386298 (diff) | |
download | freetype2-de94e2cbfbbb65ad2242023b056a52a5427af9fc.tar.gz |
[truetype] Simplify memory management.
Instead of using `Update_Max`, switch to regular FreeType memory
allocation macros, stop pre-allocating the glyph instruction arrays.
* src/truetype/ttgload.c (TT_Load_Simple_Glyph,
TT_Process_Composite_Glyph): Switch to regular memory allocation.
* src/truetype/ttinterp.c (Update_Max): Removed.
(TT_Load_Context): Reallocate stack and free old instructions.
(Modify_CVT_Check, Ins_WS): Switch to regular memory allocation.
* src/truetype/ttinterp.h (Update_Max): Removed.
Diffstat (limited to 'src/truetype/ttinterp.h')
-rw-r--r-- | src/truetype/ttinterp.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/truetype/ttinterp.h b/src/truetype/ttinterp.h index c54c053b2..891e2123c 100644 --- a/src/truetype/ttinterp.h +++ b/src/truetype/ttinterp.h @@ -460,14 +460,6 @@ FT_BEGIN_HEADER FT_LOCAL( void ) TT_Clear_CodeRange( TT_ExecContext exec, FT_Int range ); - - - FT_LOCAL( FT_Error ) - Update_Max( FT_Memory memory, - FT_ULong* size, - FT_ULong multiplier, - void* _pbuff, - FT_ULong new_max ); #endif /* TT_USE_BYTECODE_INTERPRETER */ |