shithub: freetype+ttf2subf

Download patch

ref: 62d116f8d651d24f6e5511b4c91feec2dff50d8e
parent: 9a2e255b23e44ee9e2ae8c1e5d50cf3ccb26ef16
author: suzuki toshiya <[email protected]>
date: Sun Jan 9 17:38:10 EST 2011

[cache] Fit FTC_GNode_Compare() to FTC_Node_CompareFunc.

* src/cache/ftcglyph.h (FTC_GNode_Compare): Add the 3rd
argument `FTC_Cache  cache' to fit FTC_Node_CompareFunc
prototype.
* src/cache/ftcglyph.c (FTC_GNode_Compare): Ditto. Anyway,
`cache' is not used by its child ftc_gnode_compare().

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
 2010-01-09  suzuki toshiya  <[email protected]>
 
+	[cache] Fit FTC_GNode_Compare() to FTC_Node_CompareFunc.
+
+	* src/cache/ftcglyph.h (FTC_GNode_Compare): Add the 3rd
+	argument `FTC_Cache  cache' to fit FTC_Node_CompareFunc
+	prototype.
+	* src/cache/ftcglyph.c (FTC_GNode_Compare): Ditto. Anyway,
+	`cache' is not used by its child ftc_gnode_compare().
+
+2010-01-09  suzuki toshiya  <[email protected]>
+
 	[cache] Deduplicate the code to get the top node by a hash.
 
 	There are several duplicated codes getting the top node
--- a/src/cache/ftcglyph.c
+++ b/src/cache/ftcglyph.c
@@ -80,9 +80,10 @@
 
   FT_LOCAL_DEF( FT_Bool )
   FTC_GNode_Compare( FTC_GNode   gnode,
-                     FTC_GQuery  gquery )
+                     FTC_GQuery  gquery,
+                     FTC_Cache   cache )
   {
-    return ftc_gnode_compare( FTC_NODE( gnode ), gquery, NULL );
+    return ftc_gnode_compare( FTC_NODE( gnode ), gquery, cache );
   }
 
 #endif
--- a/src/cache/ftcglyph.h
+++ b/src/cache/ftcglyph.h
@@ -187,7 +187,8 @@
   /* already correctly set                                             */
   FT_LOCAL( FT_Bool )
   FTC_GNode_Compare( FTC_GNode   gnode,
-                     FTC_GQuery  gquery );
+                     FTC_GQuery  gquery,
+                     FTC_Cache   cache );
 
 #endif