(in-package "SB!INT")
-(file-comment
- "$Header$")
-
(/show0 "entering parse-body.lisp")
;;; Given a sequence of declarations (and possibly a documentation
;;;
;;; 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)
+ (progn (style-warn
+ "DECLAIM is met where DECLARE is expected.")
+ nil)
+ (eq name 'declare))))))
(tagbody
:again
(if forms