[vala] dova: Pass structs by value by default
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] dova: Pass structs by value by default
- Date: Sat, 13 Mar 2010 20:01:42 +0000 (UTC)
commit 04200577b8e337737ddde0599420e9cd6a9bb955
Author: Jürg Billeter <j bitron ch>
Date: Sat Mar 13 21:00:38 2010 +0100
dova: Pass structs by value by default
vala/valastruct.vala | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/vala/valastruct.vala b/vala/valastruct.vala
index 7f933f0..f5d7325 100644
--- a/vala/valastruct.vala
+++ b/vala/valastruct.vala
@@ -639,6 +639,9 @@ public class Vala.Struct : TypeSymbol {
// used by time_t
return false;
}
+ if (CodeContext.get ().profile == Profile.DOVA) {
+ return true;
+ }
return (boolean_type || integer_type || floating_type
|| get_attribute ("SimpleType") != null);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]