diff options
author | Colin Walters <walters@verbum.org> | 2010-10-26 10:03:29 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-10-26 10:04:46 -0400 |
commit | e4eef4fe4a35161907ab353515ec7aa6a31c282b (patch) | |
tree | a64049675be414447d507bac959da621ea730a57 /girepository/girnode.c | |
parent | b18c248d2fcb7accc96269341e87eca5cb3ad864 (diff) | |
download | gobject-introspection-e4eef4fe4a35161907ab353515ec7aa6a31c282b.tar.gz |
girepository: Use G_TYPE_TAG_IS_BASIC consistently
This is a preparatory patch for adding a new basic tag.
Diffstat (limited to 'girepository/girnode.c')
-rw-r--r-- | girepository/girnode.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/girepository/girnode.c b/girepository/girnode.c index 2f6a2709..46fd3c7d 100644 --- a/girepository/girnode.c +++ b/girepository/girnode.c @@ -636,7 +636,7 @@ g_ir_node_get_full_size_internal (GIrNode *parent, { GIrNodeType *type = (GIrNodeType *)node; size = sizeof (SimpleTypeBlob); - if (type->tag >= GI_TYPE_TAG_ARRAY) + if (!G_TYPE_TAG_IS_BASIC(type->tag)) { g_debug ("node %p type tag '%s'", node, g_type_tag_to_string (type->tag)); @@ -1220,7 +1220,7 @@ serialize_type (GIrTypelibBuild *build, { gint i; - if (node->tag < GI_TYPE_TAG_ARRAY) + if (G_TYPE_TAG_IS_BASIC(node->tag)) { g_string_append_printf (str, "%s%s", g_type_tag_to_string (node->tag), node->is_pointer ? "*" : ""); @@ -1415,9 +1415,7 @@ g_ir_node_build_typelib (GIrNode *node, *offset += sizeof (SimpleTypeBlob); - if (type->tag < GI_TYPE_TAG_ARRAY || - type->tag == GI_TYPE_TAG_UTF8 || - type->tag == GI_TYPE_TAG_FILENAME) + if (G_TYPE_TAG_IS_BASIC(type->tag)) { blob->flags.reserved = 0; blob->flags.reserved2 = 0; |