mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
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:
committed by
Manish Singh
parent
193f158001
commit
b5ae75aa4a
@@ -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");
|
||||
|
||||
|
Reference in New Issue
Block a user