[prev in list] [next in list] [prev in thread] [next in thread]
List: zlib-devel
Subject: [Zlib-devel] [PATCH 2/3] Fix capitalization.
From: neleai () seznam ! cz (=?utf-8?B?T25kxZllaiBCw61sa2E=?=)
Date: 2013-07-21 22:08:19
Message-ID: 20130721220819.GB14695 () domone
[Download RAW message or body]
Second part consist of proper capitalization of names. I now have
relatively small list, additions to it would be welcome.
https://github.com/neleai/stylepp/blob/master/maintained/dictionary_names
---
contrib/minizip/ioapi.h | 4 ++--
contrib/puff/puff.c | 4 ++--
examples/gun.c | 6 +++---
examples/gzlog.c | 2 +-
examples/zlib_how.html | 2 +-
5 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/contrib/minizip/ioapi.h b/contrib/minizip/ioapi.h
index e19f5c2..62f4bb0 100644
--- a/contrib/minizip/ioapi.h
+++ b/contrib/minizip/ioapi.h
@@ -10,8 +10,8 @@
Changes
- Oct-2009 - Defined ZPOS64_T to fpos_t on windows and u_int64_t on linux. (might \
need to find a better why for this)
- Oct-2009 - Change to fseeko64, ftello64 and fopen64 so large files would work on \
linux. + Oct-2009 - Defined ZPOS64_T to fpos_t on windows and u_int64_t on Linux. \
(might need to find a better why for this) + Oct-2009 - Change to fseeko64, \
ftello64 and fopen64 so large files would work on Linux.
More if/def section may be needed to support other platforms
Oct-2009 - Defined fxxxx64 calls to normal fopen/ftell/fseek so they would \
compile on windows.
(but you should use iowin32.c for windows instead)
diff --git a/contrib/puff/puff.c b/contrib/puff/puff.c
index ba58483..77af7a1 100644
--- a/contrib/puff/puff.c
+++ b/contrib/puff/puff.c
@@ -735,12 +735,12 @@ local int dynamic(struct state *s)
/* build huffman table for literal/length codes */
err = construct(&lencode, lengths, nlen);
if (err && (err < 0 || nlen != lencode.count[0] + lencode.count[1]))
- return -7; /* incomplete code ok only for single length 1 code */
+ return -7; /* incomplete code OK only for single length 1 code */
/* build huffman table for distance codes */
err = construct(&distcode, lengths + nlen, ndist);
if (err && (err < 0 || ndist != distcode.count[0] + distcode.count[1]))
- return -8; /* incomplete code ok only for single length 1 code */
+ return -8; /* incomplete code OK only for single length 1 code */
/* decode data until end-of-block code */
return codes(s, &lencode, &distcode);
diff --git a/examples/gun.c b/examples/gun.c
index 89e484f..97df1fd 100644
--- a/examples/gun.c
+++ b/examples/gun.c
@@ -114,7 +114,7 @@ local unsigned in(void *in_desc, z_const unsigned char **buf)
/* structure for infback() to pass to output function out() -- it maintains the
output file, a running CRC-32 check on the output and the total number of
bytes output, both for checking against the gzip trailer. (The length in
- the gzip trailer is stored modulo 2^32, so it's ok if a long is 32 bits and
+ the gzip trailer is stored modulo 2^32, so it's OK if a long is 32 bits and
the output is greater than 4 GB.) */
struct outd {
int outfile;
@@ -246,7 +246,7 @@ local int lunpipe(unsigned have, z_const unsigned char *next, \
struct ind *indp,
/* set up: get first 9-bit code, which is the first decompressed byte, but
don't create a table entry until the next code */
- if (NEXT() == -1) /* no compressed data is ok */
+ if (NEXT() == -1) /* no compressed data is OK */
return Z_OK;
final = prev = (unsigned)last; /* low 8 bits of code */
if (NEXT() == -1) /* missing a bit */
@@ -401,7 +401,7 @@ local int gunpipe(z_stream *strm, int infile, int outfile)
/* look for the two magic header bytes for a gzip stream */
if (NEXT() == -1) {
ret = Z_OK;
- break; /* empty gzip stream is ok */
+ break; /* empty gzip stream is OK */
}
if (last != 31 || (NEXT() != 139 && last != 157)) {
strm->msg = (char *)"incorrect header check";
diff --git a/examples/gzlog.c b/examples/gzlog.c
index 922f878..7eaecc0 100644
--- a/examples/gzlog.c
+++ b/examples/gzlog.c
@@ -1037,7 +1037,7 @@ int gzlog_write(gzlog *logd, void *data, size_t len)
}
/* gzlog_close() return values:
- 0: ok
+ 0: OK
-3: invalid log pointer argument */
int gzlog_close(gzlog *logd)
{
diff --git a/examples/zlib_how.html b/examples/zlib_how.html
index 444ff1c..a231d1f 100644
--- a/examples/zlib_how.html
+++ b/examples/zlib_how.html
@@ -232,7 +232,7 @@ requests are made.
not? Well, it turns out that <tt>deflate()</tt> can do no wrong here. Let's go \
through <tt>deflate()</tt>'s return values and dispense with them one by one. The \
possible values are <tt>Z_OK</tt>, <tt>Z_STREAM_END</tt>, <tt>Z_STREAM_ERROR</tt>, \
or <tt>Z_BUF_ERROR</tt>. <tt>Z_OK</tt>
-is, well, ok. <tt>Z_STREAM_END</tt> is also ok and will be returned for the last \
call of +is, well, OK. <tt>Z_STREAM_END</tt> is also OK and will be returned for the \
last call of <tt>deflate()</tt>. This is already guaranteed by calling \
<tt>deflate()</tt> with <tt>Z_FINISH</tt> until it has no more output. \
<tt>Z_STREAM_ERROR</tt> is only possible if the stream is not initialized properly, \
but we did initialize it properly. There is no harm in checking for
--
1.8.3.2
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic