X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fdefboot.lisp;h=ddd6355f9ca01e4a9bc923deeace5c6cd66d0673;hb=5d04a95274c9ddaebbcd6ddffc5d646e2c25598c;hp=38199fa020203012ffd4b54a18f52408305e4969;hpb=45bc305be4e269d2e1a477c8e0ae9a64df1ccd1c;p=sbcl.git diff --git a/src/code/defboot.lisp b/src/code/defboot.lisp index 38199fa..ddd6355 100644 --- a/src/code/defboot.lisp +++ b/src/code/defboot.lisp @@ -212,14 +212,15 @@ evaluated as a PROGN." #-sb-xc-host (defun %defun (name def doc inline-lambda source-location) - (declare (ignore source-location)) (declare (type function def)) (declare (type (or null simple-string) doc)) (aver (legal-fun-name-p name)) ; should've been checked by DEFMACRO DEFUN (sb!c:%compiler-defun name inline-lambda nil) (when (fboundp name) (/show0 "redefining NAME in %DEFUN") - (style-warn "redefining ~S in DEFUN" name)) + (style-warn 'sb!kernel::redefinition-with-defun :name name + :old (fdefinition name) :new def + :new-location source-location)) (setf (sb!xc:fdefinition name) def) (sb!c::note-name-defined name :function)