[vala] vapigen: Support instance_pos attribute for delegates



commit d04d79d6d50b600c10b4918e07fa459bd1878132
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 3b15479..a309e9e 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
@@ -305,6 +305,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]