[Ecls-list] Foreign passing bug?
Matthew Mondor
mm_lists at pulsar-zone.net
Sun Mar 21 03:39:18 UTC 2010
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.
--
Matt
More information about the ecl-devel
mailing list