summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParth Wazurkar <parthwazurkar@gmail.com>2018-08-02 00:47:30 +0530
committerParth Wazurkar <parthwazurkar@gmail.com>2018-08-02 00:47:30 +0530
commit1b16b2267ea93e5c040fec04bacc2e1e5bd78180 (patch)
treeb85eb032784016be59839a809732e51df619c1bc
parent7236cde177f9c5586e9fd3089b3bc5dc47465d9d (diff)
downloadfreetype2-1b16b2267ea93e5c040fec04bacc2e1e5bd78180.tar.gz
Fix `printf' statements.
-rw-r--r--src/cache/ftcmanag.c5
-rw-r--r--src/cache/ftcmru.c26
-rw-r--r--src/cache/ftcmru.h10
3 files changed, 18 insertions, 23 deletions
diff --git a/src/cache/ftcmanag.c b/src/cache/ftcmanag.c
index e89b38642..3cd375164 100644
--- a/src/cache/ftcmanag.c
+++ b/src/cache/ftcmanag.c
@@ -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;
diff --git a/src/cache/ftcmru.c b/src/cache/ftcmru.c
index 170708dc3..c704f4edc 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;
@@ -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;
diff --git a/src/cache/ftcmru.h b/src/cache/ftcmru.h
index 493cd64f8..936c66ee2 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); \
} \
- 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