• R/O
  • HTTP
  • SSH
  • HTTPS

ccunit: Commit

A C Unit Test Library for C language.


Commit MetaInfo

Revisión2fca1e92a12f9f06d1944700cb387cc9ad15f409 (tree)
Tiempo2013-07-06 17:11:35
Autortsntsumi <tsntsumi@user...>
Commitertsntsumi

Log Message

Changed the type of snprintf's format string.

It will be able to change to customize behavior in user program.

Cambiar Resumen

Diferencia incremental

--- a/src/ccunit/CCUnitAssert.c
+++ b/src/ccunit/CCUnitAssert.c
@@ -60,23 +60,23 @@ void ccunit_assert (const char* file, unsigned int line,
6060 * snprintf format string for each types.
6161 * @{
6262 */
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";
7575 #if CCUNIT_HAVE_QUAD_T
76-const char _ccunit_assert_format_quad_t[] = "%lld";
76+char* _ccunit_assert_format_quad_t = "%lld";
7777 #endif
7878 #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";
8080 #endif
8181 /** @} */
8282
Show on old repository browser