Merge branch '3524-missing-annotations' into 'main'

Add missing `(array zero-terminated=1)` annotations

Closes #3524

See merge request GNOME/glib!4386
This commit is contained in:
Philip Withnall 2024-11-07 11:38:58 +00:00
commit 536dfca9be

View File

@ -143,10 +143,10 @@ value_flags_enum_lcopy_value (const GValue *value,
/**
* g_enum_register_static:
* @name: A nul-terminated string used as the name of the new type.
* @const_static_values: An array of #GEnumValue structs for the possible
* enumeration values. The array is terminated by a struct with all
* members being 0. GObject keeps a reference to the data, so it cannot
* be stack-allocated.
* @const_static_values: (array zero-terminated=1): An array of
* #GEnumValue structs for the possible enumeration values. The array is
* terminated by a struct with all members being 0. GObject keeps a
* reference to the data, so it cannot be stack-allocated.
*
* Registers a new static enumeration type with the name @name.
*
@ -187,9 +187,10 @@ g_enum_register_static (const gchar *name,
/**
* g_flags_register_static:
* @name: A nul-terminated string used as the name of the new type.
* @const_static_values: An array of #GFlagsValue structs for the possible
* flags values. The array is terminated by a struct with all members being 0.
* GObject keeps a reference to the data, so it cannot be stack-allocated.
* @const_static_values: (array zero-terminated=1): An array of
* #GFlagsValue structs for the possible flags values. The array is
* terminated by a struct with all members being 0. GObject keeps a
* reference to the data, so it cannot be stack-allocated.
*
* Registers a new static flags type with the name @name.
*