Merge branch 'CLOWNFISH-66-py-glue2' Make PyTypeObjects and Clownfish Classes work together.
* Generate PyTypeObject def for each Clownfish class. * Object allocation and initialization for Py glue. * Make Clownfish classes aware of their corresponding PyTypeObjects. * Bootstrap Clownfish parcels and Classes, Python type objects and modules. This closes #59. Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/b9f22d14 Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/b9f22d14 Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/b9f22d14 Branch: refs/heads/master Commit: b9f22d1490540e1107f73c9fb7ea8715af8854ea Parents: 7c80fb8 77ce746 Author: Marvin Humphrey <[email protected]> Authored: Thu Feb 25 14:20:47 2016 -0800 Committer: Marvin Humphrey <[email protected]> Committed: Thu Feb 25 14:20:47 2016 -0800 ---------------------------------------------------------------------- compiler/include/CFC.h | 2 + compiler/src/CFCPyClass.c | 230 +++++++++++++++++++++++++++++ compiler/src/CFCPyClass.h | 64 ++++++++ compiler/src/CFCPython.c | 129 +++++++++++++++- runtime/core/Clownfish/Class.c | 4 + runtime/core/Clownfish/Class.cfh | 9 ++ runtime/core/Clownfish/Method.c | 28 ++++ runtime/core/Clownfish/Method.cfh | 6 + runtime/perl/xs/XSBind.c | 24 +-- runtime/python/cfext/CFBind.c | 181 ++++++++++++++++++++--- runtime/python/cfext/CFBind.h | 10 ++ runtime/python/test/test_clownfish.py | 2 + 12 files changed, 641 insertions(+), 48 deletions(-) ----------------------------------------------------------------------
