X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fdefbangtype.lisp;h=7c58c4d37ea2babe4ce16326b1fa41525051046d;hb=5cc68148d1a5f9bacf4eb12e396b680d992fc2c2;hp=f5f0b4e7ee5c4292468cbc34985590ac9d46af71;hpb=a530bbe337109d898d5b4a001fc8f1afa3b5dc39;p=sbcl.git diff --git a/src/code/defbangtype.lisp b/src/code/defbangtype.lisp index f5f0b4e..7c58c4d 100644 --- a/src/code/defbangtype.lisp +++ b/src/code/defbangtype.lisp @@ -8,13 +8,10 @@ ;;;; files for more information. (in-package "SB!KERNEL") - -(file-comment - "$Header$") ;;;; the DEF!TYPE macro -;;; DEF!MACRO = cold DEFTYPE, a version of DEFTYPE which at +;;; DEF!TYPE = cold DEFTYPE, a version of DEFTYPE which at ;;; build-the-cross-compiler time defines its macro both in the ;;; cross-compilation host Lisp and in the target Lisp. Basically, ;;; DEF!TYPE does something like @@ -31,11 +28,11 @@ ;;; completely parallel, at which time they should be merged to ;;; eliminate the duplicate code. -(defmacro def!type (&rest rest) +(defmacro def!type (name &rest rest) `(progn - (deftype ,@rest) + (deftype ,name ,@rest) #+sb-xc-host - ,(let ((form `(sb!xc:deftype ,@(uncross rest)))) + ,(let ((form `(sb!xc:deftype ,(uncross name) ,@rest))) (if (boundp '*delayed-def!types*) `(push ',form *delayed-def!types*) form))))