gobject-introspection r611 - trunk/girepository



Author: walters
Date: Tue Sep 16 19:44:30 2008
New Revision: 611
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=611&view=rev

Log:
Don't add spurious * if type is pointer; the is_pointer flag is enough


Modified:
   trunk/girepository/girnode.c

Modified: trunk/girepository/girnode.c
==============================================================================
--- trunk/girepository/girnode.c	(original)
+++ trunk/girepository/girnode.c	Tue Sep 16 19:44:30 2008
@@ -1086,8 +1086,7 @@
   
   if (node->tag < GI_TYPE_TAG_ARRAY)
     {
-      g_string_append_printf (str, "%s%s", 
-			      basic[node->tag], node->is_pointer ? "*" : "");
+      g_string_append_printf (str, "%s", basic[node->tag]);
     }
   else if (node->tag == GI_TYPE_TAG_ARRAY)
     {
@@ -1117,7 +1116,7 @@
 	  name = node->interface;
 	}
 
-      g_string_append_printf (str, "%s%s", name, node->is_pointer ? "*" : "");
+      g_string_append_printf (str, "%s", name);
     }
   else if (node->tag == GI_TYPE_TAG_GLIST)
     {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]