]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gidlparser: Fix null-terminated array parameters in delegates
authorMichal Hruby <michal.mhr@gmail.com>
Thu, 24 Feb 2011 11:27:59 +0000 (12:27 +0100)
committerMichal Hruby <michal.mhr@gmail.com>
Thu, 24 Feb 2011 11:27:59 +0000 (12:27 +0100)
vapigen/valagidlparser.vala

index 1e016389bcf6de171cdeaa554fe671e63cfb99c9..b188330f8ad11b36656154a6d69dbad77f06176a 100644 (file)
@@ -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);
                                                }