[vala] dova: Fix delegate declarations
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] dova: Fix delegate declarations
- Date: Sun, 11 Jul 2010 13:35:35 +0000 (UTC)
commit bec16ce2d2e5e58a405351bd4d4c6693f41cee29
Author: Jürg Billeter <j bitron ch>
Date: Sun Jul 11 15:35:14 2010 +0200
dova: Fix delegate declarations
codegen/valadovadelegatemodule.vala | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valadovadelegatemodule.vala b/codegen/valadovadelegatemodule.vala
index 6a9d62c..6be32ec 100644
--- a/codegen/valadovadelegatemodule.vala
+++ b/codegen/valadovadelegatemodule.vala
@@ -41,9 +41,15 @@ internal class Vala.DovaDelegateModule : DovaValueModule {
generate_method_declaration ((Method) object_class.scope.lookup ("unref"), decl_space);
var type_fun = new CCodeFunction ("%s_type_get".printf (d.get_lower_case_cname ()), "DovaType *");
+ if (d.is_internal_symbol ()) {
+ type_fun.modifiers = CCodeModifiers.STATIC;
+ }
decl_space.add_type_member_declaration (type_fun);
var type_init_fun = new CCodeFunction ("%s_type_init".printf (d.get_lower_case_cname ()));
+ if (d.is_internal_symbol ()) {
+ type_init_fun.modifiers = CCodeModifiers.STATIC;
+ }
type_init_fun.add_parameter (new CCodeFormalParameter ("type", "DovaType *"));
decl_space.add_type_member_declaration (type_init_fun);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]