[Ecls-list] C-STRINGs and lisp strings

Juan Jose Garcia Ripoll jlr at mpq.mpg.de
Tue Jun 28 06:52:31 UTC 2005


Goffioul Michael wrote:

>I looked at the CVS notification mail and I have the impression that
>the problem still exists in case like:
>
>(ffi:def-function ("strlen" f1) ((arg :cstring)) :returning :unsigned-int)
>(f1 (format nil "~{~A~^, ~}" '(a b c d)))
>
>The FORMAT call returns a non-simple string, and the generated code for F1
>will probably only call ecl_string_pointer_safe() on it.
>
Sure. I have fixed also ecl_string_pointer_safe(), which should probably 
be renamed to ecl_string_to_cstring().

Juanjo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jlr.vcf
Type: text/x-vcard
Size: 389 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20050628/b3ca8607/attachment.vcf>


More information about the ecl-devel mailing list