[vala/0.8] vapigen: Support instance_pos attribute for delegates
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.8] vapigen: Support instance_pos attribute for delegates
- Date: Wed, 21 Apr 2010 13:14:12 +0000 (UTC)
commit 358c2db6ac22189f50b12d90b35ad0a2913f8729
Author: Jürg Billeter <j bitron ch>
Date: Fri Apr 16 22:29:50 2010 +0200
vapigen: Support instance_pos attribute for delegates
vapigen/valagidlparser.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala
index 6d3e03d..9e8ddcb 100644
--- a/vapigen/valagidlparser.vala
+++ b/vapigen/valagidlparser.vala
@@ -1,6 +1,6 @@
/* valagidlparser.vala
*
- * Copyright (C) 2006-2009 Jürg Billeter
+ * Copyright (C) 2006-2010 Jürg Billeter
* Copyright (C) 2006-2008 Raffaele Sandrini
*
* This library is free software; you can redistribute it and/or
@@ -322,6 +322,8 @@ public class Vala.GIdlParser : CodeVisitor {
if (eval (nv[1]) == "1") {
return_type.value_owned = true;
}
+ } else if (nv[0] == "instance_pos") {
+ cb.cinstance_parameter_position = eval (nv[1]).to_double ();
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]