Minor changes for testing.

This commit is contained in:
Parth Wazurkar 2018-06-24 19:27:55 +05:30
parent e69e7e492a
commit 2bea8dbd49
4 changed files with 11 additions and 10 deletions

View File

@ -413,8 +413,8 @@ FT_BEGIN_HEADER
* Do not #undef these macros here since the build system might define * Do not #undef these macros here since the build system might define
* them for certain configurations only. * them for certain configurations only.
*/ */
#define FT_DEBUG_LEVEL_ERROR /* #define FT_DEBUG_LEVEL_ERROR */
#define FT_DEBUG_LEVEL_TRACE /* #define FT_DEBUG_LEVEL_TRACE */
/************************************************************************** /**************************************************************************

View File

@ -321,14 +321,15 @@
/* we break encapsulation for the sake of speed */ /* we break encapsulation for the sake of speed */
#ifdef FTC_INLINE #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, FTC_MRULIST_LOOKUP_CMP( &manager->faces, face_id, ftc_face_node_compare,
mrunode, error ); mrunode, error );
#else #else
printf("Hi I am here in FTC_Manager_LookupFace 1\n");
error = FTC_MruList_Lookup( &manager->faces, face_id, &mrunode ); error = FTC_MruList_Lookup( &manager->faces, face_id, &mrunode );
#endif #endif
printf("Hi I am here in FTC_Manager_LookupFace 2\n");
if ( !error ) if ( !error )
*aface = FTC_FACE_NODE( mrunode )->face; *aface = FTC_FACE_NODE( mrunode )->face;

4
src/cache/ftcmru.c vendored
View File

@ -77,12 +77,12 @@
FT_ASSERT( first ); FT_ASSERT( first );
printf("Hi I am here in FTC_MruNode_Up 0\n");
if ( first != node ) if ( first != node )
{ {
FTC_MruNode prev, next, last; FTC_MruNode prev, next, last;
printf("Hi I am here in FTC_MruNode_Up 1\n");
#ifdef FT_DEBUG_ERROR #ifdef FT_DEBUG_ERROR
{ {
FTC_MruNode cnode = first; FTC_MruNode cnode = first;

8
src/cache/ftcmru.h vendored
View File

@ -166,7 +166,7 @@ FT_BEGIN_HEADER
FTC_MruNode* _pfirst = &(list)->nodes; \ FTC_MruNode* _pfirst = &(list)->nodes; \
FTC_MruNode_CompareFunc _compare = (FTC_MruNode_CompareFunc)(compare); \ FTC_MruNode_CompareFunc _compare = (FTC_MruNode_CompareFunc)(compare); \
FTC_MruNode _first, _node; \ FTC_MruNode _first, _node; \
\ printf("Hi I am here in FTC_MRULIST_LOOKUP_CMP 0\n"); \
\ \
error = FT_Err_Ok; \ error = FT_Err_Ok; \
_first = *(_pfirst); \ _first = *(_pfirst); \
@ -181,16 +181,16 @@ FT_BEGIN_HEADER
{ \ { \
if ( _node != _first ) \ if ( _node != _first ) \
FTC_MruNode_Up( _pfirst, _node ); \ FTC_MruNode_Up( _pfirst, _node ); \
\ printf("Hi I am here in FTC_MRULIST_LOOKUP_CMP 1\n"); \
node = _node; \ node = _node; \
goto MruOk_; \ goto MruOk_; \
} \ } \
_node = _node->next; \ _node = _node->next; \
\ printf("Hi I am here in FTC_MRULIST_LOOKUP_CMP 2\n"); \
} while ( _node != _first); \ } 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_: \ MruOk_: \
; \ ; \
FT_END_STMNT FT_END_STMNT