X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/blobdiff_plain/d4e8d04a75acaf3a7c9a1a147d12c77efcf39207..e9b0112dd22e7efbefc960eb959e05f25a60d75c:/gffi/basic-types.lisp diff --git a/gffi/basic-types.lisp b/gffi/basic-types.lisp index d687d52..5fc5543 100644 --- a/gffi/basic-types.lisp +++ b/gffi/basic-types.lisp @@ -20,7 +20,7 @@ ;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE ;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -;; $Id: basic-types.lisp,v 1.4 2006/09/06 10:15:34 espen Exp $ +;; $Id: basic-types.lisp,v 1.5 2007/01/02 15:20:32 espen Exp $ (in-package "GFFI") @@ -514,6 +514,12 @@ (define-type-method reader-function ((type double-float) &key ref (inlined t)) #+(or cmu sbcl)(sap-ref-double location offset) #+clisp(ffi:memory-as location 'double-float offset))) +(deftype optimized-double-float () 'double-float) + +(define-type-method to-alien-form ((type optimized-double-float) form &optional copy-p) + (declare (ignore type copy-p)) + form) + ;;; Character