Source

cffi / README.md

Armin Rigo 41702c5 

Armin Rigo 99e0004 
Armin Rigo 41702c5 


Armin Rigo ed61f7f 





Armin Rigo 21079ef 












Armin Rigo 41702c5 













Armin Rigo 21079ef 

Armin Rigo 41702c5 





Armin Rigo 21079ef 
cffi
====

Foreign Function Interface for Python calling C code.

Mailing list: https://groups.google.com/forum/#!forum/python-cffi


Initial motivation
------------------

http://mail.python.org/pipermail/pypy-dev/2012-May/009915.html


Current status
--------------

* works as a ctypes replacement
* can use internally either ctypes or a C extension module


Next steps
----------

the verify() step, which should handle:

* completing "...;" structs

* checking the other structs, and the arguments to functions, using the real C compiler

* simple "#define FOO value" macros

* macros of the kind "#define funcname otherfuncname"

* more complicated macros "#define foo(a, b, c) ..."

* checking and correcting the value of the enum {} declarations

* probably also fixing the array lengths, e.g. declared as a field "int foo[...];"

generating C extensions:

* this is needed anyway to call macros

* faster, libffi-free way to call C code

* partial blockers: callbacks (probably still use libffi)

_ffi backend for PyPy
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.