r4301: 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.39 2003/03/31 16:07:08 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
27 (defpackage #:hyperobject
28   (:nicknames #:ho)
29   (:use #:common-lisp #:kmrcl
30         #+kmr-sbcl-mop #:sb-mop
31         #+allegro #:mop
32         #+lispworks #:clos)
33   (:export
34    #:package
35    #:hyperobject
36    #:hyperobject-class
37    #:hyperobject-class-user-name
38    #:load-all-subobjects
39    #:view
40    #:fmt-comma-integer
41    #:processed-queued-definitions
42    ))
43
44 (defpackage #:hyperobject-user
45   (:nicknames #:ho-user)
46   (:use #:hyperobject #:cl #:cl-user))
47
48
49 (eval-when (:compile-toplevel :load-toplevel :execute)
50   (shadowing-import
51    #+allegro
52    '(excl::compute-effective-slot-definition-initargs)
53    #+lispworks
54    '(clos::compute-effective-slot-definition-initargs)
55    #+kmr-sbcl-mop 
56    '(sb-pcl::compute-effective-slot-definition-initargs
57      )
58    #+kmr-sbcl-pcl
59    '(sb-pcl:class-of sb-pcl:class-name sb-pcl:class-slots sb-pcl:find-class
60      sb-pcl::standard-class
61      sb-pcl:slot-definition-name sb-pcl::finalize-inheritance
62      sb-pcl::standard-direct-slot-definition
63      sb-pcl::standard-effective-slot-definition sb-pcl::validate-superclass
64      sb-pcl::direct-slot-definition-class sb-pcl::compute-effective-slot-definition
65      sb-pcl::compute-effective-slot-definition-initargs
66      sb-pcl::slot-value-using-class
67      sb-pcl:class-prototype sb-pcl:generic-function-method-class sb-pcl:intern-eql-specializer
68      sb-pcl:make-method-lambda)
69   #+cmu
70   '(pcl:class-of  pcl:class-name pcl:class-slots pcl:find-class pcl::standard-class
71     pcl::slot-definition-name pcl:finalize-inheritance
72     pcl::standard-direct-slot-definition pcl::standard-effective-slot-definition
73     pcl::validate-superclass pcl:direct-slot-definition-class
74     pcl:compute-effective-slot-definition
75     pcl::compute-effective-slot-definition-initargs
76     pcl::slot-value-using-class
77     pcl:class-prototype pcl:generic-function-method-class pcl:intern-eql-specializer
78     pcl:make-method-lambda)
79   #+scl
80   '(clos:class-slots clos::standard-class
81     clos::slot-definition-name clos:finalize-inheritance
82     clos::standard-direct-slot-definition clos::standard-effective-slot-definition
83     clos::validate-superclass clos:direct-slot-definition-class
84     clos:compute-effective-slot-definition
85     clos::compute-effective-slot-definition-initargs
86     clos::slot-value-using-class
87     clos::class-prototype clos:generic-function-method-class
88     clos:intern-eql-specializer clos:make-method-lambda)
89   
90    :hyperobject))
91
92 #+sbcl
93 (eval-when (:compile-toplevel :load-toplevel :execute)
94   (if (find-package 'sb-mop)
95       (setq cl:*features* (delete :kmr-sbcl-mop cl:*features*))
96       (setq cl:*features* (delete :kmr-sbcl-pcl cl:*features*))))
97
98