diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2014-06-20 13:52:14 +0100 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2015-10-04 17:46:09 -0400 |
commit | 10cb665fee2cc378dd2f13bad16e6384836a8b16 (patch) | |
tree | 3d699aa40290c4902774233290ec89d277ff9dec /tests/scanner/regress.c | |
parent | 0a134a608f5b471c3a12739785e149ceaf90df27 (diff) | |
download | gobject-introspection-10cb665fee2cc378dd2f13bad16e6384836a8b16.tar.gz |
giscanner: Mark gpointer nodes as nullable by default
gpointer parameters and return types should be marked as nullable by
default, unless:
• also annotated with (type) and not with (nullable); or
• explicitly annotated with (not nullable).
This introduces the (not nullable) annotation as a direct opposite to
(nullable). In future, (not) could be extended to invert other
annotations.
https://bugzilla.gnome.org/show_bug.cgi?id=729660
Diffstat (limited to 'tests/scanner/regress.c')
-rw-r--r-- | tests/scanner/regress.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c index 537d7d66..3644f4ca 100644 --- a/tests/scanner/regress.c +++ b/tests/scanner/regress.c @@ -3478,6 +3478,7 @@ regress_test_simple_callback (RegressTestSimpleCallback callback) /** * regress_test_callback_user_data: * @callback: (scope call): + * @user_data: (not nullable): * * Call - callback parameter persists for the duration of the method * call and can be released on return. |