gobject-introspection r465 - in trunk: . girepository
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r465 - in trunk: . girepository
- Date: Fri, 22 Aug 2008 22:15:29 +0000 (UTC)
Author: walters
Date: Fri Aug 22 22:15:28 2008
New Revision: 465
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=465&view=rev
Log:
2008-08-22 Colin Walters <walters verbum org>
* girepository/girnode.c: Don't hardcode integers,
use GITypeTag.
Modified:
trunk/ChangeLog
trunk/girepository/girnode.c
Modified: trunk/girepository/girnode.c
==============================================================================
--- trunk/girepository/girnode.c (original)
+++ trunk/girepository/girnode.c Fri Aug 22 22:15:28 2008
@@ -1068,12 +1068,12 @@
"any"
};
- if (node->tag < 20)
+ if (node->tag < GI_TYPE_TAG_ARRAY)
{
g_string_append_printf (str, "%s%s",
basic[node->tag], node->is_pointer ? "*" : "");
}
- else if (node->tag == 20)
+ else if (node->tag == GI_TYPE_TAG_ARRAY)
{
serialize_type (module, modules, node->parameter_type1, str);
g_string_append (str, "[");
@@ -1087,7 +1087,7 @@
g_string_append (str, "]");
}
- else if (node->tag == 21)
+ else if (node->tag == GI_TYPE_TAG_INTERFACE)
{
GIrNode *iface;
gchar *name;
@@ -1103,7 +1103,7 @@
g_string_append_printf (str, "%s%s", name, node->is_pointer ? "*" : "");
}
- else if (node->tag == 22)
+ else if (node->tag == GI_TYPE_TAG_GLIST)
{
g_string_append (str, "GList");
if (node->parameter_type1)
@@ -1113,7 +1113,7 @@
g_string_append (str, ">");
}
}
- else if (node->tag == 23)
+ else if (node->tag == GI_TYPE_TAG_GSLIST)
{
g_string_append (str, "GSList");
if (node->parameter_type1)
@@ -1123,7 +1123,7 @@
g_string_append (str, ">");
}
}
- else if (node->tag == 24)
+ else if (node->tag == GI_TYPE_TAG_GHASH)
{
g_string_append (str, "GHashTable<");
if (node->parameter_type1)
@@ -1135,7 +1135,7 @@
g_string_append (str, ">");
}
}
- else if (node->tag == 25)
+ else if (node->tag == GI_TYPE_TAG_ERROR)
{
g_string_append (str, "GError");
if (node->errors)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]