summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2022-02-13 14:35:53 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2022-02-13 14:35:53 +0000
commit0cd7f4f39714f3c01d666d165ae1f92cb5c78811 (patch)
treeed6dd24248a01d7fa090672592421c62889ab5de
parent1eea2ea3f2b086bdb028b232f98cfe3862b2b1f4 (diff)
downloadgobject-introspection-0cd7f4f39714f3c01d666d165ae1f92cb5c78811.tar.gz
Use GI_TYPE_TAG_IS_BASIC
Now that we have it.
-rw-r--r--girepository/girnode.c6
-rw-r--r--girepository/girwriter.c2
-rw-r--r--girepository/gitypelib.c2
-rw-r--r--girepository/gitypes.h2
4 files changed, 6 insertions, 6 deletions
diff --git a/girepository/girnode.c b/girepository/girnode.c
index 4db679d8..34b7dea8 100644
--- a/girepository/girnode.c
+++ b/girepository/girnode.c
@@ -632,7 +632,7 @@ _g_ir_node_get_full_size_internal (GIrNode *parent,
{
GIrNodeType *type = (GIrNodeType *)node;
size = sizeof (SimpleTypeBlob);
- if (!G_TYPE_TAG_IS_BASIC(type->tag))
+ if (!GI_TYPE_TAG_IS_BASIC (type->tag))
{
g_debug ("node %p type tag '%s'", node,
g_type_tag_to_string (type->tag));
@@ -1208,7 +1208,7 @@ serialize_type (GIrTypelibBuild *build,
{
gint i;
- if (G_TYPE_TAG_IS_BASIC(node->tag))
+ if (GI_TYPE_TAG_IS_BASIC (node->tag))
{
g_string_append_printf (str, "%s%s", g_type_tag_to_string (node->tag),
node->is_pointer ? "*" : "");
@@ -1430,7 +1430,7 @@ _g_ir_node_build_typelib (GIrNode *node,
*offset += sizeof (SimpleTypeBlob);
- if (G_TYPE_TAG_IS_BASIC (type->tag))
+ if (GI_TYPE_TAG_IS_BASIC (type->tag))
{
blob->flags.reserved = 0;
blob->flags.reserved2 = 0;
diff --git a/girepository/girwriter.c b/girepository/girwriter.c
index 44e18801..ea148f32 100644
--- a/girepository/girwriter.c
+++ b/girepository/girwriter.c
@@ -231,7 +231,7 @@ write_type_info (const gchar *namespace,
xml_end_element (file, "type");
}
- else if (G_TYPE_TAG_IS_BASIC (tag))
+ else if (GI_TYPE_TAG_IS_BASIC (tag))
{
xml_start_element (file, "type");
xml_printf (file, " name=\"%s\"", g_type_tag_to_string (tag));
diff --git a/girepository/gitypelib.c b/girepository/gitypelib.c
index d5ef4506..29349da3 100644
--- a/girepository/gitypelib.c
+++ b/girepository/gitypelib.c
@@ -792,7 +792,7 @@ validate_type_blob (GITypelib *typelib,
if (simple->flags.reserved == 0 &&
simple->flags.reserved2 == 0)
{
- if (!G_TYPE_TAG_IS_BASIC(simple->flags.tag))
+ if (!GI_TYPE_TAG_IS_BASIC(simple->flags.tag))
{
g_set_error (error,
G_TYPELIB_ERROR,
diff --git a/girepository/gitypes.h b/girepository/gitypes.h
index 47b5a3ea..9a9cb1e1 100644
--- a/girepository/gitypes.h
+++ b/girepository/gitypes.h
@@ -405,7 +405,7 @@ typedef enum {
GI_TYPE_TAG_GTYPE = 12,
GI_TYPE_TAG_UTF8 = 13,
GI_TYPE_TAG_FILENAME = 14,
- /* Non-basic types; compare with G_TYPE_TAG_IS_BASIC */
+ /* Non-basic types; compare with GI_TYPE_TAG_IS_BASIC */
GI_TYPE_TAG_ARRAY = 15, /* container (see GI_TYPE_TAG_IS_CONTAINER) */
GI_TYPE_TAG_INTERFACE = 16,
GI_TYPE_TAG_GLIST = 17, /* container */