]> wimlib.net Git - wimlib/commitdiff
Adjust naming of (de)compression files
authorEric Biggers <ebiggers3@gmail.com>
Fri, 26 Dec 2014 20:16:44 +0000 (14:16 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Fri, 26 Dec 2014 20:28:38 +0000 (14:28 -0600)
14 files changed:
Makefile.am
README
include/wimlib/decompress_common.h
include/wimlib/lzms_common.h [moved from include/wimlib/lzms.h with 97% similarity]
include/wimlib/lzx_common.h [moved from include/wimlib/lzx.h with 95% similarity]
include/wimlib/xpress_constants.h [moved from include/wimlib/xpress.h with 53% similarity]
src/lzms_common.c [moved from src/lzms-common.c with 99% similarity]
src/lzms_compress.c [moved from src/lzms-compress.c with 99% similarity]
src/lzms_decompress.c [moved from src/lzms-decompress.c with 99% similarity]
src/lzx_common.c [moved from src/lzx-common.c with 99% similarity]
src/lzx_compress.c [moved from src/lzx-compress.c with 99% similarity]
src/lzx_decompress.c [moved from src/lzx-decompress.c with 98% similarity]
src/xpress_compress.c [moved from src/xpress-compress.c with 99% similarity]
src/xpress_decompress.c [moved from src/xpress-decompress.c with 97% similarity]

index 39b86f22ed0390c75888465cacfae15adaaf500c..0893ef66aa29a826995729b64c293e24ced2ec6a 100644 (file)
@@ -64,12 +64,12 @@ libwim_la_SOURCES =         \
        src/lz_null.c           \
        src/lz_repsearch.c      \
        src/lz_suffix_array_utils.c     \
        src/lz_null.c           \
        src/lz_repsearch.c      \
        src/lz_suffix_array_utils.c     \
-       src/lzms-common.c       \
-       src/lzms-compress.c     \
-       src/lzms-decompress.c   \
-       src/lzx-common.c        \
-       src/lzx-compress.c      \
-       src/lzx-decompress.c    \
+       src/lzms_common.c       \
+       src/lzms_compress.c     \
+       src/lzms_decompress.c   \
+       src/lzx_common.c        \
+       src/lzx_compress.c      \
+       src/lzx_decompress.c    \
        src/metadata_resource.c \
        src/mount_image.c       \
        src/pathlist.c          \
        src/metadata_resource.c \
        src/mount_image.c       \
        src/pathlist.c          \
@@ -92,8 +92,8 @@ libwim_la_SOURCES =           \
        src/wim.c               \
        src/write.c             \
        src/xml.c               \
        src/wim.c               \
        src/write.c             \
        src/xml.c               \
-       src/xpress-compress.c   \
-       src/xpress-decompress.c \
+       src/xpress_compress.c   \
+       src/xpress_decompress.c \
        include/wimlib/apply.h          \
        include/wimlib/assert.h         \
        include/wimlib/avl_tree.h       \
        include/wimlib/apply.h          \
        include/wimlib/assert.h         \
        include/wimlib/avl_tree.h       \
@@ -129,9 +129,9 @@ libwim_la_SOURCES =         \
        include/wimlib/lz_mf_ops.h      \
        include/wimlib/lz_repsearch.h   \
        include/wimlib/lz_suffix_array_utils.h  \
        include/wimlib/lz_mf_ops.h      \
        include/wimlib/lz_repsearch.h   \
        include/wimlib/lz_suffix_array_utils.h  \
-       include/wimlib/lzms.h           \
+       include/wimlib/lzms_common.h    \
        include/wimlib/lzms_constants.h \
        include/wimlib/lzms_constants.h \
-       include/wimlib/lzx.h            \
+       include/wimlib/lzx_common.h     \
        include/wimlib/lzx_constants.h  \
        include/wimlib/matchfinder_avx2.h       \
        include/wimlib/matchfinder_common.h     \
        include/wimlib/lzx_constants.h  \
        include/wimlib/matchfinder_avx2.h       \
        include/wimlib/matchfinder_common.h     \
@@ -157,7 +157,7 @@ libwim_la_SOURCES =         \
        include/wimlib/wim.h            \
        include/wimlib/write.h          \
        include/wimlib/xml.h            \
        include/wimlib/wim.h            \
        include/wimlib/write.h          \
        include/wimlib/xml.h            \
-       include/wimlib/xpress.h
+       include/wimlib/xpress_constants.h
 
 if WITH_NTFS_3G
 libwim_la_SOURCES += src/ntfs-3g_apply.c       \
 
 if WITH_NTFS_3G
 libwim_la_SOURCES += src/ntfs-3g_apply.c       \
diff --git a/README b/README
index a7a820839fcd7c4b42319f2595d5618ff911ee17..7a4056002c6052bf4b196a7869f20a28e51cdd3d 100644 (file)
--- a/README
+++ b/README
@@ -336,7 +336,7 @@ With regards to the supported compression formats:
   neither of which is completely applicable to its use in the WIM format, and
   the first of which contains multiple errors.
 - There does not seem to be any official documentation for LZMS, so my comments
   neither of which is completely applicable to its use in the WIM format, and
   the first of which contains multiple errors.
 - There does not seem to be any official documentation for LZMS, so my comments
-  and code in src/lzms-decompress.c may in fact be the best documentation
+  and code in src/lzms_decompress.c may in fact be the best documentation
   available for this particular compression format.
 
 The algorithms used by wimlib's compression and decompression codecs are
   available for this particular compression format.
 
 The algorithms used by wimlib's compression and decompression codecs are
index 296d0b1db6455d304e1d053c62131c81e49bc35e..b6927bed556dc442f3364d52a1fb2b5e3e718fa6 100644 (file)
@@ -214,8 +214,8 @@ bitstream_align(struct input_bitstream *is)
  * input data is exhausted, the Huffman symbol is decoded as if the missing bits
  * are all zeroes.
  *
  * input data is exhausted, the Huffman symbol is decoded as if the missing bits
  * are all zeroes.
  *
- * XXX: This is mostly duplicated in lzms_huffman_decode_symbol() in
- * lzms-decompress.c.  */
+ * XXX: This is mostly duplicated in lzms_decode_huffman_symbol() in
+ * lzms_decompress.c.  */
 static inline u16
 read_huffsym(struct input_bitstream *istream, const u16 decode_table[],
             unsigned table_bits, unsigned max_codeword_len)
 static inline u16
 read_huffsym(struct input_bitstream *istream, const u16 decode_table[],
             unsigned table_bits, unsigned max_codeword_len)
similarity index 97%
rename from include/wimlib/lzms.h
rename to include/wimlib/lzms_common.h
index 91a0e1ba73fa841183939db8c60066a68499ff9a..10dc4d020a3b3240252366abee98b4c070064e6b 100644 (file)
@@ -1,11 +1,11 @@
 /*
 /*
- * lzms.h
+ * lzms_common.h
  *
  * Declarations shared between LZMS compression and decompression.
  */
 
  *
  * Declarations shared between LZMS compression and decompression.
  */
 
-#ifndef _WIMLIB_LZMS_H
-#define _WIMLIB_LZMS_H
+#ifndef _LZMS_COMMON_H
+#define _LZMS_COMMON_H
 
 #include "wimlib/compiler.h"
 #include "wimlib/lzms_constants.h"
 
 #include "wimlib/compiler.h"
 #include "wimlib/lzms_constants.h"
@@ -107,4 +107,4 @@ lzms_get_probability(const struct lzms_probability_entry *prob_entry)
        return prob;
 }
 
        return prob;
 }
 
