projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0.7.11.5:
[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
440b8fa
..
b7730f1
100644
(file)
--- a/
src/code/host-c-call.lisp
+++ b/
src/code/host-c-call.lisp
@@
-7,32
+7,32
@@
;;;; provided with absolutely no warranty. See the COPYING and CREDITS
;;;; files for more information.
;;;; provided with absolutely no warranty. See the COPYING and CREDITS
;;;; files for more information.
-(in-package "SB!C-CALL")
+(in-package "SB!ALIEN")
(/show0 "host-c-call.lisp 12")
(/show0 "host-c-call.lisp 12")
-(def-alien-type-class (c-string :include pointer :include-args (to)))
+(define-alien-type-class (c-string :include pointer :include-args (to)))
-(def-alien-type-translator c-string ()
+(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))))
-(def-alien-type-method (c-string :unparse) (type)
+(define-alien-type-method (c-string :unparse) (type)
(declare (ignore type))
'c-string)
(declare (ignore type))
'c-string)
-(def-alien-type-method (c-string :lisp-rep) (type)
+(define-alien-type-method (c-string :lisp-rep) (type)
(declare (ignore type))
'(or simple-base-string null (alien (* char))))
(declare (ignore type))
'(or simple-base-string null (alien (* char))))
-(def-alien-type-method (c-string :naturalize-gen) (type alien)
+(define-alien-type-method (c-string :naturalize-gen) (type alien)
(declare (ignore type))
`(if (zerop (sap-int ,alien))
nil
(%naturalize-c-string ,alien)))
(declare (ignore type))
`(if (zerop (sap-int ,alien))
nil
(%naturalize-c-string ,alien)))
-(def-alien-type-method (c-string :deport-gen) (type value)
+(define-alien-type-method (c-string :deport-gen) (type value)
(declare (ignore type))
`(etypecase ,value
(null (int-sap 0))
(declare (ignore type))
`(etypecase ,value
(null (int-sap 0))