gobject-introspection r610 - trunk/tools
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r610 - trunk/tools
- Date: Tue, 16 Sep 2008 19:44:26 +0000 (UTC)
Author: walters
Date: Tue Sep 16 19:44:26 2008
New Revision: 610
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=610&view=rev
Log:
Print out "any" for VOID+pointer, not "none"
* tools/generate.c: Print out "any" for VOID+pointer,
not "none"
Modified:
trunk/tools/generate.c
Modified: trunk/tools/generate.c
==============================================================================
--- trunk/tools/generate.c (original)
+++ trunk/tools/generate.c Tue Sep 16 19:44:26 2008
@@ -52,6 +52,7 @@
gint tag;
gint i;
GITypeInfo *type;
+ gboolean is_pointer;
const gchar* basic[] = {
"none",
@@ -77,8 +78,14 @@
};
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]);
else if (tag == 20)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]