[HarfBuzz] harfbuzz: Branch 'master'
Behdad Esfahbod
behdad at kemper.freedesktop.org
Sat Oct 20 02:47:44 UTC 2018
test/api/test-map.c | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
New commits:
commit 9e288d29d86ef27acacd397b1abf04d512f1e61e
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Fri Oct 19 19:47:27 2018 -0700
[test-map] Cosmetic
diff --git a/test/api/test-map.c b/test/api/test-map.c
index a89feaa4..cc797fba 100644
--- a/test/api/test-map.c
+++ b/test/api/test-map.c
@@ -61,11 +61,8 @@ test_map_basic (void)
hb_map_destroy (m);
}
-#define true 1
-#define false 0
-
static void
-test_map_userdata ()
+test_map_userdata (void)
{
hb_map_t *m = hb_map_create ();
@@ -77,16 +74,16 @@ test_map_userdata ()
int *data2 = (int *) malloc (sizeof (int));
*data2 = 6343;
- hb_map_set_user_data (m, &key[0], data2, free, false);
+ hb_map_set_user_data (m, &key[0], data2, free, FALSE);
g_assert_cmpint (*((int *) hb_map_get_user_data (m, &key[0])), ==, 3123);
- hb_map_set_user_data (m, &key[0], data2, free, true);
+ hb_map_set_user_data (m, &key[0], data2, free, TRUE);
g_assert_cmpint (*((int *) hb_map_get_user_data (m, &key[0])), ==, 6343);
hb_map_destroy (m);
}
static void
-test_map_refcount ()
+test_map_refcount (void)
{
hb_map_t *m = hb_map_create ();
hb_map_set (m, 213, 223);
More information about the HarfBuzz
mailing list