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 39b86f2..0893ef6 100644 (file)
@@ -64,12 +64,12 @@ libwim_la_SOURCES =         \
        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          \
@@ -92,8 +92,8 @@ libwim_la_SOURCES =           \
        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       \
@@ -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/lzms.h           \
+       include/wimlib/lzms_common.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     \
@@ -157,7 +157,7 @@ libwim_la_SOURCES =         \
        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       \
diff --git a/README b/README
index a7a8208..7a40560 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
-  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
index 296d0b1..b6927be 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.
  *
- * 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)
similarity index 97%
rename from include/wimlib/lzms.h
rename to include/wimlib/lzms_common.h
index 91a0e1b..10dc4d0 100644 (file)
@@ -1,11 +1,11 @@
 /*
- * lzms.h
+ * lzms_common.h
  *
  * 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"
@@ -107,4 +107,4 @@ lzms_get_probability(const struct lzms_probability_entry *prob_entry)
        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 5bd6b14..b3ae85a 100644 (file)
@@ -1,11 +1,11 @@
 /*
- * lzx.h
+ * lzx_common.h
  *
  * 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"
@@ -71,4 +71,4 @@ lzx_do_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 2163c55..9a8ba2c 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
@@ -16,4 +19,4 @@
 #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 eaa237f..fccc566 100644 (file)
@@ -24,7 +24,7 @@
 #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  */
similarity index 99%
rename from src/lzms-compress.c
rename to src/lzms_compress.c
index 5f5e374..8ba9bcb 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/lzms.h"
+#include "wimlib/lzms_common.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 b56c4ff..3be7cd1 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/lzms.h"
+#include "wimlib/lzms_common.h"
 #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 b40f43d..76c73ba 100644 (file)
@@ -27,7 +27,7 @@
 
 #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"
 
similarity index 99%
rename from src/lzx-compress.c
rename to src/lzx_compress.c
index 201a1cf..6032f1e 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/lzx.h"
+#include "wimlib/lzx_common.h"
 #include "wimlib/util.h"
 
 #include <string.h>
similarity index 98%
rename from src/lzx-decompress.c
rename to src/lzx_decompress.c
index 2c46651..57b3289 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
- * 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.
  *
@@ -57,7 +57,7 @@
 #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>
@@ -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
-        * 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;
similarity index 99%
rename from src/xpress-compress.c
rename to src/xpress_compress.c
index 73d831e..04105ae 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * xpress-compress.c
+ * xpress_compress.c
  *
  * 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/xpress.h"
+#include "wimlib/xpress_constants.h"
 
 #if SUPPORT_NEAR_OPTIMAL_PARSING
 
similarity index 97%
rename from src/xpress-decompress.c
rename to src/xpress_decompress.c
index b43e527..2951be1 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/xpress.h"
+#include "wimlib/xpress_constants.h"
 
 /* This value is chosen for fast decompression.  */
 #define XPRESS_TABLEBITS 12