]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
spelling
authorAntoine Cœur <antoine.coeur@ef.com>
Wed, 8 May 2019 05:30:57 +0000 (13:30 +0800)
committerLasse Collin <lasse.collin@tukaani.org>
Sat, 11 May 2019 17:52:37 +0000 (20:52 +0300)
22 files changed:
Doxyfile.in
NEWS
doc/examples/11_file_info.c
src/liblzma/api/lzma/block.h
src/liblzma/api/lzma/hardware.h
src/liblzma/api/lzma/lzma12.h
src/liblzma/api/lzma/vli.h
src/liblzma/common/file_info.c
src/liblzma/common/hardware_physmem.c
src/liblzma/common/index.c
src/liblzma/common/stream_encoder_mt.c
src/liblzma/common/vli_decoder.c
src/liblzma/lz/lz_decoder.c
src/scripts/xzgrep.in
src/xz/args.c
src/xz/coder.c
src/xz/list.c
src/xz/main.c
src/xz/mytime.h
src/xz/private.h
src/xz/xz.1
windows/build.bash

index 386706ab2e28e6e7eca302817bbbbc530135f3ad..1364ff2d8993edffc8d3422c2bd577247838b60a 100644 (file)
@@ -564,7 +564,7 @@ REFERENCES_RELATION    = YES
 # If the REFERENCES_LINK_SOURCE tag is set to YES (the default)
 # and SOURCE_BROWSER tag is set to YES, then the hyperlinks from
 # functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will
-# link to the source code.  Otherwise they will link to the documentstion.
+# link to the source code.  Otherwise they will link to the documentation.
 
 REFERENCES_LINK_SOURCE = YES
 
diff --git a/NEWS b/NEWS
index 3e1be4d9f9f5c0a9006c3475e61ac2548fc08ea9..a3d354b22d53f4543a3956547789c5e50f840787 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -32,7 +32,7 @@ XZ Utils Release Notes
     * xz:
 
         - Fix "xz --list --robot missing_or_bad_file.xz" which would
-          try to print an unitialized string and thus produce garbage
+          try to print an uninitialized string and thus produce garbage
           output. Since the exit status is non-zero, most uses of such
           a command won't try to interpret the garbage output.
 
index c38c041175c8ede86aaea432fe613c976491d055..9e7b0c8e62bf3e3942d300076c5fa9033c2fb165 100644 (file)
@@ -1,7 +1,7 @@
 ///////////////////////////////////////////////////////////////////////////////
 //
 /// \file       11_file_info.c
-/// \brief      Get uncmopressed size of .xz file(s)
+/// \brief      Get uncompressed size of .xz file(s)
 ///
 /// Usage:      ./11_file_info INFILE1.xz [INFILEn.xz]...
 ///
index 7bdcfd7cbe0ced3a72f4cb310b2f4b575d29a456..962f38779cc7052f73a70fbe8fde5426cd077afb 100644 (file)
@@ -448,7 +448,7 @@ extern LZMA_API(lzma_vli) lzma_block_total_size(const lzma_block *block)
  *              - LZMA_MEM_ERROR
  *              - LZMA_OPTIONS_ERROR
  *              - LZMA_UNSUPPORTED_CHECK: block->check specifies a Check ID
- *                that is not supported by this buid of liblzma. Initializing
+ *                that is not supported by this build of liblzma. Initializing
  *                the encoder failed.
  *              - LZMA_PROG_ERROR
  */
index 5321d9af8e46d0caa86de68a71e899bd33f7e5ed..47481f2581f78ab31909c665ec5eab5815d0975b 100644 (file)
@@ -6,7 +6,7 @@
  * ways to limit the resource usage. Applications linking against liblzma
  * need to do the actual decisions how much resources to let liblzma to use.
  * To ease making these decisions, liblzma provides functions to find out
- * the relevant capabilities of the underlaying hardware. Currently there
+ * the relevant capabilities of the underlying hardware. Currently there
  * is only a function to find out the amount of RAM, but in the future there
  * will be also a function to detect how many concurrent threads the system
  * can run.
