ignore deprecations in words that are themselves deprecated

db4
Joe Groff 2009-08-29 17:41:21 -05:00
parent 77bf009b6e
commit 51405868d1
1 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
! (c)2009 Joe Groff bsd license
USING: accessors arrays assocs compiler.units debugger init io
USING: accessors arrays assocs combinators.short-circuit
compiler.units debugger init io
io.streams.null kernel namespaces prettyprint sequences
source-files.errors summary tools.crossref
tools.crossref.private tools.errors words ;
@ -41,7 +42,7 @@ T{ error-type
: check-deprecations ( usage -- )
dup word? [
dup "forgotten" word-prop
dup { [ "forgotten" word-prop ] [ deprecated? ] } 1||
[ clear-deprecation-note ] [
dup def>> uses [ deprecated? ] filter
[ clear-deprecation-note ] [ >array deprecation-note ] if-empty