]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
dova: Accept volatile modifier for fields and parameters
authorJürg Billeter <j@bitron.ch>
Sat, 5 Jun 2010 08:11:21 +0000 (10:11 +0200)
committerJürg Billeter <j@bitron.ch>
Sat, 5 Jun 2010 08:12:11 +0000 (10:12 +0200)
vala/valaparser.vala

index 742287edf35350459ff76388ce793216b1e66a9a..c80b4e093ce968398865bb2d575d381d149b2523 100644 (file)
@@ -2389,6 +2389,9 @@ public class Vala.Parser : CodeVisitor {
                var begin = get_location ();
                var access = parse_access_modifier ();
                var flags = parse_member_declaration_modifiers ();
+               if (context.profile == Profile.DOVA) {
+                       accept (TokenType.VOLATILE);
+               }
                var type = parse_type (true, true);
                string id = parse_identifier ();
 
@@ -3129,6 +3132,9 @@ public class Vala.Parser : CodeVisitor {
                        direction = ParameterDirection.REF;
                }
 
+               if (context.profile == Profile.DOVA) {
+                       accept (TokenType.VOLATILE);
+               }
                DataType type;
                if (direction == ParameterDirection.IN) {
                        // in parameters are unowned by default