Fix Python bindings

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

Branch: refs/heads/master
Commit: aad2186fbf819ca0407d5736d6f33a88644f247f
Parents: ace2801
Author: Nick Wellnhofer <[email protected]>
Authored: Fri Aug 26 13:58:53 2016 +0200
Committer: Nick Wellnhofer <[email protected]>
Committed: Fri Aug 26 19:15:16 2016 +0200

----------------------------------------------------------------------
 runtime/python/cfext/CFBind.c | 3 +--
 runtime/python/setup.py       | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/aad2186f/runtime/python/cfext/CFBind.c
----------------------------------------------------------------------
diff --git a/runtime/python/cfext/CFBind.c b/runtime/python/cfext/CFBind.c
index 536cb1d..ab0669f 100644
--- a/runtime/python/cfext/CFBind.c
+++ b/runtime/python/cfext/CFBind.c
@@ -14,7 +14,6 @@
  * limitations under the License.
  */
 
-#define CFP_CFISH
 #define C_CFISH_OBJ
 #define C_CFISH_CLASS
 #define C_CFISH_METHOD
@@ -1124,7 +1123,7 @@ CFISH_BB_To_Host_IMP(cfish_ByteBuf *self, void *vcache) {
     CFISH_UNUSED_VAR(vcache);
     CFISH_BB_To_Host_t super_to_host
         = CFISH_SUPER_METHOD_PTR(CFISH_BYTEBUF, CFISH_BB_To_Host);
-    return super_to_host(self);
+    return super_to_host(self, NULL);
 }
 
 void*

http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/aad2186f/runtime/python/setup.py
----------------------------------------------------------------------
diff --git a/runtime/python/setup.py b/runtime/python/setup.py
index 8860d3b..1d015f5 100644
--- a/runtime/python/setup.py
+++ b/runtime/python/setup.py
@@ -201,8 +201,8 @@ clownfish_extension = Extension('clownfish._clownfish',
                                     os.curdir,
                                  ],
                                  extra_link_args = [
-                                    CORELIB_PATH,
                                     TESTLIB_PATH,
+                                    CORELIB_PATH,
                                  ],
                                  sources = c_filepaths)
 

Reply via email to