# HG changeset patch # User Thinker K.F. Li # Date 1248765102 -28800 # Node ID 09a66063b25debc26cbf44d7a1c2adb53fc02116 # Parent 585baa462778fa920426731801e94722d947cda6 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. diff -r 585baa462778 -r 09a66063b25d src/shape_stext.c --- 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;