On Mon, Oct 7, 2013 at 7:29 AM, Luís Oliveira loliveira@common-lisp.net wrote:
On Sun, Oct 6, 2013 at 5:42 PM, Liam Healy lnp@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