summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParth Wazurkar <parthwazurkar@gmail.com>2018-06-24 19:27:55 +0530
committerParth Wazurkar <parthwazurkar@gmail.com>2018-07-03 01:57:10 +0530
commit2bea8dbd4979cc8b56548528367ac839987534d0 (patch)
tree4490c0a783093002d787eb00d19522a2393691c4
parente69e7e492a418920851ff6c381f0109f2f337c2e (diff)
downloadfreetype2-2bea8dbd4979cc8b56548528367ac839987534d0.tar.gz
Minor changes for testing.
-rw-r--r--include/freetype/config/ftoption.h4
-rw-r--r--src/cache/ftcmanag.c5
-rw-r--r--src/cache/ftcmru.c4
-rw-r--r--src/cache/ftcmru.h8
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