[vala/wip/issue/1038: 4/4] SQUASH Add c:symbol-prefix to <namespace>
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/issue/1038: 4/4] SQUASH Add c:symbol-prefix to <namespace>
- Date: Mon, 20 Jul 2020 10:16:13 +0000 (UTC)
commit 0ca0137c46b8f87a224e7252b6c08cb5d96ab848
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Jul 20 12:12:11 2020 +0200
SQUASH Add c:symbol-prefix to <namespace>
codegen/valagirwriter.vala | 1 +
tests/girwriter/GirTest-1.0.gir-expected | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/codegen/valagirwriter.vala b/codegen/valagirwriter.vala
index 9660b7630..28082c5dc 100644
--- a/codegen/valagirwriter.vala
+++ b/codegen/valagirwriter.vala
@@ -349,6 +349,7 @@ public class Vala.GIRWriter : CodeVisitor {
buffer.append_printf (" c:prefix=\"%s\"", cprefix);
buffer.append_printf (" c:identifier-prefixes=\"%s\"", cprefix);
}
+ buffer.append_printf (" c:symbol-prefix=\"%s\"", get_ccode_lower_case_suffix (ns));
buffer.append_printf (">\n");
indent++;
diff --git a/tests/girwriter/GirTest-1.0.gir-expected b/tests/girwriter/GirTest-1.0.gir-expected
index 181a7bae4..6977d77e8 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">
+<namespace name="GirTest" version="1.0" shared-library="girtest" c:prefix="GirTest"
c:identifier-prefixes="GirTest" c:symbol-prefix="gir_test">
<enumeration name="EnumTest" c:type="GirTestEnumTest" glib:type-name="GirTestEnumTest"
glib:get-type="gir_test_enum_test_get_type">
<member name="value1" c:identifier="GIR_TEST_ENUM_TEST_VALUE1" value="0"/>
<member name="value2" c:identifier="GIR_TEST_ENUM_TEST_VALUE2" value="1"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]