Add missing (array zero-terminated=1) annotations

Array annotations were missing on `g_enum_register_static` and
`g_flags_register_static`.

Fixes #3524
This commit is contained in:
Jan-Willem Harmannij 2024-11-06 22:26:06 +01:00
parent a429e56523
commit 80ba36e095

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.
*