Hi Leonardo.
Welcome to GCL.
I wanna create a binding of a language to GCL. Is there any guide of how
to do that?
Can
you please give an example of what you mean by "binding" as I don't
understand your question?
If you
want to call C from GCL there is a
foreign function interface specifically designed for that purpose.
Here is come example code taken from the CVS file "mod/gcl_japi.lsp"
:
========================================================
(clines
"#include <japi.h>")
;;
BOOLEAN
(defconstant J_TRUE 1)
(defconstant J_FALSE
0)
(defentry j_fileselect ( int string string string ) ( string
"j_fileselect" ))
(defentry j_messagebox ( int string string ) ( int
"j_messagebox" ))
========================================================
It is
also possible to rebuild GCL linked to external libraries with the
"compiler::link" function
These
functions are described in the GCL documentation.
Cheers
Mike
Thomas.