* 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.
This commit is contained in:
Werner Lemberg 2005-11-12 17:07:11 +00:00
parent cee37a3b0a
commit d829ff768b
7 changed files with 54 additions and 13 deletions

View File

@ -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> 2005-11-10 Werner Lemberg <wl@gnu.org>
* src/autofit/afangles.c, src/autofit/aftypes.h (af_angle_diff): * src/autofit/afangles.c, src/autofit/aftypes.h (af_angle_diff):

View File

@ -79,7 +79,7 @@ FT_BEGIN_HEADER
/* reserved for manager's use */ /* reserved for manager's use */
FT_EXPORT( void ) FT_EXPORT( void )
ftc_node_destroy( FTC_Node node, FTC_Node_Destroy( FTC_Node node,
FTC_Manager manager ); FTC_Manager manager );

View File

@ -4,7 +4,7 @@
/* */ /* */
/* Arithmetic computations (specification). */ /* 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. */ /* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */ /* */
/* This file is part of the FreeType project, and may only be used, */ /* 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 ); 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_EXPORT( FT_Int32 )
FT_Sqrt32( FT_Int32 x ); FT_Sqrt32( FT_Int32 x );
#endif /* 0 */
/*************************************************************************/ /*************************************************************************/
/* */ /* */

View File

@ -99,6 +99,8 @@
} }
#if 0
/* documentation is in ftcalc.h */ /* documentation is in ftcalc.h */
FT_EXPORT_DEF( FT_Int32 ) FT_EXPORT_DEF( FT_Int32 )
@ -128,6 +130,8 @@
return root; return root;
} }
#endif /* 0 */
#ifdef FT_LONG64 #ifdef FT_LONG64
@ -293,9 +297,7 @@
} }
/* documentation is in ftcalc.h */ static void
FT_EXPORT_DEF( void )
FT_Add64( FT_Int64* x, FT_Add64( FT_Int64* x,
FT_Int64* y, FT_Int64* y,
FT_Int64 *z ) 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 */ /* 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 #if 1
@ -621,6 +623,8 @@
#endif /* 0 */ #endif /* 0 */
#endif /* 0 */
#endif /* FT_LONG64 */ #endif /* FT_LONG64 */

12
src/cache/ftccache.c vendored
View File

@ -245,8 +245,16 @@
} }
/* remove a node from the cache manager */
FT_EXPORT_DEF( void ) 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_node_destroy( FTC_Node node,
FTC_Manager manager ) FTC_Manager manager )
{ {
@ -322,7 +330,7 @@
} }
FT_EXPORT_DEF( void ) static void
FTC_Cache_Clear( FTC_Cache cache ) FTC_Cache_Clear( FTC_Cache cache )
{ {
if ( cache ) if ( cache )

View File

@ -4,7 +4,7 @@
/* */ /* */
/* Callback functions of the caching sub-system (specification only). */ /* Callback functions of the caching sub-system (specification only). */
/* */ /* */
/* Copyright 2004 by */ /* Copyright 2004, 2005 by */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ /* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */ /* */
/* This file is part of the FreeType project, and may only be used, */ /* This file is part of the FreeType project, and may only be used, */
@ -80,6 +80,11 @@
ftc_cache_done( FTC_Cache cache ); ftc_cache_done( FTC_Cache cache );
FT_LOCAL( void )
ftc_node_destroy( FTC_Node node,
FTC_Manager manager );
#endif /* __FTCCBACK_H__ */ #endif /* __FTCCBACK_H__ */
/* END */ /* END */

View File

@ -23,6 +23,7 @@
#include FT_INTERNAL_DEBUG_H #include FT_INTERNAL_DEBUG_H
#include FT_SIZES_H #include FT_SIZES_H
#include "ftccback.h"
#include "ftcerror.h" #include "ftcerror.h"
@ -453,7 +454,7 @@
#ifdef FT_DEBUG_ERROR #ifdef FT_DEBUG_ERROR
FT_EXPORT_DEF( void ) static void
FTC_Manager_Check( FTC_Manager manager ) FTC_Manager_Check( FTC_Manager manager )
{ {
FTC_Node node, first; FTC_Node node, first;