From 10177cf3eaa0e6b93a95f31fd438d279fd7af1f9 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 24 Jul 2024 18:35:34 +0200 Subject: [PATCH] girepository: Coding style fixes Fixes commit 453dd4be9e906078a7fb7466819ce1876a629a45. Signed-off-by: Philip Withnall --- girepository/gicallableinfo.c | 3 ++- girepository/girnode.c | 14 ++++++++------ girepository/girwriter.c | 12 ++++++------ 3 files changed, 16 insertions(+), 13 deletions(-) diff --git a/girepository/gicallableinfo.c b/girepository/gicallableinfo.c index 4f1439c28..b5ea55d74 100644 --- a/girepository/gicallableinfo.c +++ b/girepository/gicallableinfo.c @@ -843,7 +843,8 @@ gi_callable_info_class_init (gpointer g_class, } static GICallableInfo * -get_method_callable_info_for_index (GIBaseInfo *rinfo, unsigned int index) +get_method_callable_info_for_index (GIBaseInfo *rinfo, + unsigned int index) { GIBaseInfo *container = rinfo->container; diff --git a/girepository/girnode.c b/girepository/girnode.c index 50a798ab5..8df495db4 100644 --- a/girepository/girnode.c +++ b/girepository/girnode.c @@ -1225,20 +1225,22 @@ get_index_of_member_type (GIIrNodeInterface *node, } static int -get_index_for_function (GIIrTypelibBuild * build, - GIIrNode *parent, +get_index_for_function (GIIrTypelibBuild *build, + GIIrNode *parent, const char *name) { if (parent == NULL) { - uint16_t index = find_entry(build, name); - if (index == 0) return -1; + uint16_t index = find_entry (build, name); + if (index == 0) + return -1; return index; } - int index = get_index_of_member_type((GIIrNodeInterface *) parent, GI_IR_NODE_FUNCTION, name); - if (index != -1) return index; + int index = get_index_of_member_type ((GIIrNodeInterface *) parent, GI_IR_NODE_FUNCTION, name); + if (index != -1) + return index; return -1; } diff --git a/girepository/girwriter.c b/girepository/girwriter.c index 770cd0920..82db11774 100644 --- a/girepository/girwriter.c +++ b/girepository/girwriter.c @@ -461,9 +461,9 @@ write_callable_info (const char *ns, Xml *file) { GITypeInfo *type; - GICallableInfo* async_func; - GICallableInfo* sync_func; - GICallableInfo* finish_func; + GICallableInfo *async_func; + GICallableInfo *sync_func; + GICallableInfo *finish_func; if (gi_callable_info_can_throw_gerror (info)) xml_printf (file, " throws=\"1\""); @@ -476,13 +476,13 @@ write_callable_info (const char *ns, finish_func = gi_callable_info_get_finish_function (info); if (sync_func) - xml_printf (file, " glib:sync-func=\"%s\"", gi_base_info_get_name((GIBaseInfo*) sync_func)); + xml_printf (file, " glib:sync-func=\"%s\"", gi_base_info_get_name ((GIBaseInfo*) sync_func)); if (finish_func) - xml_printf (file, " glib:finish-func=\"%s\"", gi_base_info_get_name((GIBaseInfo*) finish_func)); + xml_printf (file, " glib:finish-func=\"%s\"", gi_base_info_get_name ((GIBaseInfo*) finish_func)); if (async_func) - xml_printf (file, " glib:async-func=\"%s\"", gi_base_info_get_name((GIBaseInfo*) async_func)); + xml_printf (file, " glib:async-func=\"%s\"", gi_base_info_get_name ((GIBaseInfo*) async_func)); xml_start_element (file, "return-value");