Hi all:
Tried to find an equivalent of cparse (according to google originally
from Tim Moore) to generate declarations from C header files for UFFI.
No luck so far. Is there anything available like this? Even cparse
itself ?
TIA for feedback.
Regards,
Frank
--
Frank Goenninger
Bempflingen, Germany
Frank Goenninger DG1SBG <················@goenninger.com> writes:
> Hi all:
>
> Tried to find an equivalent of cparse (according to google originally
> from Tim Moore) to generate declarations from C header files for UFFI.
>
> No luck so far. Is there anything available like this? Even cparse
> itself ?
I'll put a copy of cparse on my website tonight. That being said, I'm
not so enamoured of cparse anymore and have kind of let it fall into
disuse. I do like FFIGEN. I've used the version that builds OpenMCL's
foreign function interface database, but I understand that it's a more
general tool: http://www.ccs.neu.edu/home/lth/ffigen/ One cool feature
is that it does something useful with many macro definitions.
Tim
Frank Goenninger DG1SBG <················@goenninger.com> writes:
> Tried to find an equivalent of cparse (according to google originally
> from Tim Moore) to generate declarations from C header files for UFFI.
>
> No luck so far. Is there anything available like this? Even cparse
> itself ?
ISTR that the swig interface generator had some experimental support
for UFFI, but I can't comment on its current state or usefulness. Back
when I saw it, it was only present in the CVS version; I don't know
whether it has been part of an official release since.
Henrik Motakef <············@henrik-motakef.de> writes:
> Frank Goenninger DG1SBG <················@goenninger.com> writes:
>
>> Tried to find an equivalent of cparse (according to google originally
>> from Tim Moore) to generate declarations from C header files for UFFI.
>>
>> No luck so far. Is there anything available like this? Even cparse
>> itself ?
>
> ISTR that the swig interface generator had some experimental support
> for UFFI, but I can't comment on its current state or usefulness. Back
> when I saw it, it was only present in the CVS version; I don't know
> whether it has been part of an official release since.
It is included in the SWIG 1.3.21 release.
The program that creates UFFI declarations is a short Lisp program
(300 lines) that reads an s-expression representation of SWIG's C/C++
parse tree. At the moment it does not handle all C/C++ elements, but
it should be pretty easy to extend.
--
Matthias Koeppe -- http://www.math.uni-magdeburg.de/~mkoeppe
"Frank Goenninger DG1SBG" <················@goenninger.com> wrote in message
···················@stargate.de.goenninger.com...
> Hi all:
>
> Tried to find an equivalent of cparse (according to google originally
> from Tim Moore) to generate declarations from C header files for UFFI.
>
> No luck so far. Is there anything available like this? Even cparse
> itself ?
A little while ago I wanted to modify cparse so that it generates
UFFI code, unfortunately I haven't had time for that yet. From what
I saw of the code, it should be quite easy to do for anyone who
knows UFFI...
--
Matthieu Villeneuve
>>>>> "Matthieu" == Matthieu Villeneuve <········@nospam.matthieu-villeneuve.net> writes:
Matthieu> "Frank Goenninger DG1SBG" <················@goenninger.com> wrote in message
Matthieu> ···················@stargate.de.goenninger.com...
>> Hi all:
>>
>> Tried to find an equivalent of cparse (according to google originally
>> from Tim Moore) to generate declarations from C header files for UFFI.
>>
>> No luck so far. Is there anything available like this? Even cparse
>> itself ?
Matthieu> A little while ago I wanted to modify cparse so that it generates
Matthieu> UFFI code, unfortunately I haven't had time for that yet. From what
Matthieu> I saw of the code, it should be quite easy to do for anyone who
Matthieu> knows UFFI...
I am currently working on this. Stay tuned.
Tim, if you have uploaded cparse somewhere, couldn't you post the
URL. I only have your old bricoworks address and that seems out of
order.
------------------------+-----------------------------------------------------
Christian Lynbech | christian ··@ defun #\. dk
------------------------+-----------------------------------------------------
Hit the philistines three times over the head with the Elisp reference manual.
- ·······@hal.com (Michael A. Petonic)
I am proud and pleased to announce that CPARSE now has a new home at
common-lisp.net. Check out the (very rudimentary) project homepage at
http://www.common-lisp.net/project/cparse
This is release 0.2.4 and is a clean upload of Timothy Moores
sources.
Next up is the quest to enable CPARSE to generate UFFI bindings, of
which I already have the beginnings, but that is against an earlier
version of CPARSE so some merging will presumably be required.
------------------------+-----------------------------------------------------
Christian Lynbech | christian ··@ defun #\. dk
------------------------+-----------------------------------------------------
Hit the philistines three times over the head with the Elisp reference manual.
- ·······@hal.com (Michael A. Petonic)