Need foreign string method for translate-into-foreign-memory?
Luís Oliveira
loliveira at common-lisp.net
Tue Oct 1 16:35:48 UTC 2013
On Tue, Oct 1, 2013 at 5:28 PM, Liam Healy <lnp at healy.washington.dc.us> wrote:
> OK. On superficial examination, it seems like foreign-string-alloc and
> lisp-string-to-foreign have significant duplicated code. Is there a reason
> for that rather than having the former call the latter?
Having the foreign-string-alloc call lisp-string-to-foreign would
cause the string length to be calculated twice. But it indeed seems
like they could both share a helper function at least.
--
Luís Oliveira
http://kerno.org/~luis/
More information about the cffi-devel
mailing list