X-Git-Url: https://git.distorted.org.uk/~mdw/clg/blobdiff_plain/6fc914ee5f8a0d4a844277f0b8f858ffee48fbf5..656c14010b13ba6cd77b65dedd9eb88a3e221d0e:/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 @@ have been written as temporal.") #+(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