gobject-introspection 2.2.0-x86-mingw32 → 2.2.1-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +7 -7
  3. data/ext/gobject-introspection/rb-gi-argument.c +28 -3
  4. data/ext/gobject-introspection/rb-gi-constructor-info.c +6 -1
  5. data/ext/gobject-introspection/rb-gi-function-info.c +29 -4
  6. data/ext/gobject-introspection/rb-gi-loader.c +19 -3
  7. data/ext/gobject-introspection/rb-gi-struct-info.c +28 -16
  8. data/lib/2.0/gobject_introspection.so +0 -0
  9. data/lib/gobject-introspection/callable-info.rb +16 -7
  10. data/lib/gobject-introspection/loader.rb +47 -19
  11. data/test/test-object-info.rb +1 -1
  12. data/test/test-signal-info.rb +2 -2
  13. data/test/test-struct-info.rb +1 -1
  14. data/vendor/local/bin/g-ir-compiler.exe +0 -0
  15. data/vendor/local/bin/g-ir-generate.exe +0 -0
  16. data/vendor/local/bin/libgirepository-1.0-1.dll +0 -0
  17. data/vendor/local/include/gobject-introspection-1.0/giarginfo.h +30 -0
  18. data/vendor/local/include/gobject-introspection-1.0/gibaseinfo.h +31 -0
  19. data/vendor/local/include/gobject-introspection-1.0/gicallableinfo.h +36 -0
  20. data/vendor/local/include/gobject-introspection-1.0/giconstantinfo.h +12 -0
  21. data/vendor/local/include/gobject-introspection-1.0/gienuminfo.h +26 -0
  22. data/vendor/local/include/gobject-introspection-1.0/gifieldinfo.h +19 -0
  23. data/vendor/local/include/gobject-introspection-1.0/gifunctioninfo.h +23 -0
  24. data/vendor/local/include/gobject-introspection-1.0/giinterfaceinfo.h +38 -0
  25. data/vendor/local/include/gobject-introspection-1.0/giobjectinfo.h +72 -2
  26. data/vendor/local/include/gobject-introspection-1.0/gipropertyinfo.h +12 -0
  27. data/vendor/local/include/gobject-introspection-1.0/giregisteredtypeinfo.h +11 -0
  28. data/vendor/local/include/gobject-introspection-1.0/girepository.h +68 -8
  29. data/vendor/local/include/gobject-introspection-1.0/girffi.h +25 -1
  30. data/vendor/local/include/gobject-introspection-1.0/gisignalinfo.h +12 -0
  31. data/vendor/local/include/gobject-introspection-1.0/gistructinfo.h +24 -0
  32. data/vendor/local/include/gobject-introspection-1.0/gitypeinfo.h +31 -0
  33. data/vendor/local/include/gobject-introspection-1.0/gitypelib.h +25 -0
  34. data/vendor/local/include/gobject-introspection-1.0/gitypes.h +84 -13
  35. data/vendor/local/include/gobject-introspection-1.0/giunioninfo.h +27 -0
  36. data/vendor/local/include/gobject-introspection-1.0/giversionmacros.h +128 -0
  37. data/vendor/local/include/gobject-introspection-1.0/givfuncinfo.h +17 -0
  38. data/vendor/local/lib/girepository-1.0/GIRepository-2.0.typelib +0 -0
  39. data/vendor/local/lib/girepository-1.0/GLib-2.0.typelib +0 -0
  40. data/vendor/local/lib/girepository-1.0/GObject-2.0.typelib +0 -0
  41. data/vendor/local/lib/girepository-1.0/Gio-2.0.typelib +0 -0
  42. data/vendor/local/lib/girepository-1.0/libxml2-2.0.typelib +0 -0
  43. data/vendor/local/lib/girepository-1.0/win32-1.0.typelib +0 -0
  44. data/vendor/local/lib/gobject-introspection/giscanner/__init__.pyc +0 -0
  45. data/vendor/local/lib/gobject-introspection/giscanner/__init__.pyo +0 -0
  46. data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.py +5 -4
  47. data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.pyc +0 -0
  48. data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.pyo +0 -0
  49. data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.py +1865 -913
  50. data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.pyc +0 -0
  51. data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.pyo +0 -0
  52. data/vendor/local/lib/gobject-introspection/giscanner/ast.py +49 -16
  53. data/vendor/local/lib/gobject-introspection/giscanner/ast.pyc +0 -0
  54. data/vendor/local/lib/gobject-introspection/giscanner/ast.pyo +0 -0
  55. data/vendor/local/lib/gobject-introspection/giscanner/cachestore.py +10 -4
  56. data/vendor/local/lib/gobject-introspection/giscanner/cachestore.pyc +0 -0
  57. data/vendor/local/lib/gobject-introspection/giscanner/cachestore.pyo +0 -0
  58. data/vendor/local/lib/gobject-introspection/giscanner/ccompiler.py +202 -0
  59. data/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pyc +0 -0
  60. data/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pyo +0 -0
  61. data/vendor/local/lib/gobject-introspection/giscanner/codegen.py +32 -1
  62. data/vendor/local/lib/gobject-introspection/giscanner/codegen.pyc +0 -0
  63. data/vendor/local/lib/gobject-introspection/giscanner/codegen.pyo +0 -0
  64. data/vendor/local/lib/gobject-introspection/giscanner/collections/__init__.py +1 -0
  65. data/vendor/local/lib/gobject-introspection/giscanner/collections/__init__.pyc +0 -0
  66. data/vendor/local/lib/gobject-introspection/giscanner/collections/__init__.pyo +0 -0
  67. data/vendor/local/lib/gobject-introspection/giscanner/collections/counter.py +305 -0
  68. data/vendor/local/lib/gobject-introspection/giscanner/collections/counter.pyc +0 -0
  69. data/vendor/local/lib/gobject-introspection/giscanner/collections/counter.pyo +0 -0
  70. data/vendor/local/lib/gobject-introspection/giscanner/collections/ordereddict.pyc +0 -0
  71. data/vendor/local/lib/gobject-introspection/giscanner/collections/ordereddict.pyo +0 -0
  72. data/vendor/local/lib/gobject-introspection/giscanner/docmain.pyc +0 -0
  73. data/vendor/local/lib/gobject-introspection/giscanner/docmain.pyo +0 -0
  74. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/callback.tmpl +4 -0
  75. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/field.tmpl +1 -0
  76. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/function.tmpl +8 -9
  77. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/interface.tmpl +2 -0
  78. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/callback.tmpl +27 -0
  79. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/class.tmpl +17 -5
  80. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/enum.tmpl +8 -0
  81. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/field.tmpl +9 -0
  82. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl +12 -13
  83. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/interface.tmpl +17 -0
  84. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/property.tmpl +3 -4
  85. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/signal.tmpl +10 -9
  86. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/vfunc.tmpl +7 -7
  87. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/callback.tmpl +27 -0
  88. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/class.tmpl +5 -4
  89. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/field.tmpl +1 -0
  90. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/function.tmpl +8 -14
  91. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/interface.tmpl +16 -0
  92. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/property.tmpl +2 -3
  93. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/signal.tmpl +6 -7
  94. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/vfunc.tmpl +7 -13
  95. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/base.tmpl +10 -19
  96. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/class.tmpl +24 -3
  97. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/namespace.tmpl +4 -7
  98. data/vendor/local/lib/gobject-introspection/giscanner/docwriter.py +375 -61
  99. data/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyc +0 -0
  100. data/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyo +0 -0
  101. data/vendor/local/lib/gobject-introspection/giscanner/dumper.py +43 -75
  102. data/vendor/local/lib/gobject-introspection/giscanner/dumper.pyc +0 -0
  103. data/vendor/local/lib/gobject-introspection/giscanner/dumper.pyo +0 -0
  104. data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.py +1 -20
  105. data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.pyc +0 -0
  106. data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.pyo +0 -0
  107. data/vendor/local/lib/gobject-introspection/giscanner/girparser.py +33 -15
  108. data/vendor/local/lib/gobject-introspection/giscanner/girparser.pyc +0 -0
  109. data/vendor/local/lib/gobject-introspection/giscanner/girparser.pyo +0 -0
  110. data/vendor/local/lib/gobject-introspection/giscanner/girwriter.py +51 -22
  111. data/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyc +0 -0
  112. data/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyo +0 -0
  113. data/vendor/local/lib/gobject-introspection/giscanner/introspectablepass.pyc +0 -0
  114. data/vendor/local/lib/gobject-introspection/giscanner/introspectablepass.pyo +0 -0
  115. data/vendor/local/lib/gobject-introspection/giscanner/libtoolimporter.pyc +0 -0
  116. data/vendor/local/lib/gobject-introspection/giscanner/libtoolimporter.pyo +0 -0
  117. data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.py +285 -254
  118. data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.pyc +0 -0
  119. data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.pyo +0 -0
  120. data/vendor/local/lib/gobject-introspection/giscanner/message.py +41 -25
  121. data/vendor/local/lib/gobject-introspection/giscanner/message.pyc +0 -0
  122. data/vendor/local/lib/gobject-introspection/giscanner/message.pyo +0 -0
  123. data/vendor/local/lib/gobject-introspection/giscanner/scannermain.py +67 -15
  124. data/vendor/local/lib/gobject-introspection/giscanner/scannermain.pyc +0 -0
  125. data/vendor/local/lib/gobject-introspection/giscanner/scannermain.pyo +0 -0
  126. data/vendor/local/lib/gobject-introspection/giscanner/sectionparser.pyc +0 -0
  127. data/vendor/local/lib/gobject-introspection/giscanner/sectionparser.pyo +0 -0
  128. data/vendor/local/lib/gobject-introspection/giscanner/shlibs.py +10 -6
  129. data/vendor/local/lib/gobject-introspection/giscanner/shlibs.pyc +0 -0
  130. data/vendor/local/lib/gobject-introspection/giscanner/shlibs.pyo +0 -0
  131. data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.py +14 -8
  132. data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.pyc +0 -0
  133. data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.pyo +0 -0
  134. data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.py +16 -2
  135. data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pyc +0 -0
  136. data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pyo +0 -0
  137. data/vendor/local/lib/gobject-introspection/giscanner/transformer.py +150 -169
  138. data/vendor/local/lib/gobject-introspection/giscanner/transformer.pyc +0 -0
  139. data/vendor/local/lib/gobject-introspection/giscanner/transformer.pyo +0 -0
  140. data/vendor/local/lib/gobject-introspection/giscanner/utils.py +64 -3
  141. data/vendor/local/lib/gobject-introspection/giscanner/utils.pyc +0 -0
  142. data/vendor/local/lib/gobject-introspection/giscanner/utils.pyo +0 -0
  143. data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.py +5 -44
  144. data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyc +0 -0
  145. data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyo +0 -0
  146. data/vendor/local/lib/libgirepository-1.0.a +0 -0
  147. data/vendor/local/lib/libgirepository-1.0.dll.a +0 -0
  148. data/vendor/local/lib/libgirepository-1.0.la +1 -1
  149. data/vendor/local/lib/pkgconfig/gobject-introspection-1.0.pc +4 -4
  150. data/vendor/local/lib/pkgconfig/gobject-introspection-no-export-1.0.pc +5 -5
  151. data/vendor/local/share/gir-1.0/GIRepository-2.0.gir +352 -143
  152. data/vendor/local/share/gir-1.0/GLib-2.0.gir +6402 -3872
  153. data/vendor/local/share/gir-1.0/GModule-2.0.gir +42 -24
  154. data/vendor/local/share/gir-1.0/GObject-2.0.gir +1543 -887
  155. data/vendor/local/share/gir-1.0/Gio-2.0.gir +10859 -3705
  156. data/vendor/local/share/gobject-introspection-1.0/tests/annotation.c +10 -14
  157. data/vendor/local/share/gobject-introspection-1.0/tests/annotation.h +112 -9
  158. data/vendor/local/share/gobject-introspection-1.0/tests/drawable.c +2 -0
  159. data/vendor/local/share/gobject-introspection-1.0/tests/drawable.h +11 -0
  160. data/vendor/local/share/gobject-introspection-1.0/tests/everything.c +106 -0
  161. data/vendor/local/share/gobject-introspection-1.0/tests/everything.h +107 -0
  162. data/vendor/local/share/gobject-introspection-1.0/tests/foo.c +3 -3
  163. data/vendor/local/share/gobject-introspection-1.0/tests/foo.h +145 -0
  164. data/vendor/local/share/gobject-introspection-1.0/tests/gimarshallingtests.c +166 -10
  165. data/vendor/local/share/gobject-introspection-1.0/tests/gimarshallingtests.h +790 -0
  166. data/vendor/local/share/gobject-introspection-1.0/tests/gitestmacros.h +10 -0
  167. data/vendor/local/share/gobject-introspection-1.0/tests/regress.c +79 -28
  168. data/vendor/local/share/gobject-introspection-1.0/tests/regress.h +462 -0
  169. data/vendor/local/share/gobject-introspection-1.0/tests/utility.c +2 -0
  170. data/vendor/local/share/gobject-introspection-1.0/tests/utility.h +7 -0
  171. data/vendor/local/share/gobject-introspection-1.0/tests/warnlib.c +14 -0
  172. data/vendor/local/share/gobject-introspection-1.0/tests/warnlib.h +10 -0
  173. data/vendor/local/share/man/man1/g-ir-compiler.1 +1 -10
  174. metadata +38 -23
  175. data/lib/1.9/gobject_introspection.so +0 -0
  176. data/lib/2.1/gobject_introspection.so +0 -0
