changeset 425:09a66063b25d

Fix issue of missed function for unittest. If we make for unittest, it will be failed for missed functions. Since we change name of functions to avoid type conflict, ld can not find the functions with original names. So, we make dummy functions to resolve it. We had better decouple them to avoid this problem.
author Thinker K.F. Li <thinker@branda.to>
date Tue, 28 Jul 2009 15:11:42 +0800
parents 585baa462778
children aa320386072c
files src/shape_stext.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/shape_stext.c	Tue Jul 28 15:11:42 2009 +0800
+++ b/src/shape_stext.c	Tue Jul 28 15:11:42 2009 +0800
@@ -6,6 +6,13 @@
 #include "mb_tools.h"
 
 #ifdef UNITTEST
+
+#define UT_FAKE(r, x, param)			\
+    r x param {}
+
+UT_FAKE(void, sh_stext_transform, (shape_t *shape));
+UT_FAKE(void, sh_stext_draw, (shape_t *shape, cairo_t *cr));
+
 typedef struct _ut_area {
     co_aix x, y;
     co_aix w, h;