girepository: Remove _ prefix from private functions

Now that libgirepository uses `GI_AVAILABLE_IN_*` macros, that’s what
controls symbol visibility. The `_` prefixes are redundant, and out of
keeping with the rest of GLib.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Helps: #3155
This commit is contained in:
Philip Withnall
2023-11-08 15:23:31 +00:00
parent 7b029e564d
commit 2b544c3f66
26 changed files with 518 additions and 518 deletions

View File

@@ -194,16 +194,16 @@ get_interface_size_alignment (GIIrTypelibBuild *build,
{
GIIrNode *iface;
iface = _gi_ir_find_node (build, ((GIIrNode*)type)->module, type->giinterface);
iface = gi_ir_find_node (build, ((GIIrNode*)type)->module, type->giinterface);
if (!iface)
{
_gi_ir_module_fatal (build, 0, "Can't resolve type '%s' for %s", type->giinterface, who);
gi_ir_module_fatal (build, 0, "Can't resolve type '%s' for %s", type->giinterface, who);
*size = -1;
*alignment = -1;
return FALSE;
}
_gi_ir_node_compute_offsets (build, iface);
gi_ir_node_compute_offsets (build, iface);
switch (iface->type)
{
@@ -252,7 +252,7 @@ get_interface_size_alignment (GIIrTypelibBuild *build,
{
g_warning ("%s has is not a pointer and is of type %s",
who,
_gi_ir_node_type_to_string (iface->type));
gi_ir_node_type_to_string (iface->type));
*size = -1;
*alignment = -1;
break;
@@ -502,7 +502,7 @@ check_needs_computation (GIIrTypelibBuild *build,
}
/*
* _gi_ir_node_compute_offsets:
* gi_ir_node_compute_offsets:
* @build: Current typelib build
* @node: a #GIIrNode
*
@@ -511,8 +511,8 @@ check_needs_computation (GIIrTypelibBuild *build,
* alignment for the type.
*/
void
_gi_ir_node_compute_offsets (GIIrTypelibBuild *build,
GIIrNode *node)
gi_ir_node_compute_offsets (GIIrTypelibBuild *build,
GIIrNode *node)
{
gboolean appended_stack;