[vala/staging] girwriter: namespace expects "c:symbol-prefixes" attribute



commit e7a099f7b02f9ec8432de622e0e840d557fbb8ac
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Wed Mar 31 15:03:57 2021 +0200

    girwriter: namespace expects "c:symbol-prefixes" attribute
    
    In addition to ef9c592dac6ee3a6db39e924de423e23e5f4a4ef
    
    See https://gitlab.gnome.org/GNOME/vala/issues/1038

 codegen/valagirwriter.vala               | 2 +-
 tests/girwriter/GirTest-1.0.gir-expected | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/codegen/valagirwriter.vala b/codegen/valagirwriter.vala
index 480a99247..ac4cc581c 100644
--- a/codegen/valagirwriter.vala
+++ b/codegen/valagirwriter.vala
@@ -361,7 +361,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++;
diff --git a/tests/girwriter/GirTest-1.0.gir-expected b/tests/girwriter/GirTest-1.0.gir-expected
index 5579c2dd2..845293d78 100644
--- a/tests/girwriter/GirTest-1.0.gir-expected
+++ b/tests/girwriter/GirTest-1.0.gir-expected
@@ -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"/>


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