summaryrefslogtreecommitdiff
path: root/tests/scanner/Annotation-1.0-expected.gir
diff options
context:
space:
mode:
authorGiovanni Campagna <gcampagna@src.gnome.org>2011-06-01 16:59:17 +0200
committerColin Walters <walters@verbum.org>2011-06-04 15:15:12 -0400
commit3e0292cd66752489d5b05bed57abffec0315b3ae (patch)
tree3b0c9e2cb1f8dde640e0525b2f6ad588000fe9c3 /tests/scanner/Annotation-1.0-expected.gir
parent7c93dc9534a4de5599f574043dcb688b8443ebad (diff)
downloadgobject-introspection-3e0292cd66752489d5b05bed57abffec0315b3ae.tar.gz
Always add a zero-terminated attribute when it cannot be implied
g-ir-compiler assumes that an array is zero terminated when the attribute is absent and there is no other attribute (length and fixed-size), but g-ir-scanner only added the attribute when it is 0. This means that an explicit zero-terminated=1 annotation would have had no effect. Fix that and at the same time ensure that all other arrays are not zero-terminated by default. https://bugzilla.gnome.org/show_bug.cgi?id=646635
Diffstat (limited to 'tests/scanner/Annotation-1.0-expected.gir')
-rw-r--r--tests/scanner/Annotation-1.0-expected.gir18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/scanner/Annotation-1.0-expected.gir b/tests/scanner/Annotation-1.0-expected.gir
index a760a19a..f650c256 100644
--- a/tests/scanner/Annotation-1.0-expected.gir
+++ b/tests/scanner/Annotation-1.0-expected.gir
@@ -146,7 +146,7 @@ and/or use gtk-doc annotations. -->
<parameters>
<parameter name="nums" transfer-ownership="none">
<doc xml:whitespace="preserve">Sequence of numbers</doc>
- <array c:type="int*">
+ <array zero-terminated="0" c:type="int*">
<type name="gint" c:type="int"/>
</array>
</parameter>
@@ -180,7 +180,7 @@ and/or use gtk-doc annotations. -->
<parameters>
<parameter name="nums" transfer-ownership="none">
<doc xml:whitespace="preserve">Sequence of numbers that are zero-terminated</doc>
- <array length="1" c:type="int*">
+ <array length="1" zero-terminated="1" c:type="int*">
<type name="gint" c:type="int"/>
</array>
</parameter>
@@ -377,7 +377,7 @@ each string needs to be freed.</doc>
caller-allocates="0"
transfer-ownership="full">
<doc xml:whitespace="preserve">Argument vector</doc>
- <array length="0" c:type="char***">
+ <array length="0" zero-terminated="1" c:type="char***">
<type name="utf8" c:type="char**"/>
</array>
</parameter>
@@ -391,7 +391,7 @@ each string needs to be freed.</doc>
<parameters>
<parameter name="data" transfer-ownership="none">
<doc xml:whitespace="preserve">The data</doc>
- <array length="1" c:type="guchar*">
+ <array length="1" zero-terminated="0" c:type="guchar*">
<type name="guint8" c:type="guchar"/>
</array>
</parameter>
@@ -409,7 +409,7 @@ each string needs to be freed.</doc>
<parameters>
<parameter name="data" transfer-ownership="none">
<doc xml:whitespace="preserve">The data</doc>
- <array length="1" c:type="gchar*">
+ <array length="1" zero-terminated="0" c:type="gchar*">
<type name="gint8"/>
</array>
</parameter>
@@ -428,7 +428,7 @@ type.</doc>
<parameters>
<parameter name="data" transfer-ownership="none">
<doc xml:whitespace="preserve">The data</doc>
- <array length="1" c:type="gpointer">
+ <array length="1" zero-terminated="0" c:type="gpointer">
<type name="guint8"/>
</array>
</parameter>
@@ -687,7 +687,7 @@ detection, and fixing it via annotations.</doc>
caller-allocates="0"
transfer-ownership="full">
<doc xml:whitespace="preserve">The arguments.</doc>
- <array length="0" c:type="char***">
+ <array length="0" zero-terminated="0" c:type="char***">
<type name="utf8" c:type="char**"/>
</array>
</parameter>
@@ -723,7 +723,7 @@ detection, and fixing it via annotations.</doc>
<function name="return_array" c:identifier="annotation_return_array">
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">The return value</doc>
- <array length="0" c:type="char**">
+ <array length="0" zero-terminated="0" c:type="char**">
<type name="utf8"/>
</array>
</return-value>
@@ -765,7 +765,7 @@ detection, and fixing it via annotations.</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="properties" transfer-ownership="none">
- <array length="0" c:type="gchar*">
+ <array length="0" zero-terminated="0" c:type="gchar*">
<type name="utf8"/>
</array>
</parameter>