From: Kevin M. Rosenberg Date: Fri, 7 May 2004 05:51:43 +0000 (+0000) Subject: r9278: addition openmcl fix X-Git-Tag: v1.6.1~113 X-Git-Url: http://git.kpe.io/?p=uffi.git;a=commitdiff_plain;h=dc12f6625ed6c85ad380525d01c0726100bf7a3d r9278: addition openmcl fix --- diff --git a/src/strings.lisp b/src/strings.lisp index dc42fa3..0f01e97 100644 --- a/src/strings.lisp +++ b/src/strings.lisp @@ -188,7 +188,9 @@ that LW/CMU automatically converts strings from c-calls." #+mcl `(if (ccl:%null-ptr-p ,obj) nil - (ccl:%get-cstring ,obj 0 ,@(if length (list length) nil))) + #+(and mcl (not openmcl)) (ccl:%get-cstring ,obj 0 ,@(if length (list length) nil)) + #+openmcl (let ((str (ccl:%get-cstring ,obj))) + ,(if length '(subseq str 0 length) 'str))) )