r4619: Auto commit for Debian build
[hyperobject.git] / package.lisp
1 ;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
2 ;;;; *************************************************************************
3 ;;;; FILE IDENTIFICATION
4 ;;;;
5 ;;;; Name:          package.lisp
6 ;;;; Purpose:       Package definition for hyperobject package
7 ;;;; Programmer:    Kevin M. Rosenberg
8 ;;;; Date Started:  Apr 2000
9 ;;;;
10 ;;;; $Id: package.lisp,v 1.43 2003/04/24 07:00:02 kevin Exp $
11 ;;;;
12 ;;;; This file is Copyright (c) 2000-2002 by Kevin M. Rosenberg
13 ;;;; *************************************************************************
14
15 (eval-when (:compile-toplevel :execute)
16   (declaim (optimize (speed 2) (safety 2) (compilation-speed 0) (debug 2))))
17
18 (in-package :cl-user)
19
20 #+sbcl
21 (eval-when (:compile-toplevel :load-toplevel :execute)
22   (if (find-package 'sb-mop)
23       (pushnew :kmr-sbcl-mop cl:*features*)
24       (pushnew :kmr-sbcl-pcl cl:*features*)))
25
26 #+cmu
27 (eval-when (:compile-toplevel :load-toplevel :execute)
28   (if (find-package 'mop)
29       (pushnew :kmr-cmucl-mop cl:*features*)
30       (pushnew :kmr-cmucl-pcl cl:*features*)))
31
32
33 (defpackage #:hyperobject
34   (:nicknames #:ho)
35   (:use #:common-lisp #:kmrcl
36         #+kmr-sbcl-mop #:sb-mop
37         #+kmr-cmucl-mop #:mop
38         #+allegro #:mop
39         #+lispworks #:clos)
40   (:export
41    #:package
42    #:hyperobject
43    #:hyperobject-class
44    #:hyperobject-class-user-name
45    #:load-all-subobjects
46    #:view
47    #:fmt-comma-integer
48    #:processed-queued-definitions
49    ))
50
51 (defpackage #:hyperobject-user
52   (:nicknames #:ho-user)
53   (:use #:hyperobject #:cl #:cl-user))
54
55
56 (eval-when (:compile-toplevel :load-toplevel :execute)
57   (shadowing-import
58    #+allegro
59    '(excl::compute-effective-slot-definition-initargs)
60    #+lispworks
61    '(clos::compute-effective-slot-definition-initargs)
62    #+kmr-sbcl-mop 
63    '(sb-pcl::compute-effective-slot-definition-initargs)
64    #+kmr-sbcl-pcl
65    '(sb-pcl:class-of sb-pcl:class-name sb-pcl:class-slots sb-pcl:find-class
66      sb-pcl::standard-class
67      sb-pcl:slot-definition-name sb-pcl::finalize-inheritance
68      sb-pcl::standard-direct-slot-definition
69      sb-pcl::standard-effective-slot-definition sb-pcl::validate-superclass
70      sb-pcl::direct-slot-definition-class sb-pcl::compute-effective-slot-definition
71      sb-pcl::compute-effective-slot-definition-initargs
72      sb-pcl::slot-value-using-class
73      sb-pcl:class-prototype sb-pcl:generic-function-method-class sb-pcl:intern-eql-specializer
74      sb-pcl:make-method-lambda sb-pcl:generic-function-lambda-list)
75    #+kmr-cmucl-mop 
76    '(pcl::compute-effective-slot-definition-initargs)
77    #+kmr-cmucl-pcl
78    '(pcl:class-of  pcl:class-name pcl:class-slots pcl:find-class pcl::standard-class
79      pcl::slot-definition-name pcl:finalize-inheritance
80      pcl::standard-direct-slot-definition pcl::standard-effective-slot-definition
81      pcl::validate-superclass pcl:direct-slot-definition-class
82      pcl:compute-effective-slot-definition
83      pcl::compute-effective-slot-definition-initargs
84      pcl::slot-value-using-class
85      pcl:class-prototype pcl:generic-function-method-class pcl:intern-eql-specializer
86      pcl:make-method-lambda pcl:generic-function-lambda-list)
87    #+scl
88    '(clos:class-slots clos::standard-class
89      clos::slot-definition-name clos:finalize-inheritance
90      clos::standard-direct-slot-definition clos::standard-effective-slot-definition
91      clos::validate-superclass clos:direct-slot-definition-class
92      clos:compute-effective-slot-definition
93      clos::compute-effective-slot-definition-initargs
94      clos::slot-value-using-class
95      clos::class-prototype clos:generic-function-method-class
96      ;; note: make-method-lambda is not fbound
97      clos:intern-eql-specializer clos:make-method-lambda
98      clos:generic-function-lambda-list)
99   
100    :hyperobject))
101
102 #+sbcl
103 (eval-when (:compile-toplevel :load-toplevel :execute)
104   (if (find-package 'sb-mop)
105       (setq cl:*features* (delete :kmr-sbcl-mop cl:*features*))
106       (setq cl:*features* (delete :kmr-sbcl-pcl cl:*features*))))
107
108