[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to use ffi-help
From: |
Amirouche Boubekki |
Subject: |
Re: how to use ffi-help |
Date: |
Sun, 30 Dec 2018 19:07:45 +0100 |
User-agent: |
Roundcube Webmail/1.1.2 |
Le 2018-12-22 19:46, Matt Wette a écrit :
Hi All,
I have created a helper for generating FFI code for Guile. The
current
use case is to create file called a "ffi module" that specifies
includes
and libraries that will be used to create a loadable Guile module. In
the
process, the FFI Helper (FH) parses C code and, from that, generates
Guile
FFI code.
Thanks a lot! I promised to test ffi helper but got side tracked.
See
ffi-helper: https://www.nongnu.org/nyacc/ffi-help.html
project: https://savannah.nongnu.org/projects/nyacc
I think the package is at a very usable point right now, and
I am starting to converge on a 1.0 release. So now I am
soliciting inputs on other ways to use this package. Namely,
are convenience routines needed for some use cases?
[...]
Comments?
1. Is it possible to have a program or subcommand of guild that
does take a header file from stdin and prints the bindings to stdout.
2. What do you think of PSSI https://github.com/ktakashi/r6rs-pffi
3. is it possible to specify a 'renamer' procedure that takes as
argument
a symbol representing the kind of thing (enum, member, static
variable,
struct, typdef, function, constant macro...) and the original name of
the
original name of the thing. The goal here is to allow to have schemey
variable
names.
4. In the module definition, is it possible to add some code that will
be appended
to the generated file?
5. In the module definition, is it possible to declare the interface of
the generated
module?
TIA
--
Amirouche ~ amz3 ~ http://www.hyperdev.fr