r9278: addition openmcl fix
authorKevin M. Rosenberg <kevin@rosenberg.net>
Fri, 7 May 2004 05:51:43 +0000 (05:51 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Fri, 7 May 2004 05:51:43 +0000 (05:51 +0000)
src/strings.lisp

index dc42fa3f58fa26a462a2f6c0afba2fcc11ca73da..0f01e97ba1245103f0c8f8b5affaaa3f0ef019dc 100644 (file)
@@ -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)))
   )