[vala] dova: Do not require double in dova profile



commit df753d225f8d5cf3d6cdd387ed36b100d6415d1f
Author: JÃrg Billeter <j bitron ch>
Date:   Sat Aug 13 20:28:05 2011 +0200

    dova: Do not require double in dova profile

 codegen/valadovabasemodule.vala |    4 ----
 vala/valasemanticanalyzer.vala  |    2 +-
 2 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/codegen/valadovabasemodule.vala b/codegen/valadovabasemodule.vala
index adc0c31..bb85873 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 48cd70d..381a2eb 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]