Fix `printf' statements.

This commit is contained in:
Parth Wazurkar 2018-08-02 00:47:30 +05:30
parent 7236cde177
commit 1b16b2267e
3 changed files with 18 additions and 23 deletions

View File

@ -40,7 +40,6 @@
FT_Size size = NULL;
FT_Error error;
printf("Hi I am here in ftc_scaler_lookup_size 1\n");
error = FTC_Manager_LookupFace( manager, scaler->face_id, &face );
if ( error )
goto Exit;
@ -122,7 +121,6 @@ printf("Hi I am here in ftc_scaler_lookup_size 1\n");
FTC_SizeNode node = (FTC_SizeNode)ftcnode;
FTC_Scaler scaler = (FTC_Scaler)ftcscaler;
FTC_Manager manager = (FTC_Manager)ftcmanager;
printf("Hi I am here in ftc_size_node_init 1\n");
node->scaler = scaler[0];
@ -321,15 +319,12 @@ printf("Hi I am here in ftc_size_node_init 1\n");
/* 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;

26
src/cache/ftcmru.c vendored
View File

@ -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;
@ -240,39 +240,39 @@ printf("Hi I am here in FTC_MruNode_Up 1\n");
FT_Error error;
FTC_MruNode node = NULL;
FT_Memory memory = list->memory;
printf("Hi I am here in FTC_MruList_New 0\n");
if ( list->num_nodes >= list->max_nodes && list->max_nodes > 0 )
{
node = list->nodes->prev;
FT_ASSERT( node );
printf("Hi I am here in FTC_MruList_New 1\n");
if ( list->clazz.node_reset )
{printf("Hi I am here in FTC_MruList_New 2\n");
{
FTC_MruNode_Up( &list->nodes, node );
printf("Hi I am here in FTC_MruList_New 3\n");
error = list->clazz.node_reset( node, key, list->data );printf("Hi I am here in FTC_MruList_New 4\n");
error = list->clazz.node_reset( node, key, list->data );
if ( !error )
goto Exit;
}
printf("Hi I am here in FTC_MruList_New 5\n");
FTC_MruNode_Remove( &list->nodes, node );
list->num_nodes--;
printf("Hi I am here in FTC_MruList_New 6\n");
if ( list->clazz.node_done )
list->clazz.node_done( node, list->data );
}
else if ( FT_ALLOC( node, list->clazz.node_size ) )
goto Exit;
printf("Hi I am here in FTC_MruList_New 7\n");
error = list->clazz.node_init( node, key, list->data );printf("Hi I am here in FTC_MruList_New 7.1\n");
error = list->clazz.node_init( node, key, list->data );
if ( error )
goto Fail;
printf("Hi I am here in FTC_MruList_New 8\n");
FTC_MruNode_Prepend( &list->nodes, node );
list->num_nodes++;
printf("Hi I am here in FTC_MruList_New 9\n");
Exit:
*anode = node;
return error;

10
src/cache/ftcmru.h vendored
View File

@ -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); \
} \
printf("Hi I am here in FTC_MRULIST_LOOKUP_CMP 3\n"); \
error = FTC_MruList_New( (list), (key), (FTC_MruNode*)(void*)&(node) ); printf("Hi I am here in FTC_MRULIST_LOOKUP_CMP 4\n");\
\
error = FTC_MruList_New( (list), (key), (FTC_MruNode*)(void*)&(node) ); \
MruOk_: \
; \
FT_END_STMNT