[racket] FFI and C header defines
Maybe you can find something useful here:
http://pkg-build.racket-lang.org/doc/c-utils/index.html
/Jens Axel
2015-02-05 22:38 GMT+01:00 Bartosz Przygoda <bprzygoda at gmail.com>:
> Hello,
>
> I'm implementing FFI for termios functions (I noticed Python has got all
> this covered: serial, termios, fnctl and so on, whereas Racket seemed not
> (at least serial, which I'm trying to do next)), and I'm wondering how to
> tackle the values defined in C headers (especially those that are depending
> on other defines), for example:
>
> #ifdef __USE_MISC
> # define XTABS 0014000
> #endif
>
>
> I'd like to have such values define in my library module, but then what
> about differences? Some should be part of POSIX standard, but from what I
> see there is lots of ifdefs so some could vary.
>
> I checked Python, and seems such modules are implemented natively, so that
> when they get build proper consts are introduced and then such module is
> depending on a environment it was build in. Does similar way could be used
> for racket? Or what should be generaly favored way of doing such things
> here?
>
> ____________________
> Racket Users list:
> http://lists.racket-lang.org/users
>
--
--
Jens Axel Søgaard