summaryrefslogtreecommitdiff
path: root/vala/valafloatingtype.vala
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2009-01-03 14:02:48 +0000
committerJürg Billeter <juergbi@src.gnome.org>2009-01-03 14:02:48 +0000
commitd19da45e60ffec828f352572249cfbc46d9cbb08 (patch)
tree7b94163ed5b453b95b95636cebc15221f65e9dcf /vala/valafloatingtype.vala
parentf6bf92b12f8ee41102136e12aa5a98275c24e812 (diff)
downloadvala-d19da45e60ffec828f352572249cfbc46d9cbb08.tar.gz
Add BooleanType, EnumValueType, FloatingType, and StructValueType as
2009-01-03 Jürg Billeter <j@bitron.ch> * vala/Makefile.am: * vala/valaarraytype.vala: * vala/valabinaryexpression.vala: * vala/valabooleantype.vala: * vala/valacharacterliteral.vala: * vala/valadostatement.vala: * vala/valaenum.vala: * vala/valaenumvaluetype.vala: * vala/valaerrordomain.vala: * vala/valafloatingtype.vala: * vala/valaintegerliteral.vala: * vala/valaintegertype.vala: * vala/valaobjectcreationexpression.vala: * vala/valarealliteral.vala: * vala/valasemanticanalyzer.vala: * vala/valastruct.vala: * vala/valastructvaluetype.vala: * vala/valasymbolresolver.vala: * vala/valavaluetype.vala: * gobject/valaccodebasemodule.vala: * gobject/valaccodemethodmodule.vala: * vapi/glib-2.0.vapi: Add BooleanType, EnumValueType, FloatingType, and StructValueType as ValueType subclasses svn path=/trunk/; revision=2256
Diffstat (limited to 'vala/valafloatingtype.vala')
-rw-r--r--vala/valafloatingtype.vala40
1 files changed, 40 insertions, 0 deletions
diff --git a/vala/valafloatingtype.vala b/vala/valafloatingtype.vala
new file mode 100644
index 000000000..83c4abee6
--- /dev/null
+++ b/vala/valafloatingtype.vala
@@ -0,0 +1,40 @@
+/* valafloatingtype.vala
+ *
+ * Copyright (C) 2009 Jürg Billeter
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Author:
+ * Jürg Billeter <j@bitron.ch>
+ */
+
+using GLib;
+
+/**
+ * A floating-point type.
+ */
+public class Vala.FloatingType : ValueType {
+ public FloatingType (Struct type_symbol) {
+ base (type_symbol);
+ }
+
+ public override DataType copy () {
+ var result = new FloatingType ((Struct) type_symbol);
+ result.source_reference = source_reference;
+ result.value_owned = value_owned;
+ result.nullable = nullable;
+ return result;
+ }
+}