cl-uffi (0.8.0-1) unstable; urgency=low
- * Adds support for openmcl
+ * Adds support for openmcl, numerous changes from John Desoi
-- Kevin M. Rosenberg <kmr@debian.org> Thu, 19 Sep 2002 21:09:17 -0600
;; Place, Suite 330, Boston, MA 02111-1307 USA
;;
;;;; from the original ACL 6.1 sources:
-;; $Id: acl-compat-tester.cl,v 1.2 2002/09/20 04:51:14 kevin Exp $
+;; $Id: acl-compat-tester.cl,v 1.3 2002/09/20 05:38:01 kevin Exp $
(defpackage :util.test
(in-package :util.test)
+#+cmu
(unless (find-class 'break nil)
(define-condition break (simple-condition) ()))
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Feb 2002
;;;;
-;;;; $Id: run-examples.cl,v 1.2 2002/09/20 04:51:14 kevin Exp $
+;;;; $Id: run-examples.cl,v 1.3 2002/09/20 05:38:01 kevin Exp $
;;;;
;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
(pushnew :examples-uffi cl:*features*)
(flet ((load-test (name)
- (load (merge-pathnames
- (make-pathname :name name
- :type "cl"
- *load-truename*)))))
+ (load (make-pathname :defaults *load-truename* :name name :type "cl"))))
(load-test "c-test-fns")
(load-test "arrays")
(load-test "union")
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Feb 2002
;;;;
-;;;; $Id: test-examples.cl,v 1.2 2002/09/20 04:51:14 kevin Exp $
+;;;; $Id: test-examples.cl,v 1.3 2002/09/20 05:38:01 kevin Exp $
;;;;
;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
(defun do-tests ()
(pushnew :test-uffi cl:*features*)
- (util.test:with-tests (:name "UFFI")
- (setq util.test:*break-on-test-failures* t)
+ (util.test:with-tests (:name "UFFI-Tests")
+ (setq util.test:*break-on-test-failures* nil)
(flet ((load-test (name)
- (load (merge-pathnames
- (make-pathname :name name
- :type "cl"
- *load-truename*)))))
+ (load (merge-pathnames
+ (make-pathname :name name
+ :type "cl")
+ *load-truename*))))
(load-test "c-test-fns")
(load-test "arrays")
(load-test "union")
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Mar 2002
;;;;
-;;;; $Id: union.cl,v 1.7 2002/04/03 00:57:48 kevin Exp $
+;;;; $Id: union.cl,v 1.8 2002/09/20 05:38:01 kevin Exp $
;;;;
;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
(uffi:free-foreign-object u))
(values))
+#+test-uffi
(defun test-union-1 ()
(let ((u (uffi:allocate-foreign-object 'tunion1)))
(setf (uffi:get-slot-value u 'tunion1 'uint)
;; Place, Suite 330, Boston, MA 02111-1307 USA
;;
;;;; from the original ACL 6.1 sources:
-;; $Id: acl-compat-tester.cl,v 1.2 2002/09/20 04:51:14 kevin Exp $
+;; $Id: acl-compat-tester.cl,v 1.3 2002/09/20 05:38:01 kevin Exp $
(defpackage :util.test
(in-package :util.test)
+#+cmu
(unless (find-class 'break nil)
(define-condition break (simple-condition) ()))
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Feb 2002
;;;;
-;;;; $Id: run-examples.cl,v 1.2 2002/09/20 04:51:14 kevin Exp $
+;;;; $Id: run-examples.cl,v 1.3 2002/09/20 05:38:01 kevin Exp $
;;;;
;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
(pushnew :examples-uffi cl:*features*)
(flet ((load-test (name)
- (load (merge-pathnames
- (make-pathname :name name
- :type "cl"
- *load-truename*)))))
+ (load (make-pathname :defaults *load-truename* :name name :type "cl"))))
(load-test "c-test-fns")
(load-test "arrays")
(load-test "union")
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Feb 2002
;;;;
-;;;; $Id: test-examples.cl,v 1.2 2002/09/20 04:51:14 kevin Exp $
+;;;; $Id: test-examples.cl,v 1.3 2002/09/20 05:38:01 kevin Exp $
;;;;
;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
(defun do-tests ()
(pushnew :test-uffi cl:*features*)
- (util.test:with-tests (:name "UFFI")
- (setq util.test:*break-on-test-failures* t)
+ (util.test:with-tests (:name "UFFI-Tests")
+ (setq util.test:*break-on-test-failures* nil)
(flet ((load-test (name)
- (load (merge-pathnames
- (make-pathname :name name
- :type "cl"
- *load-truename*)))))
+ (load (merge-pathnames
+ (make-pathname :name name
+ :type "cl")
+ *load-truename*))))
(load-test "c-test-fns")
(load-test "arrays")
(load-test "union")
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Mar 2002
;;;;
-;;;; $Id: union.cl,v 1.7 2002/04/03 00:57:48 kevin Exp $
+;;;; $Id: union.cl,v 1.8 2002/09/20 05:38:01 kevin Exp $
;;;;
;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
(uffi:free-foreign-object u))
(values))
+#+test-uffi
(defun test-union-1 ()
(let ((u (uffi:allocate-foreign-object 'tunion1)))
(setf (uffi:get-slot-value u 'tunion1 'uint)
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Aug 2002
;;;;
-;;;; $Id: uffi.asd,v 1.13 2002/09/20 01:26:17 kevin Exp $
+;;;; $Id: uffi.asd,v 1.14 2002/09/20 05:38:01 kevin Exp $
;;;;
;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
:long-description "UFFI provides a universal foreign function interface (FFI) for Common Lisp. UFFI supports CMUCL, Lispworks, and AllegroCL."
:perform (load-op :after (op uffi)
- (pushnew :uffi cl:*features*))
+ (pushnew :uffi cl:*features*))
:components
(
))
-(defmethod source-file-type ((c cl-source-file) (s (eql (find-system 'uffi))))
+(defmethod source-file-type ((c cl-source-file) (s (eql (find-system :uffi))))
"cl")
+(when (ignore-errors (find-class 'load-compiled-op))
+ (defmethod perform :after ((op load-compiled-op) (c (eql (find-system :uffi))))
+ (pushnew :uffi cl:*features*)))