[vala] glib-2.0: Set lvalue_access to false for va_list
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] glib-2.0: Set lvalue_access to false for va_list
- Date: Fri, 15 Jul 2011 16:53:29 +0000 (UTC)
commit 83afc92daf8b4660c99cfea0f06c5b2a3d8a1aff
Author: Luca Bruno <lucabru src gnome org>
Date: Fri Jul 15 18:24:15 2011 +0200
glib-2.0: Set lvalue_access to false for va_list
Fixes bug 654646.
tests/Makefile.am | 1 +
tests/structs/bug654646.vala | 10 ++++++++++
vapi/glib-2.0.vapi | 2 +-
3 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 0291188..f77549b 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -67,6 +67,7 @@ TESTS = \
structs/bug622422.vala \
structs/bug623092.vala \
structs/bug651441.vala \
+ structs/bug654646.vala \
delegates/delegates.vala \
delegates/bug539166.vala \
delegates/bug595610.vala \
diff --git a/tests/structs/bug654646.vala b/tests/structs/bug654646.vala
new file mode 100644
index 0000000..3a65974
--- /dev/null
+++ b/tests/structs/bug654646.vala
@@ -0,0 +1,10 @@
+void foo (int i, ...) {
+ va_list v = va_list ();
+ bar (v);
+}
+
+void bar (va_list v) {
+}
+
+void main () {
+}
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 8ce2417..34de1a4 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -793,7 +793,7 @@ public struct time_t {
}
[SimpleType]
-[CCode (cheader_filename="stdarg.h", cprefix="va_", has_type_id = false, destroy_function = "va_end")]
+[CCode (cheader_filename="stdarg.h", cprefix="va_", has_type_id = false, destroy_function = "va_end", lvalue_access = false)]
public struct va_list {
[CCode (cname = "va_start")]
public va_list ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]