X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fparse-body.lisp;h=f19db1c0bb35b1c1ac8695163948f451caa040a9;hb=b4831dc945c0754b3ba77881e67c8ea4d0a3d905;hp=1dfb055629cff0be6ddfdeac2c500a077428f479;hpb=a530bbe337109d898d5b4a001fc8f1afa3b5dc39;p=sbcl.git diff --git a/src/code/parse-body.lisp b/src/code/parse-body.lisp index 1dfb055..f19db1c 100644 --- a/src/code/parse-body.lisp +++ b/src/code/parse-body.lisp @@ -16,9 +16,6 @@ (in-package "SB!INT") -(file-comment - "$Header$") - (/show0 "entering parse-body.lisp") ;;; Given a sequence of declarations (and possibly a documentation @@ -29,7 +26,7 @@ ;;; ;;; If DOC-STRING-ALLOWED is NIL, then no forms will be treated as ;;; documentation strings. -(defun sb!sys:parse-body (body &optional (doc-string-allowed t)) +(defun parse-body (body &optional (doc-string-allowed t)) (let ((reversed-decls nil) (forms body) (doc nil)) @@ -53,7 +50,12 @@ t))))) (declaration-p (x) (if (consp x) - (eq (car x) 'declare)))) + (let ((name (car x))) + (if (eq name 'declaim) + (progn (style-warn + "DECLAIM is met where DECLARE is expected.") + nil) + (eq name 'declare)))))) (tagbody :again (if forms