From 2bea8dbd4979cc8b56548528367ac839987534d0 Mon Sep 17 00:00:00 2001 From: Parth Wazurkar Date: Sun, 24 Jun 2018 19:27:55 +0530 Subject: Minor changes for testing. --- include/freetype/config/ftoption.h | 4 ++-- src/cache/ftcmanag.c | 5 +++-- src/cache/ftcmru.c | 4 ++-- src/cache/ftcmru.h | 8 ++++---- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/include/freetype/config/ftoption.h b/include/freetype/config/ftoption.h index 6e5a950b2..a5d883f5f 100644 --- a/include/freetype/config/ftoption.h +++ b/include/freetype/config/ftoption.h @@ -413,8 +413,8 @@ FT_BEGIN_HEADER * Do not #undef these macros here since the build system might define * them for certain configurations only. */ - #define FT_DEBUG_LEVEL_ERROR - #define FT_DEBUG_LEVEL_TRACE +/* #define FT_DEBUG_LEVEL_ERROR */ +/* #define FT_DEBUG_LEVEL_TRACE */ /************************************************************************** diff --git a/src/cache/ftcmanag.c b/src/cache/ftcmanag.c index 9be177321..d4a724242 100644 --- a/src/cache/ftcmanag.c +++ b/src/cache/ftcmanag.c @@ -321,14 +321,15 @@ /* we break encapsulation for the sake of speed */ #ifdef FTC_INLINE - +printf("Hi I am here in FTC_Manager_LookupFace 0\n"); FTC_MRULIST_LOOKUP_CMP( &manager->faces, face_id, ftc_face_node_compare, mrunode, error ); #else +printf("Hi I am here in FTC_Manager_LookupFace 1\n"); error = FTC_MruList_Lookup( &manager->faces, face_id, &mrunode ); #endif - +printf("Hi I am here in FTC_Manager_LookupFace 2\n"); if ( !error ) *aface = FTC_FACE_NODE( mrunode )->face; diff --git a/src/cache/ftcmru.c b/src/cache/ftcmru.c index c704f4edc..a7d9d8da6 100644 --- a/src/cache/ftcmru.c +++ b/src/cache/ftcmru.c @@ -77,12 +77,12 @@ FT_ASSERT( first ); - +printf("Hi I am here in FTC_MruNode_Up 0\n"); if ( first != node ) { FTC_MruNode prev, next, last; - +printf("Hi I am here in FTC_MruNode_Up 1\n"); #ifdef FT_DEBUG_ERROR { FTC_MruNode cnode = first; diff --git a/src/cache/ftcmru.h b/src/cache/ftcmru.h index 936c66ee2..436250c95 100644 --- a/src/cache/ftcmru.h +++ b/src/cache/ftcmru.h @@ -166,7 +166,7 @@ FT_BEGIN_HEADER FTC_MruNode* _pfirst = &(list)->nodes; \ FTC_MruNode_CompareFunc _compare = (FTC_MruNode_CompareFunc)(compare); \ FTC_MruNode _first, _node; \ - \ + printf("Hi I am here in FTC_MRULIST_LOOKUP_CMP 0\n"); \ \ error = FT_Err_Ok; \ _first = *(_pfirst); \ @@ -181,16 +181,16 @@ FT_BEGIN_HEADER { \ if ( _node != _first ) \ FTC_MruNode_Up( _pfirst, _node ); \ - \ + printf("Hi I am here in FTC_MRULIST_LOOKUP_CMP 1\n"); \ node = _node; \ goto MruOk_; \ } \ _node = _node->next; \ - \ + printf("Hi I am here in FTC_MRULIST_LOOKUP_CMP 2\n"); \ } while ( _node != _first); \ } \ \ - error = FTC_MruList_New( (list), (key), (FTC_MruNode*)(void*)&(node) ); \ + error = FTC_MruList_New( (list), (key), (FTC_MruNode*)(void*)&(node) ); printf("Hi I am here in FTC_MRULIST_LOOKUP_CMP 3\n");\ MruOk_: \ ; \ FT_END_STMNT -- cgit v1.2.1