[Ecls-list] ffi:clines and @ preprocessing
Juan Jose Garcia-Ripoll
juanjose.garciaripoll at googlemail.com
Sat Mar 13 00:18:04 UTC 2010
On Sat, Mar 13, 2010 at 12:00 AM, Juan Jose Garcia-Ripoll <
juanjose.garciaripoll at googlemail.com> wrote:
> On Fri, Mar 12, 2010 at 10:40 PM, Matthew Mondor <mm_lists at pulsar-zone.net
> > wrote:
>
>> I get
>> C compilation errors: "error: stray '@' in program", suggesting that
>> CLINES does not do @ preprocessing. Is there a way to tell CLINES to
>> do so,
>
>
Ok, here it is (git/CVS, as usual)
$ ecl
ECL (Embeddable Common-Lisp) 10.3.1
Copyright (C) 1984 Taiichi Yuasa and Masami Hagiya
Copyright (C) 1993 Giuseppe Attardi
Copyright (C) 2000 Juan J. Garcia-Ripoll
ECL is free software, and you are welcome to redistribute it
under certain conditions; see file 'Copyright' for details.
Type :h for Help.
Top level in: #<process SI:TOP-LEVEL 000c9fc0>.
> (compile-file "foo" :c-file t)
[...]
#P"/Users/jjgarcia/build/ecl/foo.fas"
NIL
NIL
> (load "foo")
;;; Loading #P"/Users/jjgarcia/build/ecl/foo.fas"
#P"/Users/jjgarcia/build/ecl/foo.fas"
> (foo)
MY-SYMBOL
>
$ cat foo.lsp
(ffi:clines "
cl_object
aux() {
return @my-symbol;
}")
(defun foo ()
(ffi:c-inline () () :object "aux()" :one-liner t))
--
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20100313/494e2e08/attachment.html>
More information about the ecl-devel
mailing list