{
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));
{
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 ? "*" : "");
*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;
if (simple->flags.reserved == 0 &&
simple->flags.reserved2 == 0)
{
- if (simple->flags.tag >= GI_TYPE_TAG_ARRAY)
+ if (!G_TYPE_TAG_IS_BASIC(simple->flags.tag))
{
g_set_error (error,
G_TYPELIB_ERROR,