Add a few more test-cases
authorJohan Dahlin <johan@src.gnome.org>
Wed, 14 Jan 2009 21:33:29 +0000 (21:33 +0000)
committerJohan Dahlin <johan@src.gnome.org>
Wed, 14 Jan 2009 21:33:29 +0000 (21:33 +0000)
svn path=/trunk/; revision=1038

tests/scanner/annotation.c
tests/scanner/annotation.h

index 337b9733de577fead6ab136feb1fa9b3a3e65b05..235f616a45f44d3ffb6167ab7d7b9016b11c88aa 100644 (file)
@@ -515,7 +515,7 @@ annotation_object_do_not_use (AnnotationObject *object)
 /**
  * annotation_init:
  * @argc: (inout): The number of args. 
- * @argv: (inout) (array length=argc zero-terminated=1): The arguments.
+ * @argv: (inout) (array length=argc): The arguments.
  **/
 void
 annotation_init (int *argc, char ***argv)
@@ -527,7 +527,7 @@ annotation_init (int *argc, char ***argv)
  * annotation_return_array:
  * @length: (out): Number of return values
  *
- * Return value: (array length=length zero-terminated=1): The return value
+ * Return value: (array length=length): The return value
  **/
 char **
 annotation_return_array (int *length)
@@ -535,6 +535,27 @@ annotation_return_array (int *length)
   return NULL;
 }
 
+/**
+ * annotation_string_zero_terminated:
+ *
+ * Return value: (array zero-terminated=1): The return value
+ **/
+char **
+annotation_string_zero_terminated (void)
+{
+  return NULL;
+}
+
+/**
+ * annotation_string_zero_terminated_out:
+ * @out: (array zero-terminated=1) (inout)
+ **/
+void
+annotation_string_zero_terminated_out (char ***out)
+{
+  return NULL;
+}
+
 /**
  * annotation_versioned:
  *
index 59905134263f98ae9f8795d73ed2156914469939..70cf3c707a7fe1adf264ed1a7bbc70442a5b6f27 100644 (file)
@@ -106,6 +106,8 @@ void     annotation_init                (int              *argc,
                                         char           ***argv);
 char **  annotation_return_array        (int             *length);
 void     annotation_versioned           (void);
+char **  annotation_string_zero_terminated (void);
+void     annotation_string_zero_terminated_out (char ***out);
 
 /**
  * AnnotationStruct: