Revert "compression.zlib: fix help-lint."

This reverts commit 30492d1a06.
db4
Doug Coleman 2015-05-02 10:46:00 -07:00
parent 30492d1a06
commit 0371fa3137
2 changed files with 4 additions and 4 deletions

View File

@ -29,10 +29,10 @@ HELP: compressed-size
HELP: uncompress HELP: uncompress
{ $values { $values
{ "obj" { $or compressed byte-array } } { "compressed" compressed }
{ "byte-array" byte-array } { "byte-array" byte-array }
} }
{ $description "Uncompresses, returning a byte-array of the underlying data." } ; { $description "Uncompresses a compressed object, returning a byte-array of the underlying data." } ;
ARTICLE: "compression.zlib" "Compression (ZLIB)" ARTICLE: "compression.zlib" "Compression (ZLIB)"
"The " { $vocab-link "compression.zlib" } " vocabulary provides support for ZLIB:" "The " { $vocab-link "compression.zlib" } " vocabulary provides support for ZLIB:"

View File

@ -46,7 +46,7 @@ ERROR: zlib-failed n string ;
GENERIC: uncompress ( obj -- byte-array ) GENERIC: uncompress ( obj -- byte-array )
M: compressed uncompress M: compressed uncompress ( compressed -- byte-array )
[ [
length>> [ <byte-vector> dup underlying>> ] keep length>> [ <byte-vector> dup underlying>> ] keep
ulong <ref> ulong <ref>
@ -63,6 +63,6 @@ M: compressed uncompress
2drop ulong deref memory>byte-array 2drop ulong deref memory>byte-array
] with-destructors ; ] with-destructors ;
M: byte-array uncompress M: byte-array uncompress ( byte-array -- byte-array )
[ length 5 [0,b) [ 2^ * ] with map ] keep [ length 5 [0,b) [ 2^ * ] with map ] keep
'[ _ (uncompress) ] attempt-all ; '[ _ (uncompress) ] attempt-all ;