diff options
author | Owen W. Taylor <otaylor@fishsoup.net> | 2010-05-07 15:19:37 -0400 |
---|---|---|
committer | Owen W. Taylor <otaylor@fishsoup.net> | 2010-05-07 15:24:42 -0400 |
commit | fc43514c54a3ce334520467b86d9b987f54fa417 (patch) | |
tree | 6499fe35ca6e10a422b12924050733aa9ae9931f /gir | |
parent | 6c0e72df7c6c30f81e54ea8e7f375cc27ae0c1ef (diff) | |
download | gobject-introspection-fc43514c54a3ce334520467b86d9b987f54fa417.tar.gz |
[everything] Fix length annotations
Length annotations take a parameter name not a parameter index.
https://bugzilla.gnome.org/show_bug.cgi?id=618041
Diffstat (limited to 'gir')
-rw-r--r-- | gir/Everything-1.0-expected.gir | 4 | ||||
-rw-r--r-- | gir/everything.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/gir/Everything-1.0-expected.gir b/gir/Everything-1.0-expected.gir index 24c9ff94..4a9f3ba5 100644 --- a/gir/Everything-1.0-expected.gir +++ b/gir/Everything-1.0-expected.gir @@ -784,7 +784,7 @@ case."> </return-value> <parameters> <parameter name="arr" transfer-ownership="none" allow-none="1"> - <array c:type="int*"> + <array length="1" c:type="int*"> <type name="int"/> </array> </parameter> @@ -803,7 +803,7 @@ case."> direction="out" transfer-ownership="full" allow-none="1"> - <array c:type="int**"> + <array length="1" c:type="int**"> <type name="int"/> </array> </parameter> diff --git a/gir/everything.c b/gir/everything.c index 169d05cf..1ac73f6a 100644 --- a/gir/everything.c +++ b/gir/everything.c @@ -752,7 +752,7 @@ test_array_int_none_out(int *len) { /** * test_array_int_null_in: - * @arr: (array length=1) (allow-none): + * @arr: (array length=len) (allow-none): * @len: length */ void test_array_int_null_in (int *arr, int len) @@ -762,7 +762,7 @@ void test_array_int_null_in (int *arr, int len) /** * test_array_int_null_out: - * @arr: (out) (array length=1) (allow-none): + * @arr: (out) (array length=len) (allow-none): * @len: (out) : length */ void test_array_int_null_out (int **arr, int *len) |