-#endif /* _WIMLIB_LZMS_H  */
+#endif /* _LZMS_COMMON_H */
similarity index 95%
rename from include/wimlib/lzx.h
rename to include/wimlib/lzx_common.h
index 5bd6b1406a3b6e9cdf3e7e54232adc8e829cdf75..b3ae85a72b88971889d4501553ef7afd5c141425 100644 (file)
@@ -1,11 +1,11 @@
 /*
 /*
- * lzx.h
+ * lzx_common.h
  *
  * Declarations shared between LZX compression and decompression.
  */
 
  *
  * Declarations shared between LZX compression and decompression.
  */
 
-#ifndef _WIMLIB_LZX_H
-#define _WIMLIB_LZX_H
+#ifndef _LZX_COMMON_H
+#define _LZX_COMMON_H
 
 #include "wimlib/assert.h"
 #include "wimlib/bitops.h"
 
 #include "wimlib/assert.h"
 #include "wimlib/bitops.h"
@@ -71,4 +71,4 @@ lzx_do_e8_preprocessing(u8 *data, u32 size);
 extern void
 lzx_undo_e8_preprocessing(u8 *data, u32 size);
 
 extern void
 lzx_undo_e8_preprocessing(u8 *data, u32 size);
 
-#endif /* _WIMLIB_LZX_H */
+#endif /* _LZX_COMMON_H */
similarity index 53%
rename from include/wimlib/xpress.h
rename to include/wimlib/xpress_constants.h
index 2163c550da7e493b54c084a5beff4a9685cfaaf1..9a8ba2c22e5ad4901bc6264b100cd9b8f05a36fd 100644 (file)
@@ -1,8 +1,11 @@
-#ifndef _WIMLIB_XPRESS_H
-#define _WIMLIB_XPRESS_H
+/*
+ * xpress_constants.h
+ *
+ * Constants for the XPRESS compression format.
+ */
 
 
-/* Constants for the XPRESS data compression format.  See the comments in
- * xpress-decompress.c for more information about this format.  */
+#ifndef _XPRESS_CONSTANTS_H
+#define _XPRESS_CONSTANTS_H
 
 #define XPRESS_NUM_CHARS       256
 #define XPRESS_NUM_SYMBOLS     512
 
 #define XPRESS_NUM_CHARS       256
 #define XPRESS_NUM_SYMBOLS     512
@@ -16,4 +19,4 @@
 #define XPRESS_MIN_MATCH_LEN   3
 #define XPRESS_MAX_MATCH_LEN   65538
 
 #define XPRESS_MIN_MATCH_LEN   3
 #define XPRESS_MAX_MATCH_LEN   65538
 
-#endif /* _WIMLIB_XPRESS_H */
+#endif /* _XPRESS_CONSTANTS_H */
similarity index 99%
rename from src/lzms-common.c
rename to src/lzms_common.c
index eaa237fa1eec7f5c2d08e1c71c7b209691c891df..fccc566706c8b4c18f03e95b04e281a364faf2db 100644 (file)
@@ -24,7 +24,7 @@
 #endif
 
 #include "wimlib/endianness.h"
 #endif
 
 #include "wimlib/endianness.h"
-#include "wimlib/lzms.h"
+#include "wimlib/lzms_common.h"
 #include "wimlib/unaligned.h"
 
 /* Table: offset slot => offset slot base value  */
 #include "wimlib/unaligned.h"
 
 /* Table: offset slot => offset slot base value  */
similarity index 99%
rename from src/lzms-compress.c
rename to src/lzms_compress.c
index 5f5e37412db828a0c1a96d667b9e854e4b5a0959..8ba9bcbc1cfa9bd9ef97e1381d25eaad4dc8c47f 100644 (file)
@@ -1,7 +1,7 @@
 /*
 /*
- * lzms-compress.c
+ * lzms_compress.c
  *
  *
- * A compressor that produces output compatible with the LZMS compression format.
+ * A compressor for the LZMS compression format.
  */
 
 /*
  */
 
 /*
@@ -31,7 +31,7 @@
 #include "wimlib/error.h"
 #include "wimlib/lz_mf.h"
 #include "wimlib/lz_repsearch.h"
 #include "wimlib/error.h"
 #include "wimlib/lz_mf.h"
 #include "wimlib/lz_repsearch.h"
-#include "wimlib/lzms.h"
+#include "wimlib/lzms_common.h"
 #include "wimlib/unaligned.h"
 #include "wimlib/util.h"
 
 #include "wimlib/unaligned.h"
 #include "wimlib/util.h"
 
similarity index 99%
rename from src/lzms-decompress.c
rename to src/lzms_decompress.c
index b56c4ffa728f0194d430e8233172eb6c0cddd0e0..3be7cd1372a09ec61132c458f71900dcae9f1957 100644 (file)
@@ -1,5 +1,7 @@
 /*
 /*
- * lzms-decompress.c
+ * lzms_decompress.c
+ *
+ * A decompressor for the LZMS compression format.
  */
 
 /*
  */
 
 /*
 #include "wimlib/decompressor_ops.h"
 #include "wimlib/decompress_common.h"
 #include "wimlib/error.h"
 #include "wimlib/decompressor_ops.h"
 #include "wimlib/decompress_common.h"
 #include "wimlib/error.h"
-#include "wimlib/lzms.h"
+#include "wimlib/lzms_common.h"
 #include "wimlib/util.h"
 
 /* The TABLEBITS values can be changed; they only affect decoding speed.  */
 #include "wimlib/util.h"
 
 /* The TABLEBITS values can be changed; they only affect decoding speed.  */
