[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().
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
diff --git a/ChangeLog b/ChangeLog
index 112f18b..0d8506d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
2010-01-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+ [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 <mpsuzuki@hiroshima-u.ac.jp>
+
[cache] Deduplicate the code to get the top node by a hash.
There are several duplicated codes getting the top node
diff --git a/src/cache/ftcglyph.c b/src/cache/ftcglyph.c
index fb825d4..52a7933 100644
--- 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
diff --git a/src/cache/ftcglyph.h b/src/cache/ftcglyph.h
index 06b2031..3656743 100644
--- a/src/cache/ftcglyph.h
+++ b/src/cache/ftcglyph.h
@@ -187,7 +187,8 @@ FT_BEGIN_HEADER
/* already correctly set */
FT_LOCAL( FT_Bool )
FTC_GNode_Compare( FTC_GNode gnode,
- FTC_GQuery gquery );
+ FTC_GQuery gquery,
+ FTC_Cache cache );
#endif