@@ -0,0 +1,10 @@
1
+ #ifndef __GITESTMACROS_H__
2
+ #define __GITESTMACROS_H__
3
+
4
+ #ifndef _GI_EXTERN
5
+ #define _GI_EXTERN extern
6
+ #endif
7
+
8
+ #define _GI_TEST_EXTERN _GI_EXTERN
9
+
10
+ #endif
@@ -1,4 +1,6 @@
1
1
  /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
2
+ #include "config.h"
3
+
2
4
  #include <string.h>
3
5
  #include <stdlib.h>
4
6
  #include <glib-object.h>
@@ -1872,6 +1874,16 @@ regress_test_boxed_equals (RegressTestBoxed *boxed,
1872
1874
  regress_test_simple_boxed_a_equals(&other->nested_a, &boxed->nested_a));
1873
1875
  }
1874
1876
 
1877
+ void
1878
+ regress_test_boxeds_not_a_method (RegressTestBoxed *boxed)
1879
+ {
1880
+ }
1881
+
1882
+ void
1883
+ regress_test_boxeds_not_a_static (void)
1884
+ {
1885
+ }
1886
+
1875
1887
  static void
1876
1888
  regress_test_boxed_free (RegressTestBoxed *boxed)
1877
1889
  {
@@ -2009,6 +2021,7 @@ enum
2009
2021
  PROP_TEST_OBJ_BOXED,
2010
2022
  PROP_TEST_OBJ_HASH_TABLE,
2011
2023
  PROP_TEST_OBJ_LIST,
2024
+ PROP_TEST_OBJ_PPTRARRAY,
2012
2025
  PROP_TEST_OBJ_HASH_TABLE_OLD,
2013
2026
  PROP_TEST_OBJ_LIST_OLD,
2014
2027
  PROP_TEST_OBJ_INT,
@@ -2455,10 +2468,7 @@ regress_test_obj_class_init (RegressTestObjClass *klass)
2455
2468
  pspec);
