X-Git-Url: https://git.distorted.org.uk/~mdw/clg/blobdiff_plain/e846072c1836cffab07bf3fe5798ba6753e18df0..5d055f65bd6af390ea5d0e3e95e4f3d6577d7759:/gffi/basic-types.lisp?ds=sidebyside diff --git a/gffi/basic-types.lisp b/gffi/basic-types.lisp index b21fbd3..9b3695e 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