]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girwriter: namespace expects "c:symbol-prefixes" attribute
authorRico Tzschichholz <ricotz@ubuntu.com>
Wed, 31 Mar 2021 13:03:57 +0000 (15:03 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 4 Apr 2021 13:43:21 +0000 (15:43 +0200)
In addition to ef9c592dac6ee3a6db39e924de423e23e5f4a4ef

See https://gitlab.gnome.org/GNOME/vala/issues/1038

codegen/valagirwriter.vala
tests/girwriter/GirTest-1.0.gir-expected

index 0f72d22339d5b6554fa458319f16602b08fb74cb..713e923c2b1cb48a8e41d4b11ca39297225a2649 100644 (file)
@@ -351,7 +351,7 @@ public class Vala.GIRWriter : CodeVisitor {
                }
                string? csymbol_prefix = get_ccode_lower_case_suffix (ns);
                if (csymbol_prefix != null) {
-                       buffer.append_printf (" c:symbol-prefix=\"%s\"", csymbol_prefix);
+                       buffer.append_printf (" c:symbol-prefixes=\"%s\"", csymbol_prefix);
                }
                buffer.append_printf (">\n");
                indent++;
index 5579c2dd253b3f9d031fbc59ebe992e8dc19c190..845293d78d3119dc82088f1e5d4ed99c50990ca1 100644 (file)
@@ -4,7 +4,7 @@
 <include name="Gio" version="2.0"/>
 <package name="girtest"/>
 <c:include name="girtest.h"/>
-<namespace name="GirTest" version="1.0" shared-library="girtest" c:prefix="GirTest" c:identifier-prefixes="GirTest" c:symbol-prefix="gir_test">
+<namespace name="GirTest" version="1.0" shared-library="girtest" c:prefix="GirTest" c:identifier-prefixes="GirTest" c:symbol-prefixes="gir_test">
        <function name="nested_function" c:identifier="gir_test_nested_function">
                <return-value transfer-ownership="full">
                        <type name="none" c:type="void"/>