Revert "Temp hack to omit callback functions" This reverts commit 305412a956dcda46c89acbca6dd615b23639cf2e.
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/272715c7 Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/272715c7 Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/272715c7 Branch: refs/heads/c-bindings-wip1 Commit: 272715c7e9ed685e88b4dbbd7602887fc4ac6af5 Parents: fd1e1c4 Author: Nick Wellnhofer <[email protected]> Authored: Mon Dec 24 00:57:14 2012 +0100 Committer: Nick Wellnhofer <[email protected]> Committed: Mon Dec 24 00:57:14 2012 +0100 ---------------------------------------------------------------------- clownfish/compiler/src/CFCBindClass.c | 4 ++-- clownfish/compiler/src/CFCBindMethod.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy/blob/272715c7/clownfish/compiler/src/CFCBindClass.c ---------------------------------------------------------------------- diff --git a/clownfish/compiler/src/CFCBindClass.c b/clownfish/compiler/src/CFCBindClass.c index 3ad6178..0301910 100644 --- a/clownfish/compiler/src/CFCBindClass.c +++ b/clownfish/compiler/src/CFCBindClass.c @@ -341,11 +341,11 @@ CFCBindClass_to_c_data(CFCBindClass *self) { } // Declare (but don't define) callback. - /*if (CFCMethod_novel(method) && !CFCMethod_final(method)) { + if (CFCMethod_novel(method) && !CFCMethod_final(method)) { char *cb_dec = CFCBindMeth_callback_dec(method); cb_funcs = CFCUtil_cat(cb_funcs, cb_dec, "\n", NULL); FREEMEM(cb_dec); - }*/ + } // Define MethodSpec struct. if (meth_num != 0) { http://git-wip-us.apache.org/repos/asf/lucy/blob/272715c7/clownfish/compiler/src/CFCBindMethod.c ---------------------------------------------------------------------- diff --git a/clownfish/compiler/src/CFCBindMethod.c b/clownfish/compiler/src/CFCBindMethod.c index c89af0a..85ac99e 100644 --- a/clownfish/compiler/src/CFCBindMethod.c +++ b/clownfish/compiler/src/CFCBindMethod.c @@ -193,7 +193,7 @@ CFCBindMeth_spec_def(CFCMethod *method) { int is_novel = CFCMethod_novel(method); const char *full_override_sym = "NULL"; - if (0 && is_novel && !CFCMethod_final(method)) { + if (is_novel && !CFCMethod_final(method)) { full_override_sym = CFCMethod_full_override_sym(method); }
