2007-11-24 Jürg Billeter <j@bitron.ch>
+ * vapigen/valagidlparser.vala: fix is_out support for parameters
+
+2007-11-24 Jürg Billeter <j@bitron.ch>
+
* vapigen/valagidlparser.vala: support is_out for parameters in the
metadata
return_type.array_rank = 1;
return_type.is_out = false;
}
- } else if (nv[0] == "is_out") {
- if (eval (nv[1]) == "1") {
- return_type.is_out = true;
- }
}
}
}
foreach (string attr in attributes) {
var nv = attr.split ("=", 2);
if (nv[0] == "is_array") {
- p.type_reference.array_rank = 1;
- p.type_reference.is_out = false;
+ if (eval (nv[1]) == "1") {
+ p.type_reference.array_rank = 1;
+ p.type_reference.is_out = false;
+ }
+ } else if (nv[0] == "is_out") {
+ if (eval (nv[1]) == "1") {
+ p.type_reference.is_out = true;
+ }
}
}
}