2456
2469
 
2457
2470
  /**
2458
- * RegressTestObj:hash-table:
2459
- *
2460
- * Type: GLib.HashTable(utf8,gint8)
2461
- * Transfer: container
2471
+ * RegressTestObj:hash-table: (type GLib.HashTable(utf8,gint8)) (transfer container)
2462
2472
  */
2463
2473
  pspec = g_param_spec_boxed ("hash-table",
2464
2474
  "GHashTable property",
@@ -2470,10 +2480,7 @@ regress_test_obj_class_init (RegressTestObjClass *klass)
2470
2480
  pspec);
2471
2481
 
2472
2482
  /**
2473
- * RegressTestObj:list:
2474
- *
2475
- * Type: GLib.List(utf8)
2476
- * Transfer: none
2483
+ * RegressTestObj:list: (type GLib.List(utf8)) (transfer none)
2477
2484
  */
2478
2485
  pspec = g_param_spec_pointer ("list",
2479
2486
  "GList property",
@@ -2484,10 +2491,18 @@ regress_test_obj_class_init (RegressTestObjClass *klass)
2484
2491
  pspec);
2485
2492
 
2486
2493
  /**
2487
- * RegressTestObj:hash-table-old:
2488
- *
2489
- * Type: GLib.HashTable<utf8,gint8>
2490
- * Transfer: container
2494
+ * RegressTestObj:pptrarray: (type GLib.PtrArray(utf8)) (transfer none)
2495
+ */
2496
+ pspec = g_param_spec_pointer ("pptrarray",
2497
+ "PtrArray property as a pointer",
2498
+ "Test annotating with GLib.PtrArray",
2499
+ G_PARAM_READWRITE);
2500
+ g_object_class_install_property (gobject_class,
2501
+ PROP_TEST_OBJ_PPTRARRAY,
2502
+ pspec);
2503
+
2504
+ /**
2505
+ * RegressTestObj:hash-table-old: (type GLib.HashTable<utf8,gint8>) (transfer container)
2491
2506
  */
