X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fdefbangconstant.lisp;h=fefa23a131a9bd49a91ba06f03e1debea661ad57;hb=58084279740fc96c6ffcd14e86dca73b71b7c288;hp=e248a203cdd2d2a269e7a8f10015301e75972987;hpb=8731c1a7c1a585d190151fa881050fb5e14c0616;p=sbcl.git diff --git a/src/code/defbangconstant.lisp b/src/code/defbangconstant.lisp index e248a20..fefa23a 100644 --- a/src/code/defbangconstant.lisp +++ b/src/code/defbangconstant.lisp @@ -22,15 +22,16 @@ ;;; 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)) + `(defconstant ,@(cdr whole))) #+sb-xc-host - ,(let ((form `(sb!xc:defconstant ,@rest))) + ,(let ((form `(sb!xc:defconstant ,@(cdr whole)))) (if (boundp '*delayed-def!constants*) `(push ',form *delayed-def!constants*) form))))