This commit is contained in:
Behdad Esfahbod 2011-05-02 19:52:32 -04:00
parent 4911062d5b
commit f74d6c81f1
1 changed files with 5 additions and 5 deletions

View File

@ -56,7 +56,7 @@ static void free_up (void *p)
data_t *data = (data_t *) p; data_t *data = (data_t *) p;
g_assert (data->value == MAGIC0 || data->value == MAGIC1); g_assert (data->value == MAGIC0 || data->value == MAGIC1);
g_assert (data->freed == FALSE); g_assert (!data->freed);
data->freed = TRUE; data->freed = TRUE;
} }
@ -68,8 +68,8 @@ simple_get_script (hb_unicode_funcs_t *ufuncs,
data_t *data = (data_t *) user_data; data_t *data = (data_t *) user_data;
g_assert (hb_unicode_funcs_get_parent (ufuncs) != NULL); g_assert (hb_unicode_funcs_get_parent (ufuncs) != NULL);
g_assert (data->value == MAGIC0); g_assert_cmphex (data->value, ==, MAGIC0);
g_assert (data->freed == FALSE); g_assert (!data->freed);
if ('a' <= codepoint && codepoint <= 'z') if ('a' <= codepoint && codepoint <= 'z')
return HB_SCRIPT_LATIN; return HB_SCRIPT_LATIN;
@ -85,8 +85,8 @@ a_is_for_arabic_get_script (hb_unicode_funcs_t *ufuncs,
data_t *data = (data_t *) user_data; data_t *data = (data_t *) user_data;
g_assert (hb_unicode_funcs_get_parent (ufuncs) != NULL); g_assert (hb_unicode_funcs_get_parent (ufuncs) != NULL);
g_assert (data->value == MAGIC1); g_assert_cmphex (data->value, ==, MAGIC1);
g_assert (data->freed == FALSE); g_assert (!data->freed);
if (codepoint == 'a') { if (codepoint == 'a') {
return HB_SCRIPT_ARABIC; return HB_SCRIPT_ARABIC;