1 ;;;; This file is not used at cold load time. Instead, it can be
2 ;;;; loaded into an initialized SBCL to get it into a nostalgic frame
3 ;;;; of mind, remembering the way things were in cold init, so that it
4 ;;;; can READ code which is ordinarily read only when bootstrapping.
5 ;;;; (This can be useful when debugging the system, since the debugger
6 ;;;; likes to be able to read the source for the code. It can also be
7 ;;;; useful when experimenting with patches on a running system.)
9 ;;;; This software is part of the SBCL system. See the README file for
10 ;;;; more information.
12 ;;;; This software is derived from the CMU CL system, which was
13 ;;;; written at Carnegie Mellon University and released into the
14 ;;;; public domain. The software is in the public domain and is
15 ;;;; provided with absolutely no warranty. See the COPYING and CREDITS
16 ;;;; files for more information.
20 (in-package "SB-COLD")
22 ;;; We need the #! readtable modifications.
23 (load "src/cold/shebang.lisp")
25 ;;; #!+ and #!- now refer to *FEATURES* values (as opposed to the way
26 ;;; that they referred to special target-only *SHEBANG-FEATURES* values
27 ;;; during cold init).
28 (setf sb-cold:*shebang-features* *features*)
29 ;;; Just in case we want to play with the initial value of
30 ;;; backend-subfeatures
31 (setf sb-cold:*shebang-backend-subfeatures* sb-c:*backend-subfeatures*)
32 ;;; The nickname SB!XC now refers to the CL package.
33 (rename-package "COMMON-LISP"
35 (cons "SB!XC" (package-nicknames "CL")))
37 ;;; Any other name SB!FOO refers to the package now called SB-FOO.
38 (dolist (package (list-all-packages))
39 (let ((name (package-name package))
40 (nicknames (package-nicknames package))
41 (warm-name-prefix "SB-")
42 (cold-name-prefix "SB!"))
43 (when (string= name warm-name-prefix :end1 (length warm-name-prefix))
44 (let* ((stem (subseq name (length cold-name-prefix)))
45 (cold-name (concatenate 'simple-string cold-name-prefix stem)))
46 (rename-package package name (cons cold-name nicknames))))))