[vala] gidlparser: Fix null-terminated array parameters in delegates
- From: Michal Hruby <mhruby src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] gidlparser: Fix null-terminated array parameters in delegates
- Date: Thu, 24 Feb 2011 12:00:19 +0000 (UTC)
commit 8537879d77f440d7bdbcecdc14b7c079b66447ff
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 1e01638..b188330 100644
--- a/vapigen/valagidlparser.vala
+++ b/vapigen/valagidlparser.vala
@@ -571,6 +571,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") {
p.variable_type = param_type = parse_type_from_string (eval (nv[1]), false);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]