* src/cache/ftccache.c (FTC_Cache_Clear), src/cache/ftcmanag.c (FTC_Manager_Check): Remove FT_EXPORT_DEF tag. * src/base/ftcalc.c (FT_Add64): Remove FT_EXPORT_DEF tag. (FT_Div64by32, FT_Sqrt32): Commented out. Unused. * include/freetype/internal/ftcalc.h (SQRT_32): Removed. Unused. (FT_Sqrt32): Commented out. Unused. * include/freetype/cache/ftccache.h: s/ftc_node_destroy/FTC_Node_Destroy/. * src/cache/ftccback.h (ftc_node_destroy): New declaration. * src/cache/ftccache.c (ftc_node_destroy): Use FT_LOCAL_DEF tag. (FTC_Node_Destroy): New exported wrapper function for ftc_node_destroy. * src/cache/ftcmanag.c: Include ftccback.c.
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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207
diff --git a/ChangeLog b/ChangeLog
index 6cd782b..8aa790d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,25 @@
+2005-11-11 Werner Lemberg <wl@gnu.org>
+
+ * src/cache/ftccache.c (FTC_Cache_Clear), src/cache/ftcmanag.c
+ (FTC_Manager_Check): Remove FT_EXPORT_DEF tag.
+
+ * src/base/ftcalc.c (FT_Add64): Remove FT_EXPORT_DEF tag.
+ (FT_Div64by32, FT_Sqrt32): Commented out. Unused.
+
+ * include/freetype/internal/ftcalc.h (SQRT_32): Removed. Unused.
+ (FT_Sqrt32): Commented out. Unused.
+
+ * include/freetype/cache/ftccache.h:
+ s/ftc_node_destroy/FTC_Node_Destroy/.
+
+ * src/cache/ftccback.h (ftc_node_destroy): New declaration.
+
+ * src/cache/ftccache.c (ftc_node_destroy): Use FT_LOCAL_DEF tag.
+ (FTC_Node_Destroy): New exported wrapper function for
+ ftc_node_destroy.
+
+ * src/cache/ftcmanag.c: Include ftccback.c.
+
2005-11-10 Werner Lemberg <wl@gnu.org>
* src/autofit/afangles.c, src/autofit/aftypes.h (af_angle_diff):
diff --git a/include/freetype/cache/ftccache.h b/include/freetype/cache/ftccache.h
index f2e1028..da2e992 100644
--- a/include/freetype/cache/ftccache.h
+++ b/include/freetype/cache/ftccache.h
@@ -79,7 +79,7 @@ FT_BEGIN_HEADER
/* reserved for manager's use */
FT_EXPORT( void )
- ftc_node_destroy( FTC_Node node,
+ FTC_Node_Destroy( FTC_Node node,
FTC_Manager manager );
diff --git a/include/freetype/internal/ftcalc.h b/include/freetype/internal/ftcalc.h
index 0df502c..c89baa3 100644
--- a/include/freetype/internal/ftcalc.h
+++ b/include/freetype/internal/ftcalc.h
@@ -4,7 +4,7 @@
/* */
/* Arithmetic computations (specification). */
/* */
-/* Copyright 1996-2001, 2002, 2003, 2004 by */
+/* Copyright 1996-2001, 2002, 2003, 2004,2005 by */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
/* This file is part of the FreeType project, and may only be used, */
@@ -48,8 +48,7 @@ FT_BEGIN_HEADER
FT_SqrtFixed( FT_Int32 x );
-#define SQRT_32( x ) FT_Sqrt32( x )
-
+#if 0
/*************************************************************************/
/* */
@@ -69,6 +68,8 @@ FT_BEGIN_HEADER
FT_EXPORT( FT_Int32 )
FT_Sqrt32( FT_Int32 x );
+#endif /* 0 */
+
/*************************************************************************/
/* */
diff --git a/src/base/ftcalc.c b/src/base/ftcalc.c
index 8a9aeb6..4633945 100644
--- a/src/base/ftcalc.c
+++ b/src/base/ftcalc.c
@@ -99,6 +99,8 @@
}
+#if 0
+
/* documentation is in ftcalc.h */
FT_EXPORT_DEF( FT_Int32 )
@@ -128,6 +130,8 @@
return root;
}
+#endif /* 0 */
+
#ifdef FT_LONG64
@@ -293,9 +297,7 @@
}
- /* documentation is in ftcalc.h */
-
- FT_EXPORT_DEF( void )
+ static void
FT_Add64( FT_Int64* x,
FT_Int64* y,
FT_Int64 *z )
@@ -526,10 +528,10 @@
}
- /* documentation is in ftcalc.h */
+#if 0
/* apparently, the second version of this code is not compiled correctly */
- /* on Mac machines with the MPW C compiler.. tsss, tsss, tss... */
+ /* on Mac machines with the MPW C compiler.. tsk, tsk, tsk... */
#if 1
@@ -621,6 +623,8 @@
#endif /* 0 */
+#endif /* 0 */
+
#endif /* FT_LONG64 */
diff --git a/src/cache/ftccache.c b/src/cache/ftccache.c
index ad03680..3470794 100644
--- a/src/cache/ftccache.c
+++ b/src/cache/ftccache.c
@@ -245,8 +245,16 @@
}
- /* remove a node from the cache manager */
FT_EXPORT_DEF( void )
+ FTC_Node_Destroy( FTC_Node node,
+ FTC_Manager manager )
+ {
+ ftc_node_destroy( node, manager );
+ }
+
+
+ /* remove a node from the cache manager */
+ FT_LOCAL_DEF( void )
ftc_node_destroy( FTC_Node node,
FTC_Manager manager )
{
@@ -322,7 +330,7 @@
}
- FT_EXPORT_DEF( void )
+ static void
FTC_Cache_Clear( FTC_Cache cache )
{
if ( cache )
diff --git a/src/cache/ftccback.h b/src/cache/ftccback.h
index 6b47e09..5c4741f 100644
--- a/src/cache/ftccback.h
+++ b/src/cache/ftccback.h
@@ -4,7 +4,7 @@
/* */
/* Callback functions of the caching sub-system (specification only). */
/* */
-/* Copyright 2004 by */
+/* Copyright 2004, 2005 by */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
/* This file is part of the FreeType project, and may only be used, */
@@ -80,6 +80,11 @@
ftc_cache_done( FTC_Cache cache );
+ FT_LOCAL( void )
+ ftc_node_destroy( FTC_Node node,
+ FTC_Manager manager );
+
+
#endif /* __FTCCBACK_H__ */
/* END */
diff --git a/src/cache/ftcmanag.c b/src/cache/ftcmanag.c
index 337bea5..ccb9eda 100644
--- a/src/cache/ftcmanag.c
+++ b/src/cache/ftcmanag.c
@@ -23,6 +23,7 @@
#include FT_INTERNAL_DEBUG_H
#include FT_SIZES_H
+#include "ftccback.h"
#include "ftcerror.h"
@@ -453,7 +454,7 @@
#ifdef FT_DEBUG_ERROR
- FT_EXPORT_DEF( void )
+ static void
FTC_Manager_Check( FTC_Manager manager )
{
FTC_Node node, first;