From: MK5
Subject: How to access Lisp value from C ?
Date: 
Message-ID: <c728fc2a.0411130241.509112f5@posting.google.com>
How can I access Lisp value from C ?

In manual, lisp_value() was provide for this purpose..

But I need some sample code..

Platform is windows..

and C code is defined in DLL.

From: John Thingstad
Subject: Re: How to access Lisp value from C ?
Date: 
Message-ID: <opshem4lz1pqzri1@mjolner.upc.no>
On 13 Nov 2004 02:41:46 -0800, MK5 <········@hitel.net> wrote:

> How can I access Lisp value from C ?
>
> In manual, lisp_value() was provide for this purpose.
>
> But I need some sample code..
>
> Platform is windows..
>
> and C code is defined in DLL.

You pass it by calling Lisp function from C
using the foreign function interface.
Since you don't spesify you lisp platform I can't
help any further.
If you want to make if portale use UFFI
 from http://uffi.b9.com/.

-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
From: rif
Subject: Re: How to access Lisp value from C ?
Date: 
Message-ID: <wj0k6sp22rb.fsf@five-percent-nation.mit.edu>
"John Thingstad" <··············@chello.no> writes:

> On 13 Nov 2004 02:41:46 -0800, MK5 <········@hitel.net> wrote:
> 
> > How can I access Lisp value from C ?
> >
> > In manual, lisp_value() was provide for this purpose.
> >
> > But I need some sample code..
> >
> > Platform is windows..
> >
> > and C code is defined in DLL.
> 
> You pass it by calling Lisp function from C
> using the foreign function interface.
> Since you don't spesify you lisp platform I can't
> help any further.
> If you want to make if portale use UFFI
>  from http://uffi.b9.com/.
> 
> -- 
> Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

UFFI does not offers facilities for accessing Lisp values from C.
UFFI is a (quite good, albeit not perfect) attempt to put a common API
across several CL implementations CL->C calling interfaces.  C->CL
(which I believe but am not 100% sure is what the OP wanted) is
entirely implementation/platform dependent.  The first step is to
check the documentation for your implementation (which it appears the
OP did); next, I'd see if there's a mailing list or support --- some
way to contact an expert on your implementation who may be able to
provide sample code.

Cheers,

rif