<br><br><div class="gmail_quote">On Mon, May 3, 2010 at 1:54 PM, Seth Burleigh <span dir="ltr"><<a href="mailto:seth@tewebs.com">seth@tewebs.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Lets say i have a file called test.lisp and in it is this code:<br>
<br>
(in-package :utils2)<br>
<br>
(FFI:C-INLINE NIL ..<br>
</blockquote></div><br>No!!! C-INLINE is for INLINE statements that perform computations in C. NOT FOR DECLARATIONS.<div><br></div><div>> (si:system "cat foo.lisp")</div><div>(FFI:CLINES "</div><div>int foo(int a, int b)</div>

<div>{</div><div>return a+b;</div><div>}<br clear="all">")</div><div><br></div><div>(let ((x (ffi:c-inline (1 2) (:int :int) :int "foo(#0,#1)" :one-liner t)))</div><div>  (print x))</div><div><br></div><div>

<div>> (compile-file "foo" :load t)</div><div>;; Loading "/Users/jjgarcia/foo.fas"</div><div><br></div><div>3 </div><div><br></div></div><div>Is there anything else I am missing here?</div><div><br>

</div><div>Juanjo</div><div><br></div><div>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br><a href="http://tream.dreamhosters.com">http://tream.dreamhosters.com</a><br>
</div>