Questions about cffi's c2ffi support
Hi folks, I'm interested in the c2ffi portion of cffi and whether I can help. When might I want to use this in place of cl-autowrap? Are there open tasks for this feature? I saw the comments say that it is "not very extensive" what kinds of things are missing? Regards
hi
I'm interested in the c2ffi portion of cffi and whether I can help.
i've just updated the wording of the comments at the beginning of this file: https://github.com/cffi/cffi/blob/master/src/c2ffi/generator.lisp there's not much to do that i'm aware of, unless you want to venture into some of those TODO's, or you find a bug.
When might I want to use this in place of cl-autowrap?
cl-autowrap only uses the CFFI backends and replaces the surface API of CFFI with its own, and while it has interesting features, not everyone wants to depart from CFFI. in contrast to that cffi/c2ffi is a small thing that generates vanilla CFFI definitions. -- • attila lendvai • PGP: 963F 5D5F 45C7 DFCD 0A39 -- “When law and morality contradict each other, the citizen has the cruel alternative of either losing his moral sense or losing his respect for the law.” — Frédéric Bastiat (1801–1850), 'The Law' (1850)
When might I want to use this in place of cl-autowrap?
cl-autowrap only uses the CFFI backends and replaces the surface API of CFFI with its own, and while it has interesting features, not everyone wants to depart from CFFI.
in contrast to that cffi/c2ffi is a small thing that generates vanilla CFFI definitions.
this should really go into the doc, but meanwhile here are two examples that use it: https://github.com/attila-lendvai/hu.dwim.sdl https://github.com/attila-lendvai/hu.dwim.bluez -- • attila lendvai • PGP: 963F 5D5F 45C7 DFCD 0A39 -- “If you suffer it is because of you, if you feel blissful it is because of you. Nobody else is responsible – only you and you alone. You are your hell and your heaven too.” — Osho (1931–1990)
participants (2)
-
Attila Lendvai
-
Chris Bagley