gpointer, (closure) parameters and gpointer return types are now nullable by convention



Hi all,

Just a heads up, as bug #729660, the following things are now marked as
(nullable) by default:
 • (closure) parameters
 • gpointer parameters (for example, gpointer user_data which is
somehow not marked as a closure data parameter already)
 • gpointer return types

*Unless*:
 • also annotated with (type) and not with (nullable); or
 • explicitly annotated with (not nullable).

(not nullable) is a new annotation which does what it says on the tin.
The (not) annotation doesn’t currently support anything other than
‘nullable’ as its option, but support for other annotations could be
added in future if needed.

I’ll update the wiki page shortly.

This was brought to you by:
 • https://bugzilla.gnome.org/show_bug.cgi?id=729660https://git.gnome.org/browse/gobject-introspection/commit/?id=0a134a
608f5b471c3a12739785e149ceaf90df27
 • https://git.gnome.org/browse/gobject-introspection/commit/?id=10cb66
5fee2cc378dd2f13bad16e6384836a8b16

Philip

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]