Hi, all,
I was just wondering if its possible to import typedef enums from a C so
object into pop11.
Also wondering if its possible to get pointers (char * to be exact) into
pop11 from C.
The code I have looks like this:
external declare sock_container in c;
int sock_make();
{}
int sock_destroy(sock_index) ;;; Should be "BOOL sock_destroy(...)"
int sock_index;
{}
endexternal;
external load sock_container;
sock_setup
endexternal;
;;; Tests:
sock_make() =>
;;; ** 0
sock_make() =>
;;; ** 1
sock_destroy(0)=>
;;; ** 1 (true)
sock_make() =>
;;; ** 0
and in my C file I have the line "typedef enum{false,true}BOOL;". I also
need to import a function that looks like: "char *get_buffer(int
index){...}"
If anyone knows how to do this it will be most appreciated.
regards,
david.
--
=================================================
The future of HTML mail is clearly > /dev/null.
=================================================
|