projects
/
uffi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r9278: addition openmcl fix
[uffi.git]
/
src
/
strings.lisp
diff --git
a/src/strings.lisp
b/src/strings.lisp
index dc42fa3f58fa26a462a2f6c0afba2fcc11ca73da..0f01e97ba1245103f0c8f8b5affaaa3f0ef019dc 100644
(file)
--- 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
#+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)))
)
)