[gobject-introspection] [everything] Fix length annotations



commit fc43514c54a3ce334520467b86d9b987f54fa417
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Fri May 7 15:19:37 2010 -0400

    [everything] Fix length annotations
    
    Length annotations take a parameter name not a parameter index.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=618041

 gir/Everything-1.0-expected.gir |    4 ++--
 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 24c9ff9..4a9f3ba 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 169d05c..1ac73f6 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)



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