[vala/0.10] gidlparser: Fix null-terminated array parameters in delegates
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.10] gidlparser: Fix null-terminated array parameters in delegates
- Date: Sat, 12 Mar 2011 15:11:45 +0000 (UTC)
commit f110f92bed89bf5ce7cc026b14c9f20b9c96a967
Author: Michal Hruby <michal mhr gmail com>
Date: Thu Feb 24 12:27:59 2011 +0100
gidlparser: Fix null-terminated array parameters in delegates
vapigen/valagidlparser.vala | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala
index 194d2d7..6308087 100644
--- a/vapigen/valagidlparser.vala
+++ b/vapigen/valagidlparser.vala
@@ -409,6 +409,13 @@ public class Vala.GIdlParser : CodeVisitor {
if (eval (nv[1]) == "1") {
p.no_array_length = true;
}
+ } else if (nv[0] == "array_length_type") {
+ p.array_length_type = eval (nv[1]);
+ } else if (nv[0] == "array_null_terminated") {
+ if (eval (nv[1]) == "1") {
+ p.no_array_length = true;
+ p.array_null_terminated = true;
+ }
} else if (nv[0] == "type_name") {
var sym = new UnresolvedSymbol (null, eval (nv[1]));
if (param_type is UnresolvedType) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]