[Ecls-list] Foreign passing bug?

Seth Burleigh seth at tewebs.com
Sun Mar 21 13:39:45 UTC 2010


This is good to know! Im glad its just me :)
On Sat, 2010-03-20 at 23:39 -0400, Matthew Mondor wrote:
> On Sat, 20 Mar 2010 20:23:54 -0500
> Seth Burleigh <seth at tewebs.com> wrote:
> 
> > I dont know if this is just me, but when i compile this form:
> > (defun print-str (str)
> >   (C-INLINE (STR) (:STRING) :VOID "printf(\"%s\",#0);" 
> >      :ONE-LINER NIL :SIDE-EFFECTS t))
> > 
> > and attempt to call (print-str "HI") i get garbled output:
> 
> Indeed, you should be using :cstring if you expect a C string, :string
> will pass a CL string which would otherwise have to be handled via the
> cl_object.






More information about the ecl-devel mailing list