]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codewriter: Write lower_case_cprefix for classes
authorLuca Bruno <lucabru@src.gnome.org>
Mon, 27 Jun 2011 18:16:58 +0000 (20:16 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Mon, 27 Jun 2011 18:16:58 +0000 (20:16 +0200)
vala/valacodewriter.vala

index 34d426f701a28585bf773ec34e69be3044336434..dee01b59f244cf14dcfe6362d5cf53ccf172adc1 100644 (file)
@@ -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 ));
                }