On Sat, Mar 13, 2010 at 12:00 AM, Juan Jose Garcia-Ripoll <span dir="ltr"><<a href="mailto:juanjose.garciaripoll@googlemail.com">juanjose.garciaripoll@googlemail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Fri, Mar 12, 2010 at 10:40 PM, Matthew Mondor <span dir="ltr"><<a href="mailto:mm_lists@pulsar-zone.net" target="_blank">mm_lists@pulsar-zone.net</a>></span> wrote:<br></div><div class="gmail_quote">
<div class="im"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I get<br>
C compilation errors: "error: stray '@' in program", suggesting that<br>
CLINES does not do @ preprocessing. Is there a way to tell CLINES to<br>
do so,</blockquote></div></div></blockquote><div><br>Ok, here it is (git/CVS, as usual)<br><br>$ ecl<br>ECL (Embeddable Common-Lisp) 10.3.1<br>Copyright (C) 1984 Taiichi Yuasa and Masami Hagiya<br>Copyright (C) 1993 Giuseppe Attardi<br>
Copyright (C) 2000 Juan J. Garcia-Ripoll<br>ECL is free software, and you are welcome to redistribute it<br>under certain conditions; see file 'Copyright' for details.<br>Type :h for Help. <br>Top level in: #<process SI:TOP-LEVEL 000c9fc0>.<br>
> (compile-file "foo" :c-file t)<br>[...]<br>#P"/Users/jjgarcia/build/ecl/foo.fas"<br>NIL<br>NIL<br>> (load "foo")<br><br>;;; Loading #P"/Users/jjgarcia/build/ecl/foo.fas"<br>
#P"/Users/jjgarcia/build/ecl/foo.fas"<br>> (foo)<br><br>MY-SYMBOL<br>> <br>$ cat foo.lsp<br>(ffi:clines "<br>cl_object<br>aux() {<br> return @my-symbol;<br>}")<br><br>(defun foo ()<br> (ffi:c-inline () () :object "aux()" :one-liner t))<br clear="all">
<br></div></div><br>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br><a href="http://juanjose.garciaripoll.googlepages.com">http://juanjose.garciaripoll.googlepages.com</a><br>