Need foreign string method for translate-into-foreign-memory?

Liam Healy lnp at healy.washington.dc.us
Wed Oct 9 03:35:33 UTC 2013


On Mon, Oct 7, 2013 at 7:29 AM, Luís Oliveira <loliveira at common-lisp.net> wrote:
> On Sun, Oct 6, 2013 at 5:42 PM, Liam Healy <lnp at healy.washington.dc.us> wrote:
>> How does this look?
>
> Yeah. That's the idea. I'd probably change lisp-string-to-foreign-int
> to %lisp-string-to-foreign to match the usual convention used in CFFI
> and perhaps change the keyword arguments to requred arguments if I
> wanted to micro-optimize a bit.
>
OK thanks, done. I didn't know if "%" was reserved for
implementation-specific calls (on cursor search, the only place I saw
it). I've pushed the rewrite; please take a look and run tests to see
that it's good. I've temporarily created a new branch foreign-string.
After that, I'll write the translate-into-foreign-memory method.

Liam



More information about the cffi-devel mailing list