ruby-changes:24210
From: ktsj <ko1@a...>
Date: Sun, 1 Jul 2012 22:32:41 +0900 (JST)
Subject: [ruby-changes:24210] ktsj:r36261 (trunk): * ext/zlib/zlib.c: cosmetic changes.
ktsj 2012-07-01 22:32:32 +0900 (Sun, 01 Jul 2012) New Revision: 36261 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36261 Log: * ext/zlib/zlib.c: cosmetic changes. Modified files: trunk/ext/zlib/zlib.c Index: ext/zlib/zlib.c =================================================================== --- ext/zlib/zlib.c (revision 36260) +++ ext/zlib/zlib.c (revision 36261) @@ -230,19 +230,19 @@ * for use on virtually any computer hardware and operating system. * * The zlib compression library provides in-memory compression and - * decompression functions, including integrity checks of the uncompressed + * decompression functions, including integrity checks of the uncompressed * data. * * The zlib compressed data format is described in RFC 1950, which is a * wrapper around a deflate stream which is described in RFC 1951. * - * The library also supports reading and writing files in gzip (.gz) format + * The library also supports reading and writing files in gzip (.gz) format * with an interface similar to that of IO. The gzip format is described in * RFC 1952 which is also a wrapper around a deflate stream. * * The zlib format was designed to be compact and fast for use in memory and on * communications channels. The gzip format was designed for single-file - * compression on file systems, has a larger header than zlib to maintain + * compression on file systems, has a larger header than zlib to maintain * directory information, and uses a different, slower check method than zlib. * * See your system's zlib.h for further information about zlib @@ -250,18 +250,18 @@ * == Sample usage * * Using the wrapper to compress strings with default parameters is quite - * simple: + * simple: * * require "zlib" * * data_to_compress = File.read("don_quixote.txt") - * + * * puts "Input size: #{data_to_compress.size}" * #=> Input size: 2347740 - * + * * data_compressed = Zlib::Deflate.deflate(data_to_compress) * - * puts "Compressed size: #{data_compressed.size}" + * puts "Compressed size: #{data_compressed.size}" * #=> Compressed size: 887238 * * uncompressed_data = Zlib::Inflate.inflate(data_compressed) @@ -1307,12 +1307,12 @@ * The +level+ sets the compression level for the deflate stream between 0 (no * compression) and 9 (best compression. The following constants have been * defined to make code more readable: - * + * * * Zlib::NO_COMPRESSION = 0 - * * Zlib::BEST_SPEED = 1 + * * Zlib::BEST_SPEED = 1 * * Zlib::DEFAULT_COMPRESSION = 6 * * Zlib::BEST_COMPRESSION = 9 - * + * * The +window_bits+ sets the size of the history buffer and should be between * 8 and 15. Larger values of this parameter result in better compression at * the expense of memory usage. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/