Skip to content
Snippets Groups Projects
Commit 5c4bb87c authored by ram's avatar ram
Browse files

Moved bootstrap hacks out of this file so that they can be compiled afterward

but still loaded before the structures are defined.
parent 27533556
No related branches found
No related tags found
No related merge requests found
...@@ -16,44 +16,6 @@ ...@@ -16,44 +16,6 @@
(in-package 'c) (in-package 'c)
;;; Initialization hacks:
#+new-compiler
(progn
;;; Make these types be sort-of-defined to allow bootstrapping.
(setf (info type defined-structure-info 'defstruct-description)
(make-defstruct-description))
(setf (info type defined-structure-info 'defstruct-slot-description)
(make-defstruct-description))
;;; Define this now so that EQUAL works:
;;;
(defun pathnamep (x)
(and (structurep x)
(eq (%primitive header-ref x %g-vector-structure-name-slot)
'pathname)))
;;; Define so that we can test for VOLATILE-INFO-ENVs from the beginning of
;;; initialization.
;;;
(defun c::volatile-info-env-p (x)
(and (structurep x)
(eq (%primitive header-ref x %g-vector-structure-name-slot)
'c::volatile-info-env)))
;;; Not really a structure, but at least a type-related initialization hack:
;;;
(deftype c::inlinep ()
'(member :inline :maybe-inline :notinline nil))
;;;
(deftype c::boolean ()
'(member t nil))
); #+new-compiler
(defstruct (defstruct-description (defstruct (defstruct-description
(:conc-name dd-) (:conc-name dd-)
(:print-function print-defstruct-description)) (:print-function print-defstruct-description))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment