summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Chimento <philip.chimento@gmail.com>2021-03-20 12:30:02 -0700
committerEmmanuele Bassi <ebassi@gmail.com>2021-07-29 10:35:59 +0000
commitc691d9f03b93baddcd1f4e979a97e8d72a27d893 (patch)
tree7a602563d2aaa505f4f8804c8a1024dd658b1829
parent793b46cc0458da6c04a8037db6aabb10f4409c21 (diff)
downloadgobject-introspection-c691d9f03b93baddcd1f4e979a97e8d72a27d893.tar.gz
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
-rw-r--r--tests/gimarshallingtests.c4
-rw-r--r--tests/gimarshallingtests.h4
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)
*/