Fix typos in docstrings and function names.
[sbcl.git] / src / code / defbangconstant.lisp
index e248a20..9c5d0e7 100644 (file)
 ;;; confident in my understanding, I might try to do drastic surgery,
 ;;; but my head is currently spinning (host? target? both?) so I'll go
 ;;; for the minimal changeset... -- CSR, 2002-05-11
-(defmacro def!constant (&rest rest name value &optional doc)
+(defmacro def!constant (&whole whole name value &optional doc)
+  (declare (ignore value doc #-sb-xc-host name))
   `(progn
      #-sb-xc-host
-     (defconstant ,@rest)
+     (defconstant ,@(cdr whole))
      #+sb-xc-host
      ,(unless (eql (find-symbol (symbol-name name) :cl) name)
-       `(defconstant ,@rest))
-     #+sb-xc-host 
-     ,(let ((form `(sb!xc:defconstant ,@rest)))
-       (if (boundp '*delayed-def!constants*)
-           `(push ',form *delayed-def!constants*)
-           form))))
+        `(defconstant ,@(cdr whole)))
+     #+sb-xc-host
+     ,(let ((form `(sb!xc:defconstant ,@(cdr whole))))
+        (if (boundp '*delayed-def!constants*)
+            `(push ',form *delayed-def!constants*)
+            form))))
 
 ;;; machinery to implement DEF!CONSTANT delays
 #+sb-xc-host
   (/show "done binding *DELAYED-DEF!CONSTANTS*")
   (defun force-delayed-def!constants ()
     (if (boundp '*delayed-def!constants*)
-       (progn
-         (mapc #'eval *delayed-def!constants*)
-         (makunbound '*delayed-def!constants*))
-       ;; This condition is probably harmless if it comes up when
-       ;; interactively experimenting with the system by loading a
-       ;; source file into it more than once. But it's worth warning
-       ;; about it because it definitely shouldn't come up in an
-       ;; ordinary build process.
-       (warn "*DELAYED-DEF!CONSTANTS* is already unbound."))))
+        (progn
+          (mapc #'eval *delayed-def!constants*)
+          (makunbound '*delayed-def!constants*))
+        ;; This condition is probably harmless if it comes up when
+        ;; interactively experimenting with the system by loading a
+        ;; source file into it more than once. But it's worth warning
+        ;; about it because it definitely shouldn't come up in an
+        ;; ordinary build process.
+        (warn "*DELAYED-DEF!CONSTANTS* is already unbound."))))