Style change.
[iolib.git] / base / pkgdcl.lisp
blobd64dfcb8a60287c747248e47cec7e21018d74e2c
1 ;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; indent-tabs-mode: nil -*-
2 ;;;
3 ;;; --- Package definition.
4 ;;;
6 (in-package :common-lisp-user)
8 (defpackage :iolib.base
9 (:use #:common-lisp :alexandria)
10 (:shadow #:defun #:defmethod #:defmacro #:define-compiler-macro)
11 (:export
12 ;; Conditions
13 #:bug
14 ;; RETURN*
15 #:return* #:lambda* #:defun #:defmethod
16 #:defmacro #:define-compiler-macro
17 ;; DEFOBSOLETE
18 #:defobsolete
19 #:deprecation-warning
20 #:deprecation-warning-function-name
21 #:deprecation-warning-type
22 #:deprecation-warning-reason
23 ;; Reader utils
24 #:define-syntax
25 #:enable-reader-macro #:enable-reader-macro*
26 #:disable-reader-macro #:disable-reader-macro*
27 ;; SPLIT-SEQUENCE
28 #:split-sequence #:split-sequence-if #:split-sequence-if-not
29 ;; Misc
30 #:function-name #:function-name-p
31 #:check-bounds
32 ;; Matching
33 #:multiple-value-case #:flags-case
34 ;; Time
35 #:decode-timeout #:normalize-timeout #:clamp-timeout))
37 (flet ((gather-external-symbols (&rest packages)
38 (let ((symbols (make-hash-table :test #'eq)))
39 (with-package-iterator (iterator packages :external)
40 (loop (multiple-value-bind (morep symbol) (iterator)
41 (unless morep (return))
42 (setf (gethash (alexandria:ensure-symbol symbol :iolib.base) symbols) t))))
43 (alexandria:hash-table-keys symbols))))
44 (export (gather-external-symbols :common-lisp :alexandria :iolib.base)
45 :iolib.base))