Hi Armin,
Thank you for the reply. I googled a bit and found this:
https://github.com/davidjamesca/ctypesgen
My goal would be to generate the uwsgi.h header to use with ctypes or CFFI.
Ideally, building uWSGI with CFFI support would be really cool. :-)
Regards,
Etienne
Le 2017-12-27 à 01:30, Armin Rigo a écrit :
Hi Etienne,
On 26 December 2017 at 11:04, Etienne Robillard <[email protected]> wrote:
ffi.cdef(open('uwsgi.h').read())
You cannot use a full unmodified C header in ``ffi.cdef()``. You have
instead to use subsets of it, like only the functions you plan to call
and the type definitions they need. The error you get is because
``ffi.cdef()`` does not have support for the preprocessor directives
(nor does it have support for other things you can find in a full C
header file).
About uwsgi, I'd recommend to google a bit because I'm almost sure
various Python links have already been done (including some with
CFFI).
A bientôt,
Armin.
--
Etienne Robillard
[email protected]
https://www.isotopesoftware.ca/
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi