From: Jürg Billeter Date: Sat, 13 Aug 2011 18:28:05 +0000 (+0200) Subject: dova: Do not require double in dova profile X-Git-Tag: 0.13.2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df753d225f8d5cf3d6cdd387ed36b100d6415d1f;p=thirdparty%2Fvala.git dova: Do not require double in dova profile --- diff --git a/codegen/valadovabasemodule.vala b/codegen/valadovabasemodule.vala index adc0c31a8..bb85873a7 100644 --- a/codegen/valadovabasemodule.vala +++ b/codegen/valadovabasemodule.vala @@ -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"); diff --git a/vala/valasemanticanalyzer.vala b/vala/valasemanticanalyzer.vala index 48cd70da9..381a2eb9c 100644 --- a/vala/valasemanticanalyzer.vala +++ b/vala/valasemanticanalyzer.vala @@ -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;