]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
dova: Do not change cname of basic types in code generator
authorJürg Billeter <j@bitron.ch>
Sat, 17 Jul 2010 09:00:23 +0000 (11:00 +0200)
committerJürg Billeter <j@bitron.ch>
Sat, 17 Jul 2010 10:35:41 +0000 (12:35 +0200)
codegen/valadovastructmodule.vala

index f610b40f6f47a930554693391417916e099810bb..1497a3a4d6822afe50cb4d83bfff34d270f31d3a 100644 (file)
@@ -41,19 +41,15 @@ internal class Vala.DovaStructModule : DovaBaseModule {
 
                if (st.is_boolean_type ()) {
                        // typedef for boolean types
-                       st.set_cname ("bool");
                        return;
                } else if (st.is_integer_type ()) {
                        // typedef for integral types
-                       st.set_cname ("%sint%d_t".printf (st.signed ? "" : "u", st.width));
                        return;
                } else if (st.is_decimal_floating_type ()) {
                        // typedef for decimal floating types
-                       st.set_cname ("decimal%d".printf (st.width));
                        return;
                } else if (st.is_floating_type ()) {
                        // typedef for generic floating types
-                       st.set_cname (st.width == 64 ? "double" : "float");
                        return;
                }