[racket] FFI and C header defines

From: Eric Dobson (eric.n.dobson at gmail.com)
Date: Fri Feb 6 18:17:52 EST 2015

I wrote something similar for my LLVM bindings, after running into many
issues with Dave's code. It follows the c spec not c++, and doesn't support
gcc extensions which many libaries use.

It is no where near production quality, but may give you a starting point:
https://github.com/shekari/racket-llvm/blob/master/private/llvm-headers.rkt

On Fri, Feb 6, 2015 at 2:26 PM, Bartosz Przygoda <bprzygoda at gmail.com>
wrote:

> Hello again,
>
> Looks like this
> <http://docs.racket-lang.org/inside/Writing_Racket_Extensions.html?q=#%28part._.Declaring_a_.Module_in_an_.Extension%29>
>  (
> http://docs.racket-lang.org/inside/Writing_Racket_Extensions.html?q=#%28part._.Declaring_a_.Module_in_an_.Extension%29)
> solves it the way I wanted (and it's quite easy to build, thanks to
> documentation). So at worst, I could use an extension (would be very
> similar to the way python does it). I said 'at worst', cause it's gonna
> involve lots of tedious typing on the C side.
>
> I'm gonna check out those c parsing libs for that reason.
>
> Thanks!
>
> On Fri, Feb 6, 2015 at 2:01 AM, Anthony Carrico <acarrico at memebeam.org>
> wrote:
>
>> On 02/05/2015 05:01 PM, Jens Axel Søgaard wrote:
>> > Maybe you can find something useful here:
>> >     http://pkg-build.racket-lang.org/doc/c-utils/index.html
>>
>> Hey, this is pretty cool. I wonder if Dave Herman has thought of bolting
>> this to Clang.
>>
>> --
>> Anthony Carrico
>>
>>
>>
>> ____________________
>>   Racket Users list:
>>   http://lists.racket-lang.org/users
>>
>>
>
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20150206/60c34fe8/attachment.html>

Posted on the users mailing list.