projects
/
uffi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac201b7
)
r9278: addition openmcl fix
author
Kevin M. Rosenberg
<kevin@rosenberg.net>
Fri, 7 May 2004 05:51:43 +0000
(
05:51
+0000)
committer
Kevin M. Rosenberg
<kevin@rosenberg.net>
Fri, 7 May 2004 05:51:43 +0000
(
05:51
+0000)
src/strings.lisp
patch
|
blob
|
history
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
- (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)))
)