]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
dova: Do not require double in dova profile
authorJürg Billeter <j@bitron.ch>
Sat, 13 Aug 2011 18:28:05 +0000 (20:28 +0200)
committerJürg Billeter <j@bitron.ch>
Sat, 13 Aug 2011 18:28:05 +0000 (20:28 +0200)
codegen/valadovabasemodule.vala
vala/valasemanticanalyzer.vala

index adc0c31a83ef7fcb8e9c5c90cee19c21a99ca56c..bb85873a7453881686246bea77bec115d4922120 100644 (file)
@@ -176,8 +176,6 @@ public abstract class Vala.DovaBaseModule : CodeGenerator {
        public DataType int_type;
        public DataType uint_type;
        public DataType string_type;
-       public DataType float_type;
-       public DataType double_type;
        public Class object_class;
        public Class type_class;
        public Class value_class;
@@ -246,8 +244,6 @@ public abstract class Vala.DovaBaseModule : CodeGenerator {
                char_type = new IntegerType ((Struct) root_symbol.scope.lookup ("char"));
                int_type = new IntegerType ((Struct) root_symbol.scope.lookup ("int"));
                uint_type = new IntegerType ((Struct) root_symbol.scope.lookup ("uint"));
-               float_type = new FloatingType ((Struct) root_symbol.scope.lookup ("float"));
-               double_type = new FloatingType ((Struct) root_symbol.scope.lookup ("double"));
                string_type = new ObjectType ((Class) root_symbol.scope.lookup ("string"));
 
                var dova_ns = (Namespace) root_symbol.scope.lookup ("Dova");
index 48cd70da9f7111228a19412e191ad9946518e227..381a2eb9c5143d9f488574bb420eab07beb448c7 100644 (file)
@@ -185,7 +185,6 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
                string_type = new ObjectType ((Class) root_symbol.scope.lookup ("string"));
                int_type = new IntegerType ((Struct) root_symbol.scope.lookup ("int"));
                uint_type = new IntegerType ((Struct) root_symbol.scope.lookup ("uint"));
-               double_type = new FloatingType ((Struct) root_symbol.scope.lookup ("double"));
 
                if (context.profile != Profile.DOVA) {
                        uchar_type = new IntegerType ((Struct) root_symbol.scope.lookup ("uchar"));
@@ -196,6 +195,7 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
                        ulong_type = new IntegerType ((Struct) root_symbol.scope.lookup ("ulong"));
                        size_t_type = new IntegerType ((Struct) root_symbol.scope.lookup ("size_t"));
                        ssize_t_type = new IntegerType ((Struct) root_symbol.scope.lookup ("ssize_t"));
+                       double_type = new FloatingType ((Struct) root_symbol.scope.lookup ("double"));
                } else {
                        long_type = int_type;
                        ulong_type = uint_type;