[vala] girparser: Drop the parameter before the ellipsis having first_ prefix
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] girparser: Drop the parameter before the ellipsis having first_ prefix
- Date: Sat, 14 May 2011 17:50:01 +0000 (UTC)
commit f112e9b7f590357eb6a137834b985eec74fcb46a
Author: Luca Bruno <lucabru src gnome org>
Date: Sat May 14 19:47:59 2011 +0200
girparser: Drop the parameter before the ellipsis having first_ prefix
vala/valagirparser.vala | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 21b2546..d29851f 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -2790,6 +2790,15 @@ public class Vala.GirParser : CodeVisitor {
}
}
}
+ if (parameters.size > 1) {
+ ParameterInfo last_param = parameters[parameters.size-1];
+ if (last_param.param.ellipsis) {
+ var first_vararg_param = parameters[parameters.size-2];
+ if (first_vararg_param.param.name.has_prefix ("first_")) {
+ first_vararg_param.keep = false;
+ }
+ }
+ }
int i = 0, j=1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]