index 4e32fa3a214a33b92006cb814a91f049e5bc91ba..df5f23b61a438f3df9c1d468918343e392bc0fdc 100644 (file)
@@ -301,7 +301,7 @@ typedef struct {
         * (2^ pb =2^2=4), which is often a good choice when there's
         * no better guess.
         *
-        * When the aligment is known, setting pb accordingly may reduce
+        * When the alignment is known, setting pb accordingly may reduce
         * the file size a little. E.g. with text files having one-byte
         * alignment (US-ASCII, ISO-8859-*, UTF-8), setting pb=0 can
         * improve compression slightly. For UTF-16 text, pb=1 is a good
index 9ad13f2e2fc45cdb08df5cb8ae0ccb82b241208f..1b7a952a406d0d384df73c97b23dfc3f62d0e932 100644 (file)
@@ -54,7 +54,7 @@
  *
  * Valid VLI values are in the range [0, LZMA_VLI_MAX]. Unknown value is
  * indicated with LZMA_VLI_UNKNOWN, which is the maximum value of the
- * underlaying integer type.
+ * underlying integer type.
  *
  * lzma_vli will be uint64_t for the foreseeable future. If a bigger size
  * is needed in the future, it is guaranteed that 2 * LZMA_VLI_MAX will
index deb644f9e3257e000a764d2376ab0ccbbf75fe0c..a6b7e145ae04efb86a5fd26ac666a68e2a33f517 100644 (file)
@@ -283,7 +283,7 @@ file_info_decode(void *coder_ptr, const lzma_allocator *allocator,
 
                // This is the only Stream Header/Footer decoding where we
                // want to return LZMA_FORMAT_ERROR if the Magic Bytes don't
-               // match. Elsewehere it will be converted to LZMA_DATA_ERROR.
+               // match. Elsewhere it will be converted to LZMA_DATA_ERROR.
                return_if_error(lzma_stream_header_decode(
                                &coder->first_header_flags, coder->temp));
 
@@ -828,7 +828,7 @@ lzma_file_info_decoder_init(lzma_next_coder *next,
        // won't return 0 (which would indicate an error).
        coder->memlimit = my_max(1, memlimit);
 
-       // Preprare thse for reading the first Stream Header into coder->temp.
+       // Prepare these for reading the first Stream Header into coder->temp.
        coder->temp_pos = 0;
        coder->temp_size = LZMA_STREAM_HEADER_SIZE;
 
index 7405b658af76480779497d851f5f0c924acff3cf..a2bbbe29d4b45aa2e9893f5b27837c1f782536b5 100644 (file)
@@ -19,7 +19,7 @@ extern LZMA_API(uint64_t)
 lzma_physmem(void)
 {
        // It is simpler to make lzma_physmem() a wrapper for
-       // tuklib_physmem() than to hack appropriate symbol visiblity
+       // tuklib_physmem() than to hack appropriate symbol visibility
        // support for the tuklib modules.
        return tuklib_physmem();
 }
index 007e1570424d84e0601e41d74ba7356bfad6a771..a41e8f33083b8bfa815f1f2fc5d9a01f76dd07a7 100644 (file)
@@ -105,7 +105,7 @@ typedef struct {
 
 
 typedef struct {
-       /// Every index_stream is a node in the tree of Sreams.
+       /// Every index_stream is a node in the tree of Streams.
        index_tree_node node;
 
        /// Number of this Stream (first one is 1)
@@ -166,7 +166,7 @@ struct lzma_index_s {
        lzma_vli index_list_size;
 
        /// How many Records to allocate at once in lzma_index_append().
-       /// This defaults to INDEX_GROUP_SIZE but can be overriden with
+       /// This defaults to INDEX_GROUP_SIZE but can be overridden with
        /// lzma_index_prealloc().
        size_t prealloc;
 
index 2efe44c2534f3010c77740cb8a4c409512b119df..448d871cd757b11eb01138a61a34bfc2ab2ccccd 100644 (file)
@@ -958,7 +958,7 @@ stream_encoder_mt_init(lzma_next_coder *next, const lzma_allocator *allocator,
        // Validate the filter chain so that we can give an error in this
        // function instead of delaying it to the first call to lzma_code().
        // The memory usage calculation verifies the filter chain as
-       // a side effect so we take advatange of that.
+       // a side effect so we take advantage of that.
        if (lzma_raw_encoder_memusage(filters) == UINT64_MAX)
                return LZMA_OPTIONS_ERROR;
 
index c181828bf5644cf10a37e9382a8b81222b6a2279..af2799d1fb901790fdb5fe5984e91e7c07f4acf3 100644 (file)
@@ -72,7 +72,7 @@ lzma_vli_decode(lzma_vli *restrict vli, size_t *vli_pos,
                // corrupt.
                //
                // If we need bigger integers in future, old versions liblzma
-               // will confusingly indicate the file being corrupt istead of
+               // will confusingly indicate the file being corrupt instead of
                // unsupported. I suppose it's still better this way, because
                // in the foreseeable future (writing this in 2008) the only
                // reason why files would appear having over 63-bit integers
index c7086440bfa9aecb384adbe8be9084bef83cf584..bb21d0d0e7d003f903904831165e6c7a682d52e3 100644 (file)
@@ -241,7 +241,7 @@ lzma_lz_decoder_init(lzma_next_coder *next, const lzma_allocator *allocator,
        if (lz_options.dict_size < 4096)
                lz_options.dict_size = 4096;
 
-       // Make dictionary size a multipe of 16. Some LZ-based decoders like
+       // Make dictionary size a multiple of 16. Some LZ-based decoders like
        // LZMA use the lowest bits lzma_dict.pos to know the alignment of the
        // data. Aligned buffer is also good when memcpying from the
        // dictionary to the output buffer, since applications are
index a1fd19cfb435e27bb8399554762ad8667c973a3e..a570a905448cbc5bf63be8698b5ea196c0f366ef 100644 (file)
@@ -200,7 +200,7 @@ for i; do
   )
   r=$?
 
-  # fail occured previously, nothing worse can happen
+  # fail occurred previously, nothing worse can happen
   test $res -gt 1 && continue
 
   test "$xz_status" -eq 0 || test "$xz_status" -eq 2 \
index 341f29e1b0e933ac3f99f62390451de79234d966..688d7c3a961570c851737111b44e0feeca361e11 100644 (file)
@@ -88,7 +88,7 @@ parse_block_list(char *str)
                        // There is no string, that is, a comma follows
                        // another comma. Use the previous value.
                        //
-                       // NOTE: We checked earler that the first char
+                       // NOTE: We checked earlier that the first char
                        // of the whole list cannot be a comma.
                        assert(i > 0);
                        opt_block_list[i] = opt_block_list[i - 1];
index f36d1bf2fc72f301d58633799a31fdda9a0fd2f4..f5e8e8472e3e494cd109892ad5a77bb7bd6b6043 100644 (file)
@@ -635,7 +635,7 @@ coder_normal(file_pair *pair)
        // only a single block is created.
        uint64_t block_remaining = UINT64_MAX;
 
-       // next_block_remining for when we are in single-threaded mode and
+       // next_block_remaining for when we are in single-threaded mode and
        // the Block in --block-list is larger than the --block-size=SIZE.
        uint64_t next_block_remaining = 0;
 
@@ -718,7 +718,7 @@ coder_normal(file_pair *pair)
                                || action == LZMA_FULL_BARRIER)) {
                        if (action == LZMA_SYNC_FLUSH) {
                                // Flushing completed. Write the pending data
-                               // out immediatelly so that the reading side
+                               // out immediately so that the reading side
                                // can decompress everything compressed so far.
                                if (io_write(pair, &out_buf, IO_BUFFER_SIZE
                                                - strm.avail_out))
index 7d7ad98f2e4e9385adeb496efa18c8cd1c0e46c9..7d2df8765624397029b3a44280823995d519964e 100644 (file)
@@ -58,7 +58,7 @@ typedef struct {
 
 
 /// Strings ending in a colon. These are used for lines like
-/// "  Foo:   123 MiB". These are groupped because translated strings
+/// "  Foo:   123 MiB". These are grouped because translated strings
 /// may have different maximum string length, and we want to pad all
 /// strings so that the values are aligned nicely.
 static const char *colon_strs[] = {
@@ -258,7 +258,7 @@ init_headings(void)
 {
        // Before going through the heading strings themselves, treat
        // the Check heading specially: Look at the widths of the various
-       // check names and increase the width of the Check column if neeeded.
+       // check names and increase the width of the Check column if needed.
        // The width of the heading name "Check" will then be handled normally
        // with other heading names in the second loop in this function.
        for (unsigned i = 0; i < ARRAY_SIZE(check_names); ++i) {
index af550c4585d91fbe507368ec01738c38bc7829ab..d74caf3729f7954a65b8678c46a048f619e184a4 100644 (file)
@@ -159,7 +159,7 @@ main(int argc, char **argv)
        // Initialize handling of error/warning/other messages.
        message_init();
 
-       // Set hardware-dependent default values. These can be overriden
+       // Set hardware-dependent default values. These can be overridden
        // on the command line, thus this must be done before args_parse().
        hardware_init();
 
index ea291eed81c7a3b0519f6360f4dabb85557b8c1e..4505724c65eeec4a3ec84e42887a25ec0d9ea3d9 100644 (file)
@@ -43,5 +43,5 @@ extern void mytime_set_flush_time(void);
 ///
 /// This returns -1 if no timed flushing is used.
 ///
-/// The return value is inteded for use with poll().
+/// The return value is intended for use with poll().
 extern int mytime_get_flush_timeout(void);
index e61563ac72af04bd331ab7a0603feefa71b4819d..d97c22cc66748987d05a78755e35589af217e896 100644 (file)
@@ -1,7 +1,7 @@
 ///////////////////////////////////////////////////////////////////////////////
 //
 /// \file       private.h
-/// \brief      Common includes, definions, and prototypes
+/// \brief      Common includes, definitions, and prototypes
 //
 //  Author:     Lasse Collin
 //
index 63087ca77c592105578707bdfdf6b6052a2b6e20..691bd2f894c688eeb005b78d824ebb12c75dad55 100644 (file)
@@ -1052,7 +1052,7 @@ if using more threads would exceed the memory usage limit.
 Currently the only threading method is to split the input into
 blocks and compress them independently from each other.
 The default block size depends on the compression level and
-can be overriden with the
+can be overridden with the
 .BI \-\-block\-size= size
 option.
 .IP ""
index 4a6a28433097e5e32d08c07aad66447dda300114..9a3ebe0c256680568047c64260eb70cf7c159699 100644 (file)
@@ -112,7 +112,7 @@ buildit()
        strip -vg "$DESTDIR/"*.a
 }
 
-# Copy files and convert newlines from LF to CR+LF. Optinally add a suffix
+# Copy files and convert newlines from LF to CR+LF. Optionally add a suffix
 # to the destination filename.
 #
 # The first argument is the destination directory. The second argument is