mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 18:52:09 +01:00
Print out "any" for VOID+pointer, not "none"
* tools/generate.c: Print out "any" for VOID+pointer, not "none" svn path=/trunk/; revision=610
This commit is contained in:
parent
77683a327f
commit
95b9645166
@ -52,6 +52,7 @@ write_type_info (const gchar *namespace,
|
|||||||
gint tag;
|
gint tag;
|
||||||
gint i;
|
gint i;
|
||||||
GITypeInfo *type;
|
GITypeInfo *type;
|
||||||
|
gboolean is_pointer;
|
||||||
|
|
||||||
const gchar* basic[] = {
|
const gchar* basic[] = {
|
||||||
"none",
|
"none",
|
||||||
@ -77,8 +78,14 @@ write_type_info (const gchar *namespace,
|
|||||||
};
|
};
|
||||||
|
|
||||||
tag = g_type_info_get_tag (info);
|
tag = g_type_info_get_tag (info);
|
||||||
|
is_pointer = g_type_info_is_pointer (info);
|
||||||
|
|
||||||
if (tag < 20)
|
if (tag == GI_TYPE_TAG_VOID) {
|
||||||
|
if (is_pointer)
|
||||||
|
g_fprintf (file, "%s", "any");
|
||||||
|
else
|
||||||
|
g_fprintf (file, "%s", "none");
|
||||||
|
} else if (tag < 20)
|
||||||
g_fprintf (file, "%s", basic[tag]);
|
g_fprintf (file, "%s", basic[tag]);
|
||||||
else if (tag == 20)
|
else if (tag == 20)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user