mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
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:
parent
a429e56523
commit
80ba36e095
@ -143,10 +143,10 @@ value_flags_enum_lcopy_value (const GValue *value,
|
|||||||
/**
|
/**
|
||||||
* g_enum_register_static:
|
* g_enum_register_static:
|
||||||
* @name: A nul-terminated string used as the name of the new type.
|
* @name: A nul-terminated string used as the name of the new type.
|
||||||
* @const_static_values: An array of #GEnumValue structs for the possible
|
* @const_static_values: (array zero-terminated=1): An array of
|
||||||
* enumeration values. The array is terminated by a struct with all
|
* #GEnumValue structs for the possible enumeration values. The array is
|
||||||
* members being 0. GObject keeps a reference to the data, so it cannot
|
* terminated by a struct with all members being 0. GObject keeps a
|
||||||
* be stack-allocated.
|
* reference to the data, so it cannot be stack-allocated.
|
||||||
*
|
*
|
||||||
* Registers a new static enumeration type with the name @name.
|
* 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:
|
* g_flags_register_static:
|
||||||
* @name: A nul-terminated string used as the name of the new type.
|
* @name: A nul-terminated string used as the name of the new type.
|
||||||
* @const_static_values: An array of #GFlagsValue structs for the possible
|
* @const_static_values: (array zero-terminated=1): An array of
|
||||||
* flags values. The array is terminated by a struct with all members being 0.
|
* #GFlagsValue structs for the possible flags values. The array is
|
||||||
* GObject keeps a reference to the data, so it cannot be stack-allocated.
|
* 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.
|
* Registers a new static flags type with the name @name.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user