[FREETYPE] Bring back our diffs to reduce the stack usage in cf2_interpT2CharString(). CORE-14227

This commit is contained in:
Amine Khaldi 2018-01-20 22:30:11 +01:00
parent dade22f479
commit d7c47feb25

View file

@ -525,8 +525,13 @@
CF2_ArrStackRec vStemHintArray;
CF2_HintMaskRec hintMask;
#ifdef __REACTOS__
CF2_GlyphPathRec *glyphPath = malloc(sizeof(CF2_GlyphPathRec));
/* Ugly but it allows us to reduce the diff */
#define glyphPath (*glyphPath)
#else
CF2_GlyphPathRec glyphPath;
#endif
FT_ZERO( &storage );
FT_ZERO( &results );
@ -2606,7 +2611,13 @@
* discard `counterMask' and `counterHintMap'.
*
*/
#ifdef __REACTOS__
CF2_HintMapRec *counterHintMap = malloc(sizeof(CF2_HintMapRec));
/* Ugly but it allows us to reduce the diff */
#define counterHintMap (*counterHintMap)
#else
CF2_HintMapRec counterHintMap;
#endif
CF2_HintMaskRec counterMask;
@ -2627,6 +2638,9 @@
&counterMask,
0,
FALSE );
#ifdef __REACTOS__
free(&counterHintMap);
#endif
}
break;
@ -3031,6 +3045,12 @@
FT_TRACE4(( "\n" ));
#ifdef __REACTOS__
free(&glyphPath);
#undef counterHintMap
#undef glyphPath
#endif
return;
}