0.8.2.29:
[sbcl.git] / src / code / parse-body.lisp
index c6926a9..616b16b 100644 (file)
@@ -26,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))
                      t)))))
            (declaration-p (x)
              (if (consp x)
-               (eq (car x) 'declare))))
+                 (let ((name (car x)))
+                   (if (eq name 'declaim)
+                      ;; technically legal, but rather unlikely to
+                      ;; be what the user intended...
+                       (progn
+                        (style-warn
+                         "DECLAIM where DECLARE was probably intended")
+                        nil)
+                       (eq name 'declare))))))
       (tagbody
         :again
         (if forms