[vala] dova: Do not change cname of basic types in code generator
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] dova: Do not change cname of basic types in code generator
- Date: Sat, 17 Jul 2010 10:37:09 +0000 (UTC)
commit 1ee96482592a2a4d4de074c2b195153a770d2bb6
Author: Jürg Billeter <j bitron ch>
Date: Sat Jul 17 11:00:23 2010 +0200
dova: Do not change cname of basic types in code generator
codegen/valadovastructmodule.vala | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/codegen/valadovastructmodule.vala b/codegen/valadovastructmodule.vala
index f610b40..1497a3a 100644
--- a/codegen/valadovastructmodule.vala
+++ b/codegen/valadovastructmodule.vala
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]