similarity index 99%
rename from src/lzx-common.c
rename to src/lzx_common.c
index b40f43d746dedccdb60a24e47bffcc219063e78f..76c73baea447aaae7d4bcfeb87c12cfe79ca7bd5 100644 (file)
@@ -27,7 +27,7 @@
 
 #include "wimlib/bitops.h"
 #include "wimlib/endianness.h"
 
 #include "wimlib/bitops.h"
 #include "wimlib/endianness.h"
-#include "wimlib/lzx.h"
+#include "wimlib/lzx_common.h"
 #include "wimlib/unaligned.h"
 #include "wimlib/util.h"
 
 #include "wimlib/unaligned.h"
 #include "wimlib/util.h"
 
similarity index 99%
rename from src/lzx-compress.c
rename to src/lzx_compress.c
index 201a1cfb52c3984322a4266bbf627c8e0f177e29..6032f1e26f55621bc40a2c622efd6875d6106145 100644 (file)
@@ -1,7 +1,7 @@
 /*
 /*
- * lzx-compress.c
+ * lzx_compress.c
  *
  *
- * A compressor that produces output compatible with the LZX compression format.
+ * A compressor for the LZX compression format, as used in WIM files.
  */
 
 /*
  */
 
 /*
@@ -71,7 +71,7 @@
 #include "wimlib/error.h"
 #include "wimlib/lz_mf.h"
 #include "wimlib/lz_repsearch.h"
 #include "wimlib/error.h"
 #include "wimlib/lz_mf.h"
 #include "wimlib/lz_repsearch.h"
-#include "wimlib/lzx.h"
+#include "wimlib/lzx_common.h"
 #include "wimlib/util.h"
 
 #include <string.h>
 #include "wimlib/util.h"
 
 #include <string.h>
similarity index 98%
rename from src/lzx-decompress.c
rename to src/lzx_decompress.c
index 2c46651227c85cb489c83ca8fca571cb8a03ec8b..57b32890b7813bc57aa7faa3f8d7cae9fd95e4ab 100644 (file)
@@ -1,7 +1,7 @@
 /*
 /*
- * lzx-decompress.c
+ * lzx_decompress.c
  *
  *
- * A very fast decompressor for LZX, as used in WIM files.
+ * A decompressor for the LZX compression format, as used in WIM files.
  */
 
 /*
  */
 
 /*
@@ -24,7 +24,7 @@
 /*
  * LZX is an LZ77 and Huffman-code based compression format that has many
  * similarities to DEFLATE (the format used by zlib/gzip).  The compression
 /*
  * LZX is an LZ77 and Huffman-code based compression format that has many
  * similarities to DEFLATE (the format used by zlib/gzip).  The compression
- * ratio is as good or better than DEFLATE.  See lzx-compress.c for a format
+ * ratio is as good or better than DEFLATE.  See lzx_compress.c for a format
  * overview, and see https://en.wikipedia.org/wiki/LZX_(algorithm) for a
  * historical overview.  Here I make some pragmatic notes.
  *
  * overview, and see https://en.wikipedia.org/wiki/LZX_(algorithm) for a
  * historical overview.  Here I make some pragmatic notes.
  *
@@ -57,7 +57,7 @@
 #include "wimlib/decompressor_ops.h"
 #include "wimlib/decompress_common.h"
 #include "wimlib/error.h"
 #include "wimlib/decompressor_ops.h"
 #include "wimlib/decompress_common.h"
 #include "wimlib/error.h"
-#include "wimlib/lzx.h"
+#include "wimlib/lzx_common.h"
 #include "wimlib/util.h"
 
 #include <string.h>
 #include "wimlib/util.h"
 
 #include <string.h>
@@ -270,7 +270,7 @@ lzx_read_block_header(struct input_bitstream *istream,
        block_type = bitstream_pop_bits(istream, 3);
 
        /* Read the block size.  This mirrors the behavior of
        block_type = bitstream_pop_bits(istream, 3);
 
        /* Read the block size.  This mirrors the behavior of
-        * lzx_write_compressed_block() in lzx-compress.c; see that for more
+        * lzx_write_compressed_block() in lzx_compress.c; see that for more
         * details.  */
        if (bitstream_pop_bits(istream, 1)) {
                block_size = LZX_DEFAULT_BLOCK_SIZE;
         * details.  */
        if (bitstream_pop_bits(istream, 1)) {
                block_size = LZX_DEFAULT_BLOCK_SIZE;
similarity index 99%
rename from src/xpress-compress.c
rename to src/xpress_compress.c
index 73d831ee98e55bd582e6d36673539416b9951c4d..04105ae06fb53c319f1e5a6c0f21091c2e8a9b00 100644 (file)
@@ -1,5 +1,5 @@
 /*
 /*
- * xpress-compress.c
+ * xpress_compress.c
  *
  * A compressor for the XPRESS compression format (Huffman variant).
  */
  *
  * A compressor for the XPRESS compression format (Huffman variant).
  */
@@ -70,7 +70,7 @@
 #include "wimlib/hc_matchfinder.h"
 #include "wimlib/unaligned.h"
 #include "wimlib/util.h"
 #include "wimlib/hc_matchfinder.h"
 #include "wimlib/unaligned.h"
 #include "wimlib/util.h"
-#include "wimlib/xpress.h"
+#include "wimlib/xpress_constants.h"
 
 #if SUPPORT_NEAR_OPTIMAL_PARSING
 
 
 #if SUPPORT_NEAR_OPTIMAL_PARSING
 
similarity index 97%
rename from src/xpress-decompress.c
rename to src/xpress_decompress.c
index b43e5273e75a006e99ba5b5df8b9fe2a2274faba..2951be1bc8280db3040a3bf04dc44cb38f8061d8 100644 (file)
@@ -1,7 +1,7 @@
 /*
 /*
- * xpress-decompress.c
+ * xpress_decompress.c
  *
  *
- * A very fast decompressor for XPRESS (Huffman version).
+ * A decompressor for the XPRESS compression format (Huffman variant).
  */
 
 /*
  */
 
 /*
@@ -70,7 +70,7 @@
 #include "wimlib/decompressor_ops.h"
 #include "wimlib/decompress_common.h"
 #include "wimlib/error.h"
 #include "wimlib/decompressor_ops.h"
 #include "wimlib/decompress_common.h"
 #include "wimlib/error.h"
-#include "wimlib/xpress.h"
+#include "wimlib/xpress_constants.h"
 
 /* This value is chosen for fast decompression.  */
 #define XPRESS_TABLEBITS 12
 
 /* This value is chosen for fast decompression.  */
 #define XPRESS_TABLEBITS 12