Ditch longs and long longs in favor of stdint.h types, which has cascading

effects throughout, including use of inttypes.h/PRI[ud]64 because printf() is
still stuck in a long world, conversion of %lu to %zu for printing values of
type size_t, and changing/renaming the g_check_cmp* family of functions.
This commit is contained in:
Peter Johnson 2013-11-15 00:12:57 -05:00
parent f0a24ee4d0
commit c8fc061ea6
15 changed files with 64 additions and 52 deletions

View file

@ -3,12 +3,12 @@
#include "hammer.h"
static void test_tt_user(void) {
g_check_cmpint(TT_USER, >, TT_NONE);
g_check_cmpint(TT_USER, >, TT_BYTES);
g_check_cmpint(TT_USER, >, TT_SINT);
g_check_cmpint(TT_USER, >, TT_UINT);
g_check_cmpint(TT_USER, >, TT_SEQUENCE);
g_check_cmpint(TT_USER, >, TT_ERR);
g_check_cmp_int32(TT_USER, >, TT_NONE);
g_check_cmp_int32(TT_USER, >, TT_BYTES);
g_check_cmp_int32(TT_USER, >, TT_SINT);
g_check_cmp_int32(TT_USER, >, TT_UINT);
g_check_cmp_int32(TT_USER, >, TT_SEQUENCE);
g_check_cmp_int32(TT_USER, >, TT_ERR);
}
void register_misc_tests(void) {