2492
2507
  pspec = g_param_spec_boxed ("hash-table-old",
2493
2508
  "GHashTable property with <>",
@@ -2499,10 +2514,7 @@ regress_test_obj_class_init (RegressTestObjClass *klass)
2499
2514
  pspec);
2500
2515
 
2501
2516
  /**
2502
- * RegressTestObj:list-old:
2503
- *
2504
- * Type: GLib.List<utf8>
2505
- * Transfer: none
2517
+ * RegressTestObj:list-old: (type GLib.List<utf8>) (transfer none)
2506
2518
  */
2507
2519
  pspec = g_param_spec_pointer ("list-old",
2508
2520
  "GList property with ()",
@@ -2681,6 +2693,17 @@ regress_test_obj_instance_method (RegressTestObj *obj)
2681
2693
  return -1;
2682
2694
  }
2683
2695
 
2696
+ /**
2697
+ * regress_test_obj_instance_method_full:
2698
+ * @obj: (transfer full):
2699
+ *
2700
+ */
2701
+ void
2702
+ regress_test_obj_instance_method_full (RegressTestObj *obj)
2703
+ {
2704
+ g_object_unref (obj);
2705
+ }
2706
+
2684
2707
  double
2685
2708
  regress_test_obj_static_method (int x)
2686
2709
  {
@@ -2923,15 +2946,13 @@ regress_test_obj_skip_inout_param (RegressTestObj *obj,
2923
2946
  }
2924
2947
 
2925
2948
  /**
2926
- * regress_test_obj_do_matrix:
2949
+ * regress_test_obj_do_matrix: (virtual matrix)
2927
2950
  * @obj: A #RegressTestObj
2928
2951
  * @somestr: Meaningless string
2929
2952
  *
2930
2953
  * This method is virtual. Notably its name differs from the virtual
2931
2954
  * slot name, which makes it useful for testing bindings handle this
2932
2955
  * case.
2933
- *
2934
- * Virtual: matrix
2935
2956
  */
2936
2957
  int
2937
2958
  regress_test_obj_do_matrix (RegressTestObj *obj, const char *somestr)
@@ -3181,12 +3202,7 @@ regress_test_fundamental_object_init (GTypeInstance * instance, gpointer klass)
3181
3202
  }
