[gobject-introspection] introspection: Remove 'caller-allocates' from POD types
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] introspection: Remove 'caller-allocates' from POD types
- Date: Thu, 29 Jul 2021 10:45:59 +0000 (UTC)
commit c691d9f03b93baddcd1f4e979a97e8d72a27d893
Author: Philip Chimento <philip chimento gmail com>
Date: Sat Mar 20 12:30:02 2021 -0700
introspection: Remove 'caller-allocates' from POD types
The (out caller-allocates) and (out callee-allocates) annotations are
meant for structured or pointer types. Plain old data types are just
regular out parameters and don't need the annotation about who allocates
them.
See: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2005
tests/gimarshallingtests.c | 4 ++--
tests/gimarshallingtests.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tests/gimarshallingtests.c b/tests/gimarshallingtests.c
index 46ac0fbf..fe265303 100644
--- a/tests/gimarshallingtests.c
+++ b/tests/gimarshallingtests.c
@@ -4391,7 +4391,7 @@ gi_marshalling_tests_object_method_int8_out (GIMarshallingTestsObject *self, gin
/**
* gi_marshalling_tests_object_method_int8_arg_and_out_caller:
- * @out: (out caller-allocates):
+ * @out: (out):
*/
void
gi_marshalling_tests_object_method_int8_arg_and_out_caller (GIMarshallingTestsObject *self, gint8 arg,
gint8 *out)
@@ -4411,7 +4411,7 @@ void
/**
* gi_marshalling_tests_object_method_str_arg_out_ret:
- * @out: (out caller-allocates):
+ * @out: (out):
*
* Returns: (transfer none)
*/
diff --git a/tests/gimarshallingtests.h b/tests/gimarshallingtests.h
index c605c5a5..66f476d5 100644
--- a/tests/gimarshallingtests.h
+++ b/tests/gimarshallingtests.h
@@ -1363,7 +1363,7 @@ struct _GIMarshallingTestsObjectClass
/**
* GIMarshallingTestsObjectClass::method_int8_arg_and_out_caller:
- * @out: (out caller-allocates):
+ * @out: (out):
*/
void (* method_int8_arg_and_out_caller) (GIMarshallingTestsObject *self, gint8 arg, gint8 *out);
@@ -1375,7 +1375,7 @@ struct _GIMarshallingTestsObjectClass
/**
* GIMarshallingTestsObjectClass::method_str_arg_out_ret:
- * @out: (out caller-allocates):
+ * @out: (out):
*
* Returns: (transfer none)
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]