Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libz Use -literal instead of -unfilled Bds; replace Open...



details:   https://anonhg.NetBSD.org/src/rev/5f61a06cd3e8
branches:  trunk
changeset: 558158:5f61a06cd3e8
user:      wiz <wiz%NetBSD.org@localhost>
date:      Thu Jan 29 15:23:09 2004 +0000

description:
Use -literal instead of -unfilled Bds; replace OpenBSD with .Ox;
<> -> \*[Lt]\*[Gt].

diffstat:

 lib/libz/zlib.3 |  38 ++++++++++++++++++++++----------------
 1 files changed, 22 insertions(+), 16 deletions(-)

diffs (139 lines):

diff -r ced993484f7b -r 5f61a06cd3e8 lib/libz/zlib.3
--- a/lib/libz/zlib.3   Thu Jan 29 13:39:44 2004 +0000
+++ b/lib/libz/zlib.3   Thu Jan 29 15:23:09 2004 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: zlib.3,v 1.2 2004/01/29 13:08:19 mrg Exp $
+.\"    $NetBSD: zlib.3,v 1.3 2004/01/29 15:23:09 wiz Exp $
 .\"    $OpenBSD: zlib.3,v 1.1 2003/09/25 09:12:09 jmc Exp $
 .\"
 .\"  Copyright (C) 1995-2002 Jean-loup Gailly and Mark Adler
@@ -65,7 +65,7 @@
 .Ft int
 .Fn inflateReset "z_streamp strm"
 .Ss Utility functions
-.Fd typedef voidp gzFile;
+.Fd typedef voidp gzFile ;
 .Pp
 .Ft int
 .Fn compress "Bytef *dest" "uLongf *destLen" "const Bytef *source" "uLong sourceLen"
@@ -391,7 +391,7 @@
 then it must be called again as described above.
 .Pp
 .Fn deflate
-sets strm->adler to the adler32 checksum of all input read so far
+sets strm-\*[Gt]adler to the adler32 checksum of all input read so far
 (that is,
 .Fa total_in
 bytes).
@@ -621,10 +621,10 @@
 .Fn inflateSetDictionary
 below),
 .Fn inflate
-sets strm->adler to the adler32 checksum of the dictionary
+sets strm-\*[Gt]adler to the adler32 checksum of the dictionary
 chosen by the compressor and returns
 .Dv Z_NEED_DICT ;
-otherwise it sets strm->adler to the adler32 checksum of all output produced
+otherwise it sets strm-\*[Gt]adler to the adler32 checksum of all output produced
 so far
 (that is,
 .Fa total_out
@@ -825,7 +825,7 @@
 Thus the strings most likely to be useful should be
 put at the end of the dictionary, not at the front.
 .Pp
-Upon return of this function, strm->adler is set to the Adler32 value
+Upon return of this function, strm-\*[Gt]adler is set to the Adler32 value
 of the dictionary; the decompressor may later use this value to determine
 which dictionary has been used by the compressor.
 (The Adler32 value applies to the whole dictionary even if only a subset
@@ -927,7 +927,7 @@
 the stream state must be set as for a call to
 .Fn deflate ,
 since the currently available input may have to be compressed and flushed.
-In particular, strm->avail_out must be non-zero.
+In particular, strm-\*[Gt]avail_out must be non-zero.
 .Pp
 .Fn deflateParams
 returns
@@ -936,7 +936,7 @@
 .Dv Z_STREAM_ERROR
 if the source stream state was inconsistent or if a parameter was invalid, or
 .Dv Z_BUF_ERROR
-if strm->avail_out was zero.
+if strm-\*[Gt]avail_out was zero.
 .It Xo
 .Fa int
 .Fn inflateInit2 "z_streamp strm" "int windowBits" ;
@@ -1198,9 +1198,13 @@
 file for reading or writing.
 The mode parameter is as in
 .Xr fopen 3
-.Pq \&"rb\&" or \&"wb\&"
+.Po
+.Qq rb
+or
+.Qq wb
+.Pc
 but can also include a compression level
-.Pq "wb9"
+.Pq Qq wb9
 or a strategy:
 .Sq f
 for filtered data, as in
@@ -1547,7 +1551,7 @@
 An Adler-32 checksum is almost as reliable as a CRC32 but can be computed
 much faster.
 Usage example:
-.Bd -unfilled -offset indent
+.Bd -literal -offset indent
 uLong adler = adler32(0L, Z_NULL, 0);
 
 while (read_buffer(buffer, length) != EOF) {
@@ -1572,7 +1576,7 @@
 .Pq one's complement
 is performed within this function so it shouldn't be done by the application.
 Usage example:
-.Bd -unfilled -offset indent
+.Bd -literal -offset indent
 uLong crc = crc32(0L, Z_NULL, 0);
 
 while (read_buffer(buffer, length) != EOF) {
@@ -1582,7 +1586,7 @@
 .Ed
 .El
 .Sh STRUCTURES
-.Bd -unfilled
+.Bd -literal
 struct internal_state;
 
 typedef struct z_stream_s {
@@ -1687,7 +1691,7 @@
 (particularly if the decompressor wants to decompress everything
 in a single step).
 .Sh CONSTANTS
-.Bd -unfilled
+.Bd -literal
 #define Z_NO_FLUSH      0
 #define Z_PARTIAL_FLUSH 1 /* will be removed, use Z_SYNC_FLUSH instead */
 #define Z_SYNC_FLUSH    2
@@ -1733,7 +1737,7 @@
 #define Z_NULL  0  /* for initializing zalloc, zfree, opaque */
 
 #define zlib_version zlibVersion()
-/* for compatibility with versions < 1.0.2 */
+/* for compatibility with versions \*[Lt] 1.0.2 */
 .Ed
 .Sh VARIOUS HACKS
 deflateInit and inflateInit are macros to allow checking the
@@ -1795,7 +1799,9 @@
 .Aq Pa zlib.h
 converted by
 .An piaip Aq piaip%csie.ntu.edu.tw@localhost
-and was converted to mdoc format by the OpenBSD project.
+and was converted to mdoc format by the
+.Ox
+project.
 .Sh AUTHORS
 .An Jean-loup Gailly Aq jloup%gzip.org@localhost
 .An Mark Adler Aq madler%alumni.caltech.edu@localhost



Home | Main Index | Thread Index | Old Index