projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0.9.2.40:
[sbcl.git]
/
src
/
code
/
host-c-call.lisp
diff --git
a/src/code/host-c-call.lisp
b/src/code/host-c-call.lisp
index
4ad089a
..
409fd9f
100644
(file)
--- a/
src/code/host-c-call.lisp
+++ b/
src/code/host-c-call.lisp
@@
-14,9
+14,8
@@
(define-alien-type-class (c-string :include pointer :include-args (to)))
(define-alien-type-translator c-string ()
(define-alien-type-class (c-string :include pointer :include-args (to)))
(define-alien-type-translator c-string ()
- (make-alien-c-string-type :to
- (parse-alien-type 'char
- (sb!kernel::make-null-lexenv))))
+ (make-alien-c-string-type
+ :to (parse-alien-type 'char (sb!kernel:make-null-lexenv))))
(define-alien-type-method (c-string :unparse) (type)
(declare (ignore type))
(define-alien-type-method (c-string :unparse) (type)
(declare (ignore type))
@@
-24,7
+23,7
@@
(define-alien-type-method (c-string :lisp-rep) (type)
(declare (ignore type))
(define-alien-type-method (c-string :lisp-rep) (type)
(declare (ignore type))
- '(or simple-base-string null (alien (* char))))
+ '(or simple-string null (alien (* char))))
(define-alien-type-method (c-string :naturalize-gen) (type alien)
(declare (ignore type))
(define-alien-type-method (c-string :naturalize-gen) (type alien)
(declare (ignore type))
@@
-37,7
+36,8
@@
`(etypecase ,value
(null (int-sap 0))
((alien (* char)) (alien-sap ,value))
`(etypecase ,value
(null (int-sap 0))
((alien (* char)) (alien-sap ,value))
- (simple-base-string (vector-sap ,value))))
+ (simple-base-string (vector-sap ,value))
+ (simple-string (vector-sap (coerce ,value 'simple-base-string)))))
(/show0 "host-c-call.lisp 42")
(/show0 "host-c-call.lisp 42")