vala r1231 - in trunk: . vala
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1231 - in trunk: . vala
- Date: Mon, 14 Apr 2008 21:28:36 +0100 (BST)
Author: juergbi
Date: Mon Apr 14 21:28:36 2008
New Revision: 1231
URL: http://svn.gnome.org/viewvc/vala?rev=1231&view=rev
Log:
2008-04-14 Juerg Billeter <j bitron ch>
* vala/valaparser.vala, vala/valapointertype.vala,
vala/valasymbolresolver.vala: mark pointers as nullable
Modified:
trunk/ChangeLog
trunk/vala/valaparser.vala
trunk/vala/valapointertype.vala
trunk/vala/valasymbolresolver.vala
Modified: trunk/vala/valaparser.vala
==============================================================================
--- trunk/vala/valaparser.vala (original)
+++ trunk/vala/valaparser.vala Mon Apr 14 21:28:36 2008
@@ -354,7 +354,7 @@
stars++;
}
- bool nullable = accept (TokenType.INTERR);
+ bool nullable = stars > 0 || accept (TokenType.INTERR);
int array_rank = 0;
if (accept (TokenType.OPEN_BRACKET)) {
Modified: trunk/vala/valapointertype.vala
==============================================================================
--- trunk/vala/valapointertype.vala (original)
+++ trunk/vala/valapointertype.vala Mon Apr 14 21:28:36 2008
@@ -34,6 +34,7 @@
public PointerType (DataType base_type) {
this.base_type = base_type;
+ nullable = true;
}
public override string to_string () {
Modified: trunk/vala/valasymbolresolver.vala
==============================================================================
--- trunk/vala/valasymbolresolver.vala (original)
+++ trunk/vala/valasymbolresolver.vala Mon Apr 14 21:28:36 2008
@@ -280,6 +280,7 @@
base_type.transfers_ownership = false;
base_type.is_ref = false;
base_type.is_out = false;
+ base_type.nullable = false;
type = new PointerType (base_type);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]