[vala] codewriter: Write lower_case_cprefix for classes
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] codewriter: Write lower_case_cprefix for classes
- Date: Mon, 27 Jun 2011 18:34:36 +0000 (UTC)
commit ccd51d6c1c2dfb70fdfcbaba7ce5ee734ee92e77
Author: Luca Bruno <lucabru src gnome org>
Date: Mon Jun 27 20:16:58 2011 +0200
codewriter: Write lower_case_cprefix for classes
vala/valacodewriter.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala
index 34d426f..dee01b5 100644
--- a/vala/valacodewriter.vala
+++ b/vala/valacodewriter.vala
@@ -288,6 +288,10 @@ public class Vala.CodeWriter : CodeVisitor {
write_string ("const_cname = \"%s\", ".printf (cl.const_cname));
}
+ if (cl.get_lower_case_cprefix () != "%s_".printf (cl.get_lower_case_cname (null))) {
+ write_string ("cprefix = \"%s\", ".printf (cl.get_lower_case_cprefix ()));
+ }
+
if (cl.type_check_function != null) {
write_string ("type_check_function = \"%s\", ".printf (cl.type_check_function ));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]