Added G_GSIZE_FORMAT and friends.

Thu Nov 20 15:09:40 2003  Manish Singh  <yosh@gimp.org>

        * configure.in: Added G_GSIZE_FORMAT and friends.

        * tests/printf-test.c
        * tests/testglib.c
        * tests/type-test.c: Add tests for the above.
This commit is contained in:
Manish Singh
2003-11-20 23:12:05 +00:00
committed by Manish Singh
parent 193f158001
commit b5ae75aa4a
10 changed files with 94 additions and 7 deletions

View File

@@ -425,14 +425,14 @@ main (int argc,
g_print ("tmp-dir: %s\n", g_get_tmp_dir ());
/* type sizes */
g_print ("checking size of gint8: %d", (int)sizeof (gint8));
g_print ("checking size of gint8: %" G_GSIZE_FORMAT, sizeof (gint8));
TEST (NULL, sizeof (gint8) == 1);
g_print ("\nchecking size of gint16: %d", (int)sizeof (gint16));
g_print ("\nchecking size of gint16: %" G_GSIZE_FORMAT, sizeof (gint16));
TEST (NULL, sizeof (gint16) == 2);
g_print ("\nchecking size of gint32: %d", (int)sizeof (gint32));
g_print ("\nchecking size of gint32: %" G_GSIZE_FORMAT, sizeof (gint32));
TEST (NULL, sizeof (gint32) == 4);
g_print ("\nchecking size of gsize: %d", (int)sizeof (gsize));
g_print ("\nchecking size of gint64: %d", (int)sizeof (gint64));
g_print ("\nchecking size of gsize: %" G_GSIZE_FORMAT, sizeof (gsize));
g_print ("\nchecking size of gint64: %" G_GSIZE_FORMAT, sizeof (gint64));
TEST (NULL, sizeof (gint64) == 8);
g_print ("\n");