WHR
eee8cc79e7
lz4cli: add option '--best' as an alias of '-12'
2019-07-23 13:37:11 +08:00
Yann Collet
bb5c34a875
bumped version number to v1.9.2
...
to reduce risks that future bug reports in `dev` branch report `v1.9.1` as the failing version.
2019-07-01 09:01:43 -07:00
Yann Collet
baf9b0e043
fix #734 : --version should output to stdout
...
instead of stderr
2019-06-24 16:08:30 -07:00
gabrielstedman
729eef61a1
Handle file not existing case #704
2019-05-26 15:04:45 +01:00
gstedman
81081f9b2d
List mode improvements.
...
Improve formatting
Include static assert
Use UTIL_fseek to handle potential fseek limitation
Be explicit when refusing to read from stdin
Properly free dctx after use
Include valgrind tests
2019-05-16 20:53:29 +01:00
gstedman
98a86c8ef6
Add multiframe report to --list command
2019-05-15 21:13:19 +01:00
JPeterMugaas
7136489d33
More build imrpvements
...
Moved a few other tests to Makefiles.inc. Other things might need to go there.
Made a test for symlink appropriateness. Windows can NOT handle them the same way Unix-like operating systems do (if at all). This is mostly the same as the Visual C projects.
embed version info into .dll and .exes that are redistributed.
2019-04-23 07:44:00 -04:00
Yann Collet
291b3d8b7e
Merge pull request #691 from lz4/list
...
--list
2019-04-22 17:43:01 -07:00
Yann Collet
35b83a921f
fix: no leak when LZ4F_dctx creation fails
...
strange, because it previous implementation, it would `exit()`,
so it should not matter ...
2019-04-22 16:06:22 -07:00
Yann Collet
c4fe7a2047
Merge pull request #689 from JPeterMugaas/jpm-makefile
...
Jpm makefile - as described in https://github.com/lz4/lz4/issues/688
2019-04-22 15:29:50 -07:00
Yann Collet
5a50247d5f
updated code comments
2019-04-22 15:24:44 -07:00
Yann Collet
a685d5cffc
--list gives block type
2019-04-22 15:14:53 -07:00
Yann Collet
f401f1de7e
--list can resume after a failed file
2019-04-22 15:01:20 -07:00
JPeterMugaas
5e6807fd95
Make programs/Makefile use the includes.
2019-04-22 17:38:43 -04:00
Yann Collet
0d4c885abb
refactored --list function
...
better handling of special conditions,
better scoping of variables.
Also : updated man page
2019-04-22 14:01:19 -07:00
Yann Collet
ae5cea9112
fixed C90 compliance
...
re-structure code, have everything into a single section of lz4io.c
2019-04-22 12:27:25 -07:00
JPeterMugaas
773b66547f
Initial commits from diff I submitted earlier
2019-04-22 13:48:59 -04:00
gabrielstedman
84f978a2f3
FR #598 - Correctly initialize cfinfo & cast malloc res to (char*)
2019-04-22 11:07:08 +01:00
gabrielstedman
e31b6dc03c
FR #598 - Make fileSize unsigned long long
2019-04-22 10:35:29 +01:00
gabrielstedman
0acebbe53d
FR #598 - Move LZ4F_compFileInfo_t def to lz4frame.h discard output_file
...
assert if in om_list mode
2019-04-22 10:02:46 +01:00
gabrielstedman
9d0960c354
Merge https://github.com/lz4/lz4 into dev
2019-04-22 09:56:51 +01:00
gabrielstedman
2133366da0
FR #598 - Make LZ4IO_getCompressedFileInfo internal and reword func
2019-04-22 09:00:20 +01:00
Yann Collet
22fae16c6f
ensure tests work when stdout
is not the console
...
ensure this case is continuously tested on travis.
Update documentation on implicit output,
invite to not rely on implicit output in scripts.
2019-04-21 17:01:03 -07:00
gabrielstedman
5fdc6d201e
FR #598 Improve initial design, test mallocs, support C90.
2019-04-21 18:20:40 +01:00
gabrielstedman
55484191c4
correctly use unisgned int for index
2019-04-21 00:20:38 +01:00
gabrielstedman
55ab3c48ae
Add --list option to display compressed file information.
2019-04-21 00:01:03 +01:00
Yann Collet
5f8ac02b77
cli: display a warning whenever default output is stdout while input != stdin
...
This behavior has been preserved for compatibility with existing ecosystem.
But it's problematic, as some environment start `lz4` without identifying stdout as console by default,
leading to a change of behavior for a same line of script.
A more sensible policy would be to default to stdout only when input is stdin.
Soft change for the time being : keep the behavior, just print a warning message.
User should prefer `-c` to explicitly select `stdout`.
Also : updated tests in Makefile to explicitly select `stdout` with `-c`.
2019-04-19 17:08:40 -07:00
Yann Collet
4e4f1ad623
ensure list of names is large enough
2019-04-18 17:26:01 -07:00
Yann Collet
4f6de46f60
fix several minor static analyzer warnings
2019-04-18 12:05:50 -07:00
Yann Collet
63bfb64b80
and even more visual conversion warnings
2019-04-12 17:40:23 -07:00
Yann Collet
8c2429ed1f
some more Visual conversion warning
2019-04-12 17:06:53 -07:00
Yann Collet
c7554c3004
fixed minor Visual conversion warnings
2019-04-12 17:03:28 -07:00
Yann Collet
9c49e3ca07
added tests for -d -m -c
...
seems to work properly
2019-04-12 16:10:55 -07:00
Yann Collet
e865a3e7ec
fixed lz4 -m -c
...
can compress multiple files into stdout
2019-04-12 15:17:48 -07:00
Yann Collet
20c2a5fc94
added command -BI for "Independent Blocks"
...
This is the reverse of `-BD`, and the current default.
This command can be useful to reverse a previous `-BD` command.
It may in the future be more important
if `lz4` switches to generating dependent blocks by default.
2019-04-12 13:27:11 -07:00
Yann Collet
352bbdb98e
updated man page
...
with --favor-decSpeed
2019-04-12 13:15:05 -07:00
Yann Collet
21ff1a839a
updated doc to underline difference between block and frame
...
as this is a very frequent source of confusion for new users.
2019-04-12 11:27:44 -07:00
Yann Collet
bcb26565a7
improved documentation for LZ4 dictionary compression
2019-04-11 15:20:46 -07:00
Yann Collet
8d76c8a44a
introduce LZ4_DISTANCE_MAX build macro
...
make it possible to generate LZ4-compressed block
with a controlled maximum offset (necessarily <= 65535).
This could be useful for compatibility with decoders
using a very limited memory budget (<64 KB).
Answer #154
2019-04-11 14:15:33 -07:00
Yann Collet
c438548312
Merge pull request #652 from vtorri/dev
...
Allow installation of lz4 for Windows 10 with MSYS2
2019-03-03 13:40:45 -08:00
Vincent Torri
0360981f68
Allow installation of lz4 for Windows 10 with MSYS2
2019-03-03 22:06:38 +01:00
Tim Zakian
c1610690b1
Add cast around malloc
2019-01-11 09:49:26 -08:00
Tim Zakian
416916146f
Add constant pointer annotations
2019-01-10 20:40:00 -08:00
Tim Zakian
5822e667cc
Remove a bunch of global variables that tracked settings for the IO module, and move them in to a struct
2019-01-10 15:27:47 -08:00
Tim Zakian
9028682e7a
Fix pass-through mode
2019-01-10 10:20:17 -08:00
Ruben O. Chiavone
e6905b5812
Fix lz4 extension in input filename not causing decompression
2019-01-08 22:56:04 -03:00
Vincent Torri
0314027051
Allow installation of lz4 for Windows (MSYS2 or when cross-compiling)
2018-11-20 21:08:23 +01:00
Blaise Sanouillet
32501603c7
support custom block sizes: fix usage message & remove unused functions
2018-09-28 09:53:14 -07:00
Blaise Sanouillet
718d16ef29
support custom block sizes - fix types
2018-09-28 09:02:36 -07:00
Blaise Sanouillet
64ad395d27
support custom block sizes
2018-09-28 08:02:49 -07:00