Files
glib/gobject
Philip Withnall 3a216c72e2 gvalue: Clarify docs for G_VALUE_INIT and g_value_init()
It’s not particularly clear why both these exist and why you need to use
both of them when creating a `GValue` — but you do.

Try and clarify things in the documentation.

In particular, replace use of the term ‘uninitialised’ (referring to a
`GValue` which has been set to `G_VALUE_INIT` but not yet had
`g_value_init()` called on it) with ‘zero-filled (cleared)’ instead.

‘uninitialised’ doesn’t make sense to describe a variable which, in C
terms, has just been initialised by assigning `G_VALUE_INIT` to it.
‘cleared’ is a bit less overloaded as a term.

Add some code examples to hopefully make things clearer too.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2025-08-08 11:26:59 +01:00
..
2023-10-16 23:34:04 +01:00
2022-10-13 20:53:56 -04:00
2023-10-16 23:35:05 +01:00
2023-12-31 09:09:48 +00:00
2022-10-13 20:53:56 -04:00
2023-10-16 23:34:24 +01:00
2022-10-13 20:53:56 -04:00
2022-10-13 20:53:56 -04:00
2025-02-10 10:26:42 +01:00
2023-10-23 11:26:53 +01:00