Quote:
> Question about Allegro FFI:
> Suppose I have C-function that returns ENUM, something
> like
> typedef enum
> {
> CONNECTION_OK,
> CONNECTION_BAD,
> .............
> };
> Is it possible somehow arrange that in Allegro FFI, like
> ENUM in CMUCL's ALIEN for example ?
> Do you now ?
Not that I know.
In theory it is not too difficult to provide a macro that does
somenting like DEFINE-ENUM. But you are taking advntage of the fact
that your C compiler may accept things like
typedef enum {uno = 1, dos, tres} caballeros;
int x = 1;
void foo(caballeros z) { ... }
...
foo(x);
In any case, it would be a nice thing to have in the ACL FFI.
Cheers
--
Marco Antoniotti ========================================================
NYU Courant Bioinformatics Group tel. +1 - 212 - 998 3488
719 Broadway 12th Floor fax +1 - 212 - 995 4122
New York, NY 10003, USA http://bioinformatics.cat.nyu.edu
"Hello New York! We'll do what we can!"
Bill Murray in `Ghostbusters'.