[gobject-introspection/ebassi/no-docbook] Use GI_TYPE_TAG_IS_BASIC
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/ebassi/no-docbook] Use GI_TYPE_TAG_IS_BASIC
- Date: Sun, 13 Feb 2022 14:45:31 +0000 (UTC)
commit 0cd7f4f39714f3c01d666d165ae1f92cb5c78811
Author: Emmanuele Bassi <ebassi gnome org>
Date: Sun Feb 13 14:35:53 2022 +0000
Use GI_TYPE_TAG_IS_BASIC
Now that we have it.
girepository/girnode.c | 6 +++---
girepository/girwriter.c | 2 +-
girepository/gitypelib.c | 2 +-
girepository/gitypes.h | 2 +-
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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]