mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-23 22:16:16 +01:00
Bug 554632: Create type tag for GType
svn path=/trunk/; revision=641
This commit is contained in:
parent
11a41321a3
commit
c0114d8811
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user