[vala/0.34] girparser: Add metadata-support for "returns_modified_pointer"
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.34] girparser: Add metadata-support for "returns_modified_pointer"
- Date: Thu, 16 Mar 2017 07:16:14 +0000 (UTC)
commit 2ebbae3fc39977d16ec606735deeb3797cd5adbd
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Mar 8 10:28:37 2017 +0100
girparser: Add metadata-support for "returns_modified_pointer"
https://bugzilla.gnome.org/show_bug.cgi?id=759255
vala/valagirparser.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index b0ae2b0..5bc4028 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -81,6 +81,7 @@ public class Vala.GirParser : CodeVisitor {
FLOATING,
TYPE_ID,
RETURN_VOID,
+ RETURNS_MODIFIED_POINTER,
DELEGATE_TARGET_CNAME,
FINISH_VFUNC_NAME;
@@ -921,6 +922,9 @@ public class Vala.GirParser : CodeVisitor {
if (metadata.has_argument (ArgumentType.DESTROYS_INSTANCE)) {
m.set_attribute ("DestroysInstance",
metadata.get_bool (ArgumentType.DESTROYS_INSTANCE));
}
+ if (metadata.has_argument
(ArgumentType.RETURNS_MODIFIED_POINTER)) {
+ m.set_attribute ("ReturnsModifiedPointer",
metadata.get_bool (ArgumentType.RETURNS_MODIFIED_POINTER));
+ }
// merge custom vfunc
if (metadata.has_argument (ArgumentType.VFUNC_NAME)) {
var vfunc = parent.lookup (metadata.get_string
(ArgumentType.VFUNC_NAME));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]