Mercurial > hg > th-libs
diff tests.c @ 395:bffd3caf2d2c
Rename TH_PRI{u,d,x}* macros to match with standard ISO C99 inttypes.h PRI*.
This breaks the API again. Hooray.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 03 Mar 2016 14:13:31 +0200 |
parents | ac10155d2b4a |
children | ec4c395aadb8 |
line wrap: on
line diff
--- a/tests.c Thu Mar 03 14:11:57 2016 +0200 +++ b/tests.c Thu Mar 03 14:13:31 2016 +0200 @@ -220,7 +220,7 @@ // Test basic *printf() functionality test_init(&ctx); - test_start(&ctx, "th_vsnprintf(%" TH_PRIu_SIZE_T ", \"%s\", %s)", len, fmt, msg); + test_start(&ctx, "th_vsnprintf(%" PRIu_SIZE_T ", \"%s\", %s)", len, fmt, msg); memset(buf1, SET_SENTINEL_BYTE, SET_BUF_SIZE_2); buf1[SET_BUF_SIZE_2-1] = 0; memset(buf2, SET_SENTINEL_BYTE, SET_BUF_SIZE_2); buf2[SET_BUF_SIZE_2-1] = 0; @@ -379,7 +379,7 @@ for (i1 = 0; i1 < NCOUNT(i_vals64); i1++) { - snprintf(buf, sizeof(buf), "%" TH_PRId64, i_vals64[i1]); + snprintf(buf, sizeof(buf), "%" PRId64, i_vals64[i1]); for (i4 = 0; i4 < NCOUNT(i_mods); i4++) for (i3 = 0; i3 < NCOUNT(i_types); i3++)