projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0.8.0.78.vector-nil-string.14:
[sbcl.git]
/
src
/
code
/
parse-body.lisp
diff --git
a/src/code/parse-body.lisp
b/src/code/parse-body.lisp
index
1dfb055
..
f19db1c
100644
(file)
--- a/
src/code/parse-body.lisp
+++ b/
src/code/parse-body.lisp
@@
-16,9
+16,6
@@
(in-package "SB!INT")
(in-package "SB!INT")
-(file-comment
- "$Header$")
-
(/show0 "entering parse-body.lisp")
;;; Given a sequence of declarations (and possibly a documentation
(/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.
;;;
;;; 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))
(let ((reversed-decls nil)
(forms body)
(doc nil))
@@
-53,7
+50,12
@@
t)))))
(declaration-p (x)
(if (consp x)
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
(tagbody
:again
(if forms