X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Fuffi-c-test-lib.lisp;h=9b87cf3d37cb232253e3ff385ced327c302cf416;hb=HEAD;hp=7481201d49a2670eba33c49662903e5c0697d2a4;hpb=3ade95bab16abe09642554e9cbf56f117f01e507;p=uffi.git diff --git a/tests/uffi-c-test-lib.lisp b/tests/uffi-c-test-lib.lisp index 7481201..9b87cf3 100644 --- a/tests/uffi-c-test-lib.lisp +++ b/tests/uffi-c-test-lib.lisp @@ -7,9 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Mar 2002 ;;;; -;;;; $Id$ -;;;; -;;;; This file, part of UFFI, is Copyright (c) 2002-2005 by Kevin M. Rosenberg +;;;; This file, part of UFFI, is Copyright (c) 2002-2010 by Kevin M. Rosenberg ;;;; ;;;; ************************************************************************* @@ -33,7 +31,7 @@ (defun string-count-upper (str) (uffi:with-cstring (str-cstring str) - (cs-count-upper str-cstring))) + (cs-count-upper str-cstring))) (uffi:def-function ("half_double_vector" half-double-vector) ((size :int) @@ -60,10 +58,10 @@ (uffi:def-constant +double-vec-length+ 10) (defun test-half-double-vector () (let ((vec (uffi:allocate-foreign-object :double +double-vec-length+)) - results) + results) (dotimes (i +double-vec-length+) - (setf (uffi:deref-array vec '(:array :double) i) - (coerce i 'double-float))) + (setf (uffi:deref-array vec '(:array :double) i) + (coerce i 'double-float))) (half-double-vector +double-vec-length+ vec) (dotimes (i +double-vec-length+) (push (uffi:deref-array vec '(:array :double) i) results)) @@ -85,7 +83,7 @@ (system:without-gcing (half-double-vector +double-vec-length+ (system:vector-sap vec))) vec)) - + (deftest :c-test.1 (string-to-upper "this is a test") "THIS IS A TEST") (deftest :c-test.2 (string-to-upper nil) nil) (deftest :c-test.3 (string-count-upper "This is a Test") 2)