You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2016/02/25 00:07:29 UTC

[02/20] lucy-clownfish git commit: `To_Host` for Python returns incref'd self.

`To_Host` for Python returns incref'd self.

The default implementation for `To_Host` for Python just returns the
result of calling INCREF on the invocant.


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

Branch: refs/heads/master
Commit: 3e4952ca641308a8704fa41c51786dace4389ce7
Parents: 2aab6ef
Author: Marvin Humphrey <ma...@rectangular.com>
Authored: Mon Jan 25 16:41:37 2016 -0800
Committer: Marvin Humphrey <ma...@rectangular.com>
Committed: Tue Feb 23 18:22:02 2016 -0800

----------------------------------------------------------------------
 runtime/python/cfext/CFBind.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/3e4952ca/runtime/python/cfext/CFBind.c
----------------------------------------------------------------------
diff --git a/runtime/python/cfext/CFBind.c b/runtime/python/cfext/CFBind.c
index 7653325..ef0d094 100644
--- a/runtime/python/cfext/CFBind.c
+++ b/runtime/python/cfext/CFBind.c
@@ -405,9 +405,7 @@ cfish_dec_refcount(void *vself) {
 
 void*
 CFISH_Obj_To_Host_IMP(cfish_Obj *self) {
-    CFISH_UNUSED_VAR(self);
-    CFISH_THROW(CFISH_ERR, "TODO");
-    CFISH_UNREACHABLE_RETURN(void*);
+    return CFISH_INCREF(self);
 }
 
 /**** Class ****************************************************************/