A C Unit Test Library for C language.
Revisión | 2fca1e92a12f9f06d1944700cb387cc9ad15f409 (tree) |
---|---|
Tiempo | 2013-07-06 17:11:35 |
Autor | tsntsumi <tsntsumi@user...> |
Commiter | tsntsumi |
Changed the type of snprintf's format string.
It will be able to change to customize behavior in user program.
@@ -60,23 +60,23 @@ void ccunit_assert (const char* file, unsigned int line, | ||
60 | 60 | * snprintf format string for each types. |
61 | 61 | * @{ |
62 | 62 | */ |
63 | -const char _ccunit_assert_format_char[] = "%c"; | |
64 | -const char _ccunit_assert_format_u_char[] = "%c"; | |
65 | -const char _ccunit_assert_format_int[] = "%d"; | |
66 | -const char _ccunit_assert_format_u_int[] = "%u"; | |
67 | -const char _ccunit_assert_format_short[] = "%hd"; | |
68 | -const char _ccunit_assert_format_u_short[] = "%hu"; | |
69 | -const char _ccunit_assert_format_long[] = "%ld"; | |
70 | -const char _ccunit_assert_format_u_long[] = "%lu"; | |
71 | -const char _ccunit_assert_format_float[] = "%f"; | |
72 | -const char _ccunit_assert_format_double[] = "%f"; | |
73 | -const char _ccunit_assert_format__ccunit_str_t[] = "%s"; | |
74 | -const char _ccunit_assert_format__ccunit_ptr_t[] = "%p"; | |
63 | +char* _ccunit_assert_format_char = "%c"; | |
64 | +char* _ccunit_assert_format_u_char = "%c"; | |
65 | +char* _ccunit_assert_format_int = "%d"; | |
66 | +char* _ccunit_assert_format_u_int = "%u"; | |
67 | +char* _ccunit_assert_format_short = "%hd"; | |
68 | +char* _ccunit_assert_format_u_short = "%hu"; | |
69 | +char* _ccunit_assert_format_long = "%ld"; | |
70 | +char* _ccunit_assert_format_u_long = "%lu"; | |
71 | +char* _ccunit_assert_format_float = "%f"; | |
72 | +char* _ccunit_assert_format_double = "%f"; | |
73 | +char* _ccunit_assert_format__ccunit_str_t = "%s"; | |
74 | +char* _ccunit_assert_format__ccunit_ptr_t = "%p"; | |
75 | 75 | #if CCUNIT_HAVE_QUAD_T |
76 | -const char _ccunit_assert_format_quad_t[] = "%lld"; | |
76 | +char* _ccunit_assert_format_quad_t = "%lld"; | |
77 | 77 | #endif |
78 | 78 | #if CCUNIT_HAVE_U_QUAD_T |
79 | -const char _ccunit_assert_format_u_quad_t[] = "%llu"; | |
79 | +char* _ccunit_assert_format_u_quad_t = "%llu"; | |
80 | 80 | #endif |
81 | 81 | /** @} */ |
82 | 82 |