3182
3203
 
3183
3204
  /**
3184
- * RegressTestFundamentalObject:
3185
- *
3186
- * Ref Func: regress_test_fundamental_object_ref
3187
- * Unref Func: regress_test_fundamental_object_unref
3188
- * Set Value Func: regress_test_value_set_fundamental_object
3189
- * Get Value Func: regress_test_value_get_fundamental_object
3205
+ * RegressTestFundamentalObject: (ref-func regress_test_fundamental_object_ref) (unref-func regress_test_fundamental_object_unref) (set-value-func regress_test_value_set_fundamental_object) (get-value-func regress_test_value_get_fundamental_object)
3190
3206
  */
3191
3207
 
3192
3208
  GType
@@ -3360,6 +3376,37 @@ int regress_test_array_callback (RegressTestCallbackArray callback)
3360
3376
  return sum;
3361
3377
  }
3362
3378
 
3379
+ /**
3380
+ * regress_test_array_inout_callback:
3381
+ * @callback: (scope call):
3382
+ *
3383
+ */
3384
+ int
3385
+ regress_test_array_inout_callback (RegressTestCallbackArrayInOut callback)
3386
+ {
3387
+ int *ints;
3388
+ int length;
3389
+
3390
+ ints = g_new (int, 5);
3391
+ for (length = 0; length < 5; ++length)
3392
+ ints[length] = length - 2;
3393
+
3394
+ callback (&ints, &length);
3395
+
3396
+ g_assert_cmpint (length, ==, 4);
3397
+ for (length = 0; length < 4; ++length)
3398
+ g_assert_cmpint (ints[length], ==, length - 1);
3399
+
3400
+ callback (&ints, &length);
3401
+
3402
+ g_assert_cmpint (length, ==, 3);
3403
+ for (length = 0; length < 3; ++length)
3404
+ g_assert_cmpint (ints[length], ==, length);
3405
+
3406
+ g_free (ints);
3407
+ return length;
3408
+ }
3409
+
3363
3410
  /**
3364
3411
  * regress_test_simple_callback:
3365
3412
  * @callback: (scope call) (allow-none):
@@ -3853,6 +3900,7 @@ regress_test_torture_signature_2 (int x,
3853
3900
  *y = x;
3854
3901
  *z = x * 2;
3855
3902
  *q = g_utf8_strlen (foo, -1) + m;
3903
+ callback(user_data);
3856
3904
  notify (user_data);
3857
3905
  }
3858
3906
 
@@ -3999,9 +4047,12 @@ regress_has_parameter_named_attrs (int foo,
3999
4047
  /**
4000
4048
  * regress_test_versioning:
4001
4049
  *
4002
- * Since: 1.32.1
4003
- * Deprecated: 1.33.3: Use foobar instead
4004
- * Stability: Unstable
4050
+ * Since: 1.32.1: Actually, this function was introduced earlier
4051
+ * than this, but it didn't do anything before this version.
4052
+ * Deprecated: 1.33.3: This function has been deprecated,
4053
+ * because it sucks. Use foobar instead.
4054
+ * Stability: Unstable: Maybe someday we will find the time
4055
+ * to stabilize this function. Who knows?
4005
4056
  */
4006
4057
  void
4007
4058
  regress_test_versioning (void)