mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 07:26:15 +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:
|
||||
* @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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user