summaryrefslogtreecommitdiff
path: root/src/cache/ftccache.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cache/ftccache.h')
-rw-r--r--src/cache/ftccache.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/cache/ftccache.h b/src/cache/ftccache.h
index d696621e7..323892a02 100644
--- a/src/cache/ftccache.h
+++ b/src/cache/ftccache.h
@@ -210,6 +210,10 @@ FT_BEGIN_HEADER
FTC_Cache_RemoveFaceID( FTC_Cache cache,
FTC_FaceID face_id );
+ FT_LOCAL( FT_Size )
+ ftc_get_list_length( FTC_Cache cache,
+ FT_PtrDist hash );
+
#ifdef FTC_INLINE
@@ -222,6 +226,11 @@ FT_BEGIN_HEADER
FT_Bool _list_changed = FALSE; \
\
\
+ FT_TRACE7(("FTC_CACHE_LOOKUP_CMP() lookup object for ")); \
+ FT_TRACE7(("hash=0x%08x in cache ", _hash )); \
+ FT_TRACE7(("mask=0x%08x p=0x%08x ", _cache->mask, _cache->p )); \
+ FT_TRACE7(("list length=%d\n", ftc_get_list_length( _cache, _hash ) )); \
+ \
error = FTC_Err_Ok; \
node = NULL; \
\
@@ -245,6 +254,8 @@ FT_BEGIN_HEADER
\
if ( _list_changed ) \
{ \
+ FT_TRACE7(("(_bucket,_pnode)=(%p,%p)", _bucket, _pnode)); \
+ \
/* Update _bucket by possibly modified linked list */ \
_bucket = _pnode = FTC_NODE__TOP_FOR_HASH( _cache, _hash ); \
\
@@ -259,6 +270,8 @@ FT_BEGIN_HEADER
else \
_pnode = &((*_pnode)->link); \
} \
+ \
+ FT_TRACE7(("-> (%p,%p)\n", _bucket, _pnode)); \
} \
\
/* Reorder the list to move the found node to the `top' */ \