gitypelib: Rename gi_typelib_check_sanity() to gi_typelib_check_format()

It’s more descriptive and less offensive.

This is not an API break as it’s not a public API.

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

Helps: #3155
This commit is contained in:
Philip Withnall 2024-01-05 12:57:36 +00:00
parent 0910e2f6ad
commit 513e178144
2 changed files with 4 additions and 4 deletions

View File

@ -1338,7 +1338,7 @@ gboolean gi_typelib_matches_gtype_name_prefix (GITypelib *typelib,
GI_AVAILABLE_IN_ALL
void gi_typelib_check_sanity (void);
void gi_typelib_check_format (void);
/**
* gi_typelib_get_string:

View File

@ -426,7 +426,7 @@ gi_typelib_get_dir_entry_by_error_domain (GITypelib *typelib,
}
/**
* gi_typelib_check_sanity:
* gi_typelib_check_format:
*
* Check compile-time sizes of various typelib file format types are as
* expected.
@ -434,7 +434,7 @@ gi_typelib_get_dir_entry_by_error_domain (GITypelib *typelib,
* Since: 2.80
*/
void
gi_typelib_check_sanity (void)
gi_typelib_check_format (void)
{
#ifndef G_DISABLE_ASSERT
/* Check that struct layout is as we expect */
@ -616,7 +616,7 @@ validate_header_basic (const guint8 *memory,
/* This is a sanity check for a specific typelib; it
* prevents us from loading an incompatible typelib.
*
* The hardcoded checks in gi_typelib_check_sanity to
* The hardcoded checks in gi_typelib_check_format to
* protect against inadvertent or buggy changes to the typelib format
* itself.
*/