[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] Re: [Help-smalltalk] C Callout, #defines
From: |
address@hidden |
Subject: |
[Help-smalltalk] Re: [Help-smalltalk] C Callout, #defines |
Date: |
Sun, 21 Jul 2002 08:41:12 +0200 |
> What is the right way(tm) to work with #define'd values ?
> - Write a function for every define (int center(){return CENTER;})
> - parse the needed .h-files to get them?
Both are fine. TCP uses the former, Blox/Gtk's prototype will use the
latter.
> With the second approach, I don't have to write the "c-part" of a
> module, if the rest could be done by DLD addLibrary, am I right?
Right (though sometimes a thin wrapper will be needed, for example to
provide callbacks).
Paolo
ps: does anybody know where FreeBSD defines sinl and other long double
functions?
- [Help-smalltalk] Re: [Help-smalltalk] C Callout, #defines,
address@hidden <=