vala r2078 - in trunk: . vapigen
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r2078 - in trunk: . vapigen
- Date: Fri, 28 Nov 2008 19:47:34 +0000 (UTC)
Author: juergbi
Date: Fri Nov 28 19:47:34 2008
New Revision: 2078
URL: http://svn.gnome.org/viewvc/vala?rev=2078&view=rev
Log:
2008-11-28 JÃrg Billeter <j bitron ch>
* vapigen/valagirparser.vala:
Support nullable parameters
Modified:
trunk/ChangeLog
trunk/vapigen/valagirparser.vala
Modified: trunk/vapigen/valagirparser.vala
==============================================================================
--- trunk/vapigen/valagirparser.vala (original)
+++ trunk/vapigen/valagirparser.vala Fri Nov 28 19:47:34 2008
@@ -369,6 +369,7 @@
string name = reader.get_attribute ("name");
string direction = reader.get_attribute ("direction");
string transfer = reader.get_attribute ("transfer-ownership");
+ string allow_none = reader.get_attribute ("allow-none");
next ();
if (reader.name == "varargs") {
start_element ("varargs");
@@ -380,6 +381,9 @@
if (transfer == "full") {
type.value_owned = true;
}
+ if (allow_none == "1") {
+ type.nullable = true;
+ }
param = new FormalParameter (name, type, get_current_src ());
if (direction == "out") {
param.direction = ParameterDirection.OUT;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]