From ddb93b98b955bd5d3080835047abf7a641abf440 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 2 Oct 2008 13:25:46 +0000 Subject: Bug 554632: Create type tag for GType svn path=/trunk/; revision=641 --- tools/generate.c | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) (limited to 'tools') diff --git a/tools/generate.c b/tools/generate.c index dca2cdac..5f10d27c 100644 --- a/tools/generate.c +++ b/tools/generate.c @@ -64,30 +64,6 @@ write_type_info (const gchar *namespace, GITypeInfo *type; gboolean is_pointer; - const gchar* basic[] = { - "none", - "boolean", - "int8", - "uint8", - "int16", - "uint16", - "int32", - "uint32", - "int64", - "uint64", - "int", - "uint", - "long", - "ulong", - "ssize", - "size", - "float", - "double", - "time_t", - "utf8", - "filename" - }; - check_unresolved ((GIBaseInfo*)info); tag = g_type_info_get_tag (info); @@ -100,8 +76,8 @@ write_type_info (const gchar *namespace, else g_fprintf (file, "%s", "none"); } - else if (tag < GI_TYPE_TAG_ARRAY) - g_fprintf (file, "%s", basic[tag]); + else if (G_TYPE_TAG_IS_BASIC (tag)) + g_fprintf (file, "%s", g_type_tag_to_string (tag)); else if (tag == GI_TYPE_TAG_ARRAY) { gint length; -- cgit v1.2.1