X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fhost-c-call.lisp;h=5639751e033ef3af6c3e3d97c35d12176b512bb7;hb=a160917364f85b38dc0826a5e3dcef87e3c4c62c;hp=eb12c398d7fb5b0b59baef3d5d2a3185617a3497;hpb=6fa968aaa8051da23cc3153a1c0e67addbea85f6;p=sbcl.git diff --git a/src/code/host-c-call.lisp b/src/code/host-c-call.lisp index eb12c39..5639751 100644 --- a/src/code/host-c-call.lisp +++ b/src/code/host-c-call.lisp @@ -44,6 +44,8 @@ (defun c-string-needs-conversion-p (type) #+sb-xc-host + (declare (ignore type)) + #+sb-xc-host t #-sb-xc-host (let ((external-format (sb!impl::get-external-format @@ -82,6 +84,8 @@ (define-alien-type-method (c-string :deport-gen) (type value) (declare (ignore type)) + ;; This SAP taking is safe as DEPORT callers pin the VALUE when + ;; necessary. `(etypecase ,value (null (int-sap 0)) ((alien (* char)) (alien-sap ,value))