[vala] dova: Accept volatile modifier for fields and parameters
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] dova: Accept volatile modifier for fields and parameters
- Date: Sat, 5 Jun 2010 08:44:50 +0000 (UTC)
commit e86a3dcb53517b8ef90a0e459b5810bb6fb473f3
Author: Jürg Billeter <j bitron ch>
Date: Sat Jun 5 10:11:21 2010 +0200
dova: Accept volatile modifier for fields and parameters
vala/valaparser.vala | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/vala/valaparser.vala b/vala/valaparser.vala
index 742287e..c80b4e0 100644
--- a/vala/valaparser.vala
+++ b/vala/valaparser.vala
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]