[FREETYPE] Bring back our diffs to reduce the stack usage in cf2_interpT2CharString...
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 20 Jan 2018 21:30:11 +0000 (22:30 +0100)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sun, 21 Jan 2018 12:31:05 +0000 (13:31 +0100)
sdk/lib/3rdparty/freetype/src/psaux/psintrp.c

index 5c0ee78..1ac5b93 100644 (file)
     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 );
            * 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;
 
 
                              &counterMask,
                              0,
                              FALSE );
+#ifdef __REACTOS__
+          free(&counterHintMap);
+#endif
         }
         break;
 
 
     FT_TRACE4(( "\n" ));
 
+#ifdef __REACTOS__
+    free(&glyphPath);
+#undef counterHintMap
+#undef glyphPath
+#endif
+
     return;
   }