CMAKE_C_COMPILER_ID MATCHES "^Clang$")
#
# During checking iconv proto type, we should use -Werror to avoid the
- # success of iconv detection with a warning which success is a miss
- # detection. So this needs for all build mode(even it's a release mode).
+ # success of iconv detection with a warning, which would be a false
+ # positive. So this is needed for all build modes, even in release mode.
#
SET(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -Werror")
ENDIF (CMAKE_C_COMPILER_ID MATCHES "^GNU$" OR
libraries. This also reduces the size of statically-linked
binaries in environments where that matters.
-* The library is generally _thread safe_ depending on the platform:
+* The library is generally _thread-safe_ depending on the platform:
it does not define any global variables of its own. However, some
platforms do not provide fully thread-safe versions of key C library
functions. On those platforms, libarchive will use the non-thread-safe
multiple threads. Of course, those modules are completely
optional and you can use the rest of libarchive without them.
-* The library is _not_ thread aware, however. It does no locking
+* The library is _not_ thread-aware, however. It does no locking
or thread management of any kind. If you create a libarchive
object and need to access it from multiple threads, you will
need to provide your own locking.
size_t nbytes_req = (*ravail+1023) & ~1023U;
ssize_t tested;
- /* Increase reading bytes if it is not enough to at least
- * new two lines. */
+ /* Increase reading bytes if it is not enough for at least
+ * two new lines. */
if (nbytes_req < (size_t)*ravail + 160)
nbytes_req <<= 1;
/*
* Calculate a new buffer size for in_buff.
- * Increase its value until it has enough size we need.
+ * Increase its value until it is enough for our needs.
*/
newsize = uudecode->in_allocated;
do {
}
/*
* If there is remaining data which is saved by
- * previous calling, use it first.
+ * a previous call, use it first.
*/
if (ensure_in_buff_size(self, uudecode,
avail_in + uudecode->in_cnt) != ARCHIVE_OK)
}
/*
- * NOTE: if a filename suffix is ".z", it is the file gziped by afio.
- * it would be nice that we can show uncompressed file size and we can
- * uncompressed file contents automatically, unfortunately we have nothing
+ * NOTE: if a filename suffix is ".z", it is a file gzipped by afio.
+ * it would be nice if we could show uncompressed file size and
+ * uncompress file contents automatically, unfortunately we have nothing
* to get a uncompressed file size while reading each header. It means
* we also cannot uncompress file contents under our framework.
*/
if (len >= MAX_LINE_LEN)
return (-1);
- /* Increase reading bytes if it is not enough to at least
- * new two lines. */
+ /* Increase reading bytes if it is not enough for at least
+ * two new lines. */
if (nbytes_req < (size_t)*ravail + 160)
nbytes_req <<= 1;
--len;
value = 1;
}
- /* A keyword should have a its value unless
- * "/unset" operation. */
+ /* A keyword should have a value unless this is
+ * an "/unset" operation. */
if (!unset && value == 0)
return (-1);
}
} else if (form_D == 1) {
if (!last_is_path && keywords > 0)
/* This this is not `form D'
- * and We cannot accept mixed
+ * and we cannot accept mixed
* format. */
break;
}
* to read the entire mtree file into memory up front.
*
* The parsing is done in two steps. First, it is decided if a line
- * changes the global defaults and if it is, processed accordingly.
+ * changes the global defaults and if it does, it is processed accordingly.
* Otherwise, the options of the line are merged with the current
* global options.
*/
if (sc->to_cp == CP_C_LOCALE) {
/*
- * "C" locale special process.
+ * "C" locale special processing.
*/
u16 = _p;
ll = 0;
avail = as16->buffer_length - 2;
if (sc->from_cp == CP_C_LOCALE) {
/*
- * "C" locale special process.
+ * "C" locale special processing.
*/
count = 0;
while (count < length && *s) {
rm -r $dir
}
#
-# Make a lzip file from split tar file.
+# Make a lzip file from the split tar file.
#
name=test_compat_lzip_1
dir="$name`date +%Y%m%d%H%M%S`.$USER"
*/
/*
- * Verify our ability to read sample files compatibly with lzip.
+ * Verify our ability to read the sample files compatibly with lzip.
*
* In particular:
* * lzip will read multiple lzip streams, concatenating the output