mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-10-31 16:32:18 +01:00 
			
		
		
		
	girparser: Make sizes in integer_aliases more obviously correct
We don't actually need to use the Meson-detected size macros here, because the result of `sizeof()` is an integer constant expression. No functional change. Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
		| @@ -449,16 +449,16 @@ typedef struct { | |||||||
| } IntegerAliasInfo; | } IntegerAliasInfo; | ||||||
|  |  | ||||||
| static IntegerAliasInfo integer_aliases[] = { | static IntegerAliasInfo integer_aliases[] = { | ||||||
|   { "gchar",    SIZEOF_CHAR,      1 }, |   { "gchar",    sizeof (gchar),   1 }, | ||||||
|   { "guchar",   SIZEOF_CHAR,      0 }, |   { "guchar",   sizeof (guchar),  0 }, | ||||||
|   { "gshort",   SIZEOF_SHORT,     1 }, |   { "gshort",   sizeof (gshort),  1 }, | ||||||
|   { "gushort",  SIZEOF_SHORT,     0 }, |   { "gushort",  sizeof (gushort), 0 }, | ||||||
|   { "gint",     SIZEOF_INT,       1 }, |   { "gint",     sizeof (gint),    1 }, | ||||||
|   { "guint",    SIZEOF_INT,       0 }, |   { "guint",    sizeof (guint),   0 }, | ||||||
|   { "glong",    SIZEOF_LONG,      1 }, |   { "glong",    sizeof (glong),   1 }, | ||||||
|   { "gulong",   SIZEOF_LONG,      0 }, |   { "gulong",   sizeof (gulong),  0 }, | ||||||
|   { "gssize",   GLIB_SIZEOF_SIZE_T,    1 }, |   { "gssize",   sizeof (gssize),  1 }, | ||||||
|   { "gsize",    GLIB_SIZEOF_SIZE_T,    0 }, |   { "gsize",    sizeof (gsize),   0 }, | ||||||
|   { "gintptr",  sizeof (gintptr),      1 }, |   { "gintptr",  sizeof (gintptr),      1 }, | ||||||
|   { "guintptr", sizeof (guintptr),     0 }, |   { "guintptr", sizeof (guintptr),     0 }, | ||||||
| }; | }; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user