wimlib
7 years agoMake generic extraction code aware of external backing and optimize on Win32 side
Eric Biggers [Wed, 27 Aug 2014 03:48:00 +0000 (22:48 -0500)]
Make generic extraction code aware of external backing and optimize on Win32 side

7 years agowin32_apply.c: set_short_name(): Increase minimum buffer size
Eric Biggers [Wed, 27 Aug 2014 01:41:06 +0000 (20:41 -0500)]
win32_apply.c:  set_short_name(): Increase minimum buffer size

7 years agoUpdate NEWS
Eric Biggers [Sun, 24 Aug 2014 22:44:29 +0000 (17:44 -0500)]
Update NEWS

7 years agolzx-compress.c: Faster extension of repeat offset matches
Eric Biggers [Sat, 23 Aug 2014 17:53:49 +0000 (12:53 -0500)]
lzx-compress.c: Faster extension of repeat offset matches

7 years agoxpress-compress.c: Adjust condition for using binary tree matchfinder
Eric Biggers [Thu, 21 Aug 2014 04:59:12 +0000 (23:59 -0500)]
xpress-compress.c: Adjust condition for using binary tree matchfinder

7 years agowimlib_get_error_string(): Fix return value for some invalid numbers
Eric Biggers [Thu, 21 Aug 2014 04:41:27 +0000 (23:41 -0500)]
wimlib_get_error_string(): Fix return value for some invalid numbers

The function was returning NULL for unknown error codes in the range of the
array.  But it should return "Unknown error" for such codes.

7 years agowimlib.h: Various minor doc improvements
Eric Biggers [Thu, 21 Aug 2014 04:20:44 +0000 (23:20 -0500)]
wimlib.h:  Various minor doc improvements

7 years agowimlib_get_compressor_needed_memory(): return 0 on invalid max_block_size
Eric Biggers [Wed, 20 Aug 2014 02:35:51 +0000 (21:35 -0500)]
wimlib_get_compressor_needed_memory(): return 0 on invalid max_block_size

7 years agoMake create_decompressor() checks of max_block_size consistent
Eric Biggers [Wed, 20 Aug 2014 02:17:29 +0000 (21:17 -0500)]
Make create_decompressor() checks of max_block_size consistent

7 years agowimlib_create_{de,}compressor(): Check ctype first
Eric Biggers [Wed, 20 Aug 2014 02:04:39 +0000 (21:04 -0500)]
wimlib_create_{de,}compressor(): Check ctype first

7 years agowimlib_create_decompressor(): Fail if max_block_size == 0
Eric Biggers [Wed, 20 Aug 2014 02:03:58 +0000 (21:03 -0500)]
wimlib_create_decompressor(): Fail if max_block_size == 0

7 years agowimlib.h: Improve documentation for compression API
Eric Biggers [Wed, 20 Aug 2014 01:39:38 +0000 (20:39 -0500)]
wimlib.h: Improve documentation for compression API

7 years agoLZX: Allow max_block_size not a power of 2
Eric Biggers [Tue, 19 Aug 2014 03:48:53 +0000 (22:48 -0500)]
LZX: Allow max_block_size not a power of 2

This should be treated as an internal of LZX.

7 years agowimlib_decompress(): Check uncompressed_size
Eric Biggers [Tue, 19 Aug 2014 03:45:47 +0000 (22:45 -0500)]
wimlib_decompress(): Check uncompressed_size

7 years agolz_*.c: Use UINT32_MAX for default max_match_len
Eric Biggers [Tue, 19 Aug 2014 03:41:34 +0000 (22:41 -0500)]
lz_*.c: Use UINT32_MAX for default max_match_len

This avoids max_match_len < min_match_len on extremely small windows.

7 years agowimlib_compress(): Return 0 if uncompressed_size is invalid
Eric Biggers [Tue, 19 Aug 2014 03:38:48 +0000 (22:38 -0500)]
wimlib_compress(): Return 0 if uncompressed_size is invalid

7 years agowin32_apply.c: Use volume handle when enabling short names
Eric Biggers [Sun, 17 Aug 2014 21:58:18 +0000 (16:58 -0500)]
win32_apply.c: Use volume handle when enabling short names

Otherwise it doesn't work.

7 years agowin32_apply.c: Adjust short name behavior
Eric Biggers [Sun, 17 Aug 2014 16:18:47 +0000 (11:18 -0500)]
win32_apply.c: Adjust short name behavior

- Try to enable short names on the volume if it seems to be necessary to set
  short names.
- Without WIMLIB_EXTRACT_FLAG_STRICT_SHORT_NAMES, still warn about how many
  short names could not be set.

7 years agoxpress-decompress.c: Remove unnecessary bitstream_ensure_bits()
Eric Biggers [Sun, 17 Aug 2014 05:33:47 +0000 (00:33 -0500)]
xpress-decompress.c: Remove unnecessary bitstream_ensure_bits()

7 years agoLZX, XPRESS: Use optimized write_bits() functions
Eric Biggers [Sun, 17 Aug 2014 04:11:20 +0000 (23:11 -0500)]
LZX, XPRESS: Use optimized write_bits() functions

For LZX, no handling of literal bytes is needed.  Also, no padding at the end is
needed; omitting it improves the compression ratio slightly.

For XPRESS, no handling of bit counts > 16 is needed.

7 years agoRate limit VERIFY_STREAMS progress messages
Eric Biggers [Sat, 16 Aug 2014 17:37:58 +0000 (12:37 -0500)]
Rate limit VERIFY_STREAMS progress messages

7 years agowin32_apply.c: Set WimBoot=1 in extracted registry
Eric Biggers [Sat, 16 Aug 2014 15:59:11 +0000 (10:59 -0500)]
win32_apply.c:  Set WimBoot=1 in extracted registry

7 years agoextract.c: Simplify mkdir_if_needed()
Eric Biggers [Sat, 16 Aug 2014 01:01:32 +0000 (20:01 -0500)]
extract.c: Simplify mkdir_if_needed()

Just go ahead and try mkdir().  If it works or it fails with EEXIST,
we're done.  (On Windows, a quirk also requires a check for EACCES.)

This aoids the need to call tstat(), which on Windows was really
_wstat(), which is horribly broken: it will fail on paths ending in a
slash.

7 years agoREADME: update COMPRESSION RATIO section
Eric Biggers [Sat, 16 Aug 2014 00:36:13 +0000 (19:36 -0500)]
README: update COMPRESSION RATIO section

7 years agoSet version to 1.7.2-BETA
Eric Biggers [Fri, 15 Aug 2014 02:48:18 +0000 (21:48 -0500)]
Set version to 1.7.2-BETA

7 years agoMore lz_hash_chains, lz_binary_trees performance improvements
Eric Biggers [Thu, 14 Aug 2014 04:04:58 +0000 (23:04 -0500)]
More lz_hash_chains, lz_binary_trees performance improvements

- Use a multiplicative hash function.  In practice it's as good as the
  CRC32-based hash function previously used, but it's faster to compute
  and requires no static data.

- Use slightly different logic that avoids the need to special-case the
  extension of matches from 'nice_len' to 'max_len'.

- Faster skip_positions() by avoiding unnecessary calculations.

- Fast match length extension on x86 using unaligned word accesses and
  trailing zero count.

7 years agodebian/control: Fix Depends
Eric Biggers [Thu, 7 Aug 2014 05:05:43 +0000 (00:05 -0500)]
debian/control: Fix Depends

7 years agontfs-3g_capture.c: ntfs_get_ntfs_attrib() gets cpu-endian value
Eric Biggers [Thu, 7 Aug 2014 04:32:41 +0000 (23:32 -0500)]
ntfs-3g_capture.c: ntfs_get_ntfs_attrib() gets cpu-endian value

7 years agov1.7.1 v1.7.1
Eric Biggers [Thu, 7 Aug 2014 03:36:38 +0000 (22:36 -0500)]
v1.7.1

7 years agodecompress_common.c: Don't include error.h
Eric Biggers [Thu, 7 Aug 2014 03:13:36 +0000 (22:13 -0500)]
decompress_common.c: Don't include error.h

7 years agolzx-common.c: Use sle32 for target in e8 translation
Eric Biggers [Thu, 7 Aug 2014 02:50:36 +0000 (21:50 -0500)]
lzx-common.c: Use sle32 for target in e8 translation

7 years agoDelete useless 1-byte explicit endian types
Eric Biggers [Thu, 7 Aug 2014 02:50:04 +0000 (21:50 -0500)]
Delete useless 1-byte explicit endian types

7 years agoAdd sparse annotations for endianness checking
Eric Biggers [Thu, 7 Aug 2014 02:48:41 +0000 (21:48 -0500)]
Add sparse annotations for endianness checking

7 years agoUpdate README and README.WINDOWS
Eric Biggers [Wed, 6 Aug 2014 23:58:10 +0000 (18:58 -0500)]
Update README and README.WINDOWS

7 years agoLZX decompression: Cleanup
Eric Biggers [Wed, 6 Aug 2014 03:26:38 +0000 (22:26 -0500)]
LZX decompression:  Cleanup

No change in behavior.

7 years agomount_image.c: Cleanup
Eric Biggers [Wed, 6 Aug 2014 02:00:00 +0000 (21:00 -0500)]
mount_image.c: Cleanup

- Improve some comments.
- Don't use the T() macro.  The mount code doesn't run on Windows.
- Make sure we don't accidentally return errno=0.
- Return WIMLIB_ERR_NO_FILENAME if read-write mounting WIM that has no
  backing file.
- inode_resolve_streams() already does nothing if inode->i_resolved
- create_dentry() is never called with NULL 'dentry_ret'
- attr_timeout=0 was in FUSE options two times!
- 'have_progfunc' argument to create_message_queue() was always true; get
  rid of it.
- Use geteuid() rather than getuid() when testing for root

7 years agoread_wim_header(): Check return value of lseek()
Eric Biggers [Tue, 5 Aug 2014 02:16:46 +0000 (21:16 -0500)]
read_wim_header(): Check return value of lseek()

7 years agontfs-3g_capture.c: Remove a never-executed statement
Eric Biggers [Tue, 5 Aug 2014 02:07:07 +0000 (21:07 -0500)]
ntfs-3g_capture.c: Remove a never-executed statement

7 years agocapture_common.c: Add missing breaks in switch stmt in do_capture_progress()
Eric Biggers [Tue, 5 Aug 2014 02:02:14 +0000 (21:02 -0500)]
capture_common.c: Add missing breaks in switch stmt in do_capture_progress()

No effect because EXCLUDE_VERBOSE is set whenever VERBOSE is, but these
should be there.

7 years agoextract.c: Fix dereference of NULL in memory exhausted path
Eric Biggers [Tue, 5 Aug 2014 01:57:03 +0000 (20:57 -0500)]
extract.c: Fix dereference of NULL in memory exhausted path

found_lte can be NULL here if the call to new_lookup_table_entry()
failed.

7 years agowrite.c: Fix handling of NULL context in stream_filtered()
Eric Biggers [Tue, 5 Aug 2014 01:46:24 +0000 (20:46 -0500)]
write.c: Fix handling of NULL context in stream_filtered()

A NULL filter_context is supposed to be valid and interpreted as "don't
filter anything".  This case can't be triggered by wimlib-imagex, but it
might be possible via custom library calls.

7 years agowim.h: Delete prototype for nonexistent function close_wim()
Eric Biggers [Sun, 3 Aug 2014 23:46:11 +0000 (18:46 -0500)]
wim.h: Delete prototype for nonexistent function close_wim()

7 years agowin32_common.c: Remove code for windows version detection
Eric Biggers [Sun, 3 Aug 2014 23:41:11 +0000 (18:41 -0500)]
win32_common.c:  Remove code for windows version detection

This isn't used by anything anymore.

7 years agoxpress.h: Remove ENABLE_XPRESS_DEBUG
Eric Biggers [Sun, 3 Aug 2014 23:37:36 +0000 (18:37 -0500)]
xpress.h: Remove ENABLE_XPRESS_DEBUG

Neither XPRESS_DEBUG() nor XPRESS_ASSERT() is used anymore.

7 years agodebian/: wimlib9 => wimlib15
Eric Biggers [Sun, 3 Aug 2014 23:24:51 +0000 (18:24 -0500)]
debian/: wimlib9 => wimlib15

Should have been done for 1.7.0.

7 years agolzms-compress.c: Fix crash on compression levels 1 through 4
Eric Biggers [Sat, 2 Aug 2014 14:19:54 +0000 (09:19 -0500)]
lzms-compress.c: Fix crash on compression levels 1 through 4

lzms_get_near_optimal_item() assumes that nice_match_length >=
min_match_length.

7 years agoextract.c: Fix yet another bug in many-identical-streams case
Eric Biggers [Sat, 2 Aug 2014 02:33:33 +0000 (21:33 -0500)]
extract.c: Fix yet another bug in many-identical-streams case

7 years agowimlib.h: Update wimlib_create_compressor() docs
Eric Biggers [Sat, 2 Aug 2014 02:12:24 +0000 (21:12 -0500)]
wimlib.h: Update wimlib_create_compressor() docs

7 years agowin32_capture.c: Ignore unnamed data stream of reparse point
Eric Biggers [Sat, 2 Aug 2014 00:52:40 +0000 (19:52 -0500)]
win32_capture.c: Ignore unnamed data stream of reparse point

This data will not be archived; only the reparse data will.  So there's
no need to create a 'struct wim_lookup_table_entry' for it.

If a reparse point had an unnamed data stream, the assertion introduced
in commit 321750354891a0968ca0c3664417eae73b9414aa would be triggered.
This is just as well, because this case wasn't being handled in the most
logical way.

7 years agoAdd WIMLIB_PROGRESS_MSG_EXTRACT_{FILE_STRUCTURE,METADATA}
Eric Biggers [Tue, 29 Jul 2014 02:12:25 +0000 (21:12 -0500)]
Add WIMLIB_PROGRESS_MSG_EXTRACT_{FILE_STRUCTURE,METADATA}

These are essentially updated versions of
WIMLIB_PROGRESS_MSG_EXTRACT_{DIR_STRUCTURE,TIMESTAMPS} which were removed
in v1.7.0.  The new versions will file periodically, so they can be used
as cancellation points where the library user provides
WIMLIB_PROGRESS_STATUS_ABORT.

7 years agodecompress_common.h: Add back check for buffer overrun
Eric Biggers [Tue, 29 Jul 2014 02:30:56 +0000 (21:30 -0500)]
decompress_common.h: Add back check for buffer overrun

This got lost by commit 8e9c6b63fcba9406cea6b742859e7730e0e2e8a9 two days
ago.  This check is still needed, unfortunately.

The unrolled loop and is_constant() optimization still helps a bit, but
not as much now.

7 years agowimlib-imagex.1: Mention 'verify' subcommand
Eric Biggers [Mon, 28 Jul 2014 03:39:46 +0000 (22:39 -0500)]
wimlib-imagex.1: Mention 'verify' subcommand

7 years agoextract.c: Fix extract_from_tmpfile()
Eric Biggers [Mon, 28 Jul 2014 03:28:06 +0000 (22:28 -0500)]
extract.c: Fix extract_from_tmpfile()

7 years agoAbbreviate the NEWS a bit
Eric Biggers [Mon, 28 Jul 2014 03:08:38 +0000 (22:08 -0500)]
Abbreviate the NEWS a bit

7 years agoAdd 'wimlib-imagex verify' command
Eric Biggers [Mon, 28 Jul 2014 03:02:28 +0000 (22:02 -0500)]
Add 'wimlib-imagex verify' command

7 years agoAdd wimlib_verify_wim()
Eric Biggers [Mon, 28 Jul 2014 02:38:16 +0000 (21:38 -0500)]
Add wimlib_verify_wim()

7 years agoAdd sprint_hash()
Eric Biggers [Sun, 27 Jul 2014 23:50:46 +0000 (18:50 -0500)]
Add sprint_hash()

Delete print_hash() and get_sha1_string()

7 years agowimlib-imagex.1: Update license statement
Eric Biggers [Sun, 27 Jul 2014 19:18:44 +0000 (14:18 -0500)]
wimlib-imagex.1: Update license statement

7 years agoUpdate COMPRESSION RATIO section in README
Eric Biggers [Sun, 27 Jul 2014 18:47:29 +0000 (13:47 -0500)]
Update COMPRESSION RATIO section in README

7 years agolzx-compress.c: Update some comments
Eric Biggers [Sun, 27 Jul 2014 16:11:26 +0000 (11:11 -0500)]
lzx-compress.c: Update some comments

7 years agolzx-compress.c: Don't update recent offset queue unnecessarily
Eric Biggers [Sun, 27 Jul 2014 03:13:26 +0000 (22:13 -0500)]
lzx-compress.c: Don't update recent offset queue unnecessarily

7 years agolzx-compress.c: Speed up rep match cost evaluations
Eric Biggers [Sun, 27 Jul 2014 02:11:31 +0000 (21:11 -0500)]
lzx-compress.c: Speed up rep match cost evaluations

7 years agolzx-compress.c: Use local variable for 'optimum' pointer
Eric Biggers [Sun, 27 Jul 2014 01:32:13 +0000 (20:32 -0500)]
lzx-compress.c: Use local variable for 'optimum' pointer

7 years agodecompress_common.h: Optimize bitstream_ensure_bits()
Eric Biggers [Sat, 26 Jul 2014 23:38:08 +0000 (18:38 -0500)]
decompress_common.h: Optimize bitstream_ensure_bits()

7 years agolz_binary_trees.c: Avoid buffer overrun if min_match_len > 3
Eric Biggers [Sat, 26 Jul 2014 18:46:54 +0000 (13:46 -0500)]
lz_binary_trees.c: Avoid buffer overrun if min_match_len > 3

7 years agolz_hash_chains.c: Avoid buffer overrun if min_match_len > 3
Eric Biggers [Sat, 26 Jul 2014 18:36:31 +0000 (13:36 -0500)]
lz_hash_chains.c: Avoid buffer overrun if min_match_len > 3

7 years agoxpress-compress.c: Use dedicated choose-items function for each parsing strategy
Eric Biggers [Sat, 26 Jul 2014 00:38:20 +0000 (19:38 -0500)]
xpress-compress.c: Use dedicated choose-items function for each parsing strategy

This speeds up lazy and greedy parsing.

7 years agolz_hash_chains.c: Add some comments to lz_hc_get_matches()
Eric Biggers [Sat, 26 Jul 2014 15:42:57 +0000 (10:42 -0500)]
lz_hash_chains.c:  Add some comments to lz_hc_get_matches()

7 years agolz_hash_chains.c: Hand-inline do_search()
Eric Biggers [Fri, 25 Jul 2014 04:35:44 +0000 (23:35 -0500)]
lz_hash_chains.c:  Hand-inline do_search()

On x86_64 this improves performance slightly (XPRESS compression ~3%
faster).  Probably a lot of the difference is due to redundant checks
against 'max_len' getting removed.

7 years agoUpdate NEWS
Eric Biggers [Sat, 26 Jul 2014 13:14:58 +0000 (08:14 -0500)]
Update NEWS

7 years agolzms-common.c: Don't process first byte in x86 filter
Eric Biggers [Sat, 26 Jul 2014 05:58:40 +0000 (00:58 -0500)]
lzms-common.c:  Don't process first byte in x86 filter

Microsoft's LZMS compressor and decompressor seemingly skip this byte.

This resulted in different behavior on the following uncompressed data:

0000000 e8 6b e8 fb ff 5e 1f 03 e8 63 e8 fb ff 5e c0 02
0000016 e8 5b e8 fb ff 5e 51 01 e8 53 e8 fb ff 5e c4 00

wimlib would do a translation following the e8 byte at offset 16, since
it would enable x86 translations following the identification of matching
absolute addresses following the potential opcodes at offsets 0 and 8.
But as far as I can tell, the Microsoft implementation just skips byte 0
entirely and doesn't consider it as beginning a potential instruction.

7 years agolzms-common.c: Add comment to lzms_x86_filter()
Eric Biggers [Sat, 26 Jul 2014 05:44:29 +0000 (00:44 -0500)]
lzms-common.c: Add comment to lzms_x86_filter()

7 years agoimagex-export.1.in: Add ESD <=> WIM examples
Eric Biggers [Fri, 25 Jul 2014 03:45:09 +0000 (22:45 -0500)]
imagex-export.1.in: Add ESD <=> WIM examples

7 years agoimagex-capture.1.in: Update
Eric Biggers [Fri, 25 Jul 2014 03:40:01 +0000 (22:40 -0500)]
imagex-capture.1.in: Update

7 years agoRemove "brute force" match-finding algorithm
Eric Biggers [Fri, 25 Jul 2014 02:58:02 +0000 (21:58 -0500)]
Remove "brute force" match-finding algorithm

It's not of much use, and the code ended up being more complicated than I
had planned.  Just get rid of it.

7 years agoresource.c: Make extract_chunk_to_fd() static
Eric Biggers [Fri, 25 Jul 2014 02:30:41 +0000 (21:30 -0500)]
resource.c: Make extract_chunk_to_fd() static

7 years agowim.c: Cleanup
Eric Biggers [Fri, 25 Jul 2014 01:57:40 +0000 (20:57 -0500)]
wim.c: Cleanup

Starting to remove some error messages that are mostly or entirely
redundant with the returned error code.

7 years agoCheck return value of wimlib_global_init() when called in lib
Eric Biggers [Fri, 25 Jul 2014 01:04:29 +0000 (20:04 -0500)]
Check return value of wimlib_global_init() when called in lib

On Windows, wimlib_global_init() can fail if functions are missing from
ntdll.  It's best to fail fast in this case rather than plowing ahead and
assuming the user would have already called wimlib_global_init()
themselves if they cared.

7 years agoinode.c: cleanup
Eric Biggers [Thu, 24 Jul 2014 06:20:38 +0000 (01:20 -0500)]
inode.c: cleanup

7 years agoRemove some unneeded includes
Eric Biggers [Thu, 24 Jul 2014 05:05:24 +0000 (00:05 -0500)]
Remove some unneeded includes

7 years agodentry.c: Cleanup + improve comments
Eric Biggers [Thu, 24 Jul 2014 04:07:29 +0000 (23:07 -0500)]
dentry.c: Cleanup + improve comments

7 years agocleanups
Eric Biggers [Mon, 21 Jul 2014 02:47:09 +0000 (21:47 -0500)]
cleanups

7 years agowin32_apply.c: Add comment about registry changes
Eric Biggers [Sun, 20 Jul 2014 06:50:24 +0000 (01:50 -0500)]
win32_apply.c: Add comment about registry changes

7 years agoSpeed up match length computations
Eric Biggers [Sun, 20 Jul 2014 04:44:17 +0000 (23:44 -0500)]
Speed up match length computations

7 years agoMerge compression updates
Eric Biggers [Sat, 19 Jul 2014 22:11:59 +0000 (17:11 -0500)]
Merge compression updates

- New internal match-finding API (might release as stand-alone library
  sometime)
- Add some new match-finding algorithms
- Get rid of lz_hash.c / lz_analyze_block()
- Add optimal parsing to XPRESS
- Optimize get_matches() / skip_bytes() calls in XPRESS and LZX
  compressors
- Get rid of decompressor parameters
- Get rid of compressor parameters exposed in API (use compression levels
  instead)

7 years agowin32_capture.c: Fix memory leak in error path
Eric Biggers [Sat, 5 Jul 2014 19:24:04 +0000 (14:24 -0500)]
win32_capture.c: Fix memory leak in error path

7 years agolzx-compress.c: Rename lzx_record_ctx.matches
Eric Biggers [Sat, 5 Jul 2014 19:17:30 +0000 (14:17 -0500)]
lzx-compress.c: Rename lzx_record_ctx.matches

7 years agolzx-compress.c: Rename lzx_write_matches_and_literals()
Eric Biggers [Sat, 5 Jul 2014 19:13:40 +0000 (14:13 -0500)]
lzx-compress.c: Rename lzx_write_matches_and_literals()

7 years ago{lzx,lzms}-decompress.c: Include wimlib/error.h, not wimlib.h
Eric Biggers [Sat, 5 Jul 2014 02:54:41 +0000 (21:54 -0500)]
{lzx,lzms}-decompress.c: Include wimlib/error.h, not wimlib.h

7 years agoxpress-decompress.c: Remove unneeded wimlib.h include
Eric Biggers [Sat, 5 Jul 2014 02:53:05 +0000 (21:53 -0500)]
xpress-decompress.c: Remove unneeded wimlib.h include

7 years ago{de,}compressor_ops.h: Forward declare params header
Eric Biggers [Sat, 5 Jul 2014 02:51:35 +0000 (21:51 -0500)]
{de,}compressor_ops.h: Forward declare params header

7 years agoxpress-compress.c: Rename xpress_match => xpress_item
Eric Biggers [Sat, 5 Jul 2014 02:22:01 +0000 (21:22 -0500)]
xpress-compress.c: Rename xpress_match => xpress_item

7 years agolzx-compress.c: Minor cleanups
Eric Biggers [Sat, 5 Jul 2014 02:11:12 +0000 (21:11 -0500)]
lzx-compress.c: Minor cleanups

7 years agoGet rid of input_idx_t
Eric Biggers [Sat, 5 Jul 2014 01:53:23 +0000 (20:53 -0500)]
Get rid of input_idx_t

This can't simply be changed anymore, so there's not much point in having
it.  For now window sizes are fixed at 32 bits.

7 years agoRename raw_match => lz_match
Eric Biggers [Sat, 5 Jul 2014 01:41:53 +0000 (20:41 -0500)]
Rename raw_match => lz_match

7 years agolzx-compress.c: Rename lzx_match => lzx_item
Eric Biggers [Sat, 5 Jul 2014 01:34:34 +0000 (20:34 -0500)]
lzx-compress.c: Rename lzx_match => lzx_item

An LZX item can be a match or a literal.  This makes more sense than "a
LZX match can be a match or a literal".

7 years agoEnsure WIM has filename before doing WIMBoot extraction
Eric Biggers [Fri, 4 Jul 2014 02:00:00 +0000 (21:00 -0500)]
Ensure WIM has filename before doing WIMBoot extraction

7 years agowimboot.c: Set correct error code if rename fails
Eric Biggers [Fri, 4 Jul 2014 01:57:00 +0000 (20:57 -0500)]
wimboot.c: Set correct error code if rename fails

7 years agowin32_apply.c: Minor cleanups
Eric Biggers [Fri, 4 Jul 2014 01:37:06 +0000 (20:37 -0500)]
win32_apply.c: Minor cleanups

7 years agoPlace headers that could be useful in unrelated projects in public domain
Eric Biggers [Fri, 4 Jul 2014 00:04:23 +0000 (19:04 -0500)]
Place headers that could be useful in unrelated projects in public domain