ACL FF question. C enums. 
Author Message
 ACL FF question. C enums.

Hi

I am trying to interface a C library we wrote with ACL.  Unfortuantely
in our code we make use of `enum xxx { uno = 1, due = 2, tre = 3 }',
which I do not quite know how to represent, especially when we have
functions like

        int foo(xxx x) {...}

What is the best way to represent enum's in ACL?  Just writing a
def-enum is simple enough, but maybe there are better ways.

Any idea?

Thanks

PS. Please respond in private, I will post a summary.

--
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://www.*-*-*.com/
             Like DNA, such a language [Lisp] does not go out of style.
                              Paul Graham, ANSI Common Lisp



Wed, 13 Aug 2003 09:48:52 GMT  
 ACL FF question. C enums.

Quote:

> Hi

> I am trying to interface a C library we wrote with ACL.  Unfortuantely
> in our code we make use of `enum xxx { uno = 1, due = 2, tre = 3 }',
> which I do not quite know how to represent, especially when we have
> functions like

>    int foo(xxx x) {...}

> What is the best way to represent enum's in ACL?  Just writing a
> def-enum is simple enough, but maybe there are better ways.

> Any idea?

> Thanks

> PS. Please respond in private, I will post a summary.

I have not got any replies on this.  So I will remove the above
clause.

Really:  I know that enums are basically int's.  However, I do have
this problem in ACL.

Is it just a bad case of RTFM?

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
             Like DNA, such a language [Lisp] does not go out of style.
                              Paul Graham, ANSI Common Lisp



Fri, 15 Aug 2003 23:49:24 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. ACL FFI and C enums.

2. Problem with JK-FF used as T-ff with sync.reset

3. ACL Unix vs. ACL Linux

4. to CS: or not to CS: in F-PC assembler

5. ACL FFI question

6. ACL Common Graphics Question

7. Q: ACL Question 4.2(a) pp.80

8. ACL Foreign Function Interface Question

9. new to lisp: questions about ACL for Unix (Linux)

10. ACL 4.3 for Linux speed question

11. Question: ACL for Windows and text dialog items

12. ACL 4.2 Question: Nonblocking I/O and Streams

 

 
Powered by phpBB® Forum Software