You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2013/05/28 19:49:12 UTC

[lucy-commits] [4/4] git commit: refs/heads/master - Visibility of final methods

Visibility of final methods

Implementing functions of final methods must be visible since they're
called directly.


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/926d7709
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/926d7709
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/926d7709

Branch: refs/heads/master
Commit: 926d770978ecb03f9b967e669d4d3de2cbfc6a9a
Parents: 8f9c845
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Tue May 28 19:39:39 2013 +0200
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Tue May 28 19:45:07 2013 +0200

----------------------------------------------------------------------
 clownfish/compiler/src/CFCBindClass.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/926d7709/clownfish/compiler/src/CFCBindClass.c
----------------------------------------------------------------------
diff --git a/clownfish/compiler/src/CFCBindClass.c b/clownfish/compiler/src/CFCBindClass.c
index f83a5c1..2cd5efd 100644
--- a/clownfish/compiler/src/CFCBindClass.c
+++ b/clownfish/compiler/src/CFCBindClass.c
@@ -467,6 +467,9 @@ S_sub_declarations(CFCBindClass *self) {
     for (int i = 0; fresh_methods[i] != NULL; i++) {
         CFCMethod *method = fresh_methods[i];
         char *dec = CFCBindFunc_func_declaration((CFCFunction*)method);
+        if (CFCMethod_final(method)) {
+            declarations = CFCUtil_cat(declarations, PREFIX, "VISIBLE ", NULL);
+        }
         declarations = CFCUtil_cat(declarations, dec, "\n\n", NULL);
         FREEMEM(dec);
     }