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
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
Yann Collet
b2215f2a89
tried to clean another bunch of cppcheck warnings
...
so "funny" thing with cppcheck
is that no 2 versions give the same list of warnings.
On Mac, I'm using v1.81, which had all warnings fixed.
On Travis CI, it's v1.61, and it complains about a dozen more/different things.
On Linux, it's v1.72, and it finds a completely different list of a half dozen warnings.
Some of these seems to be bugs/limitations in cppcheck itself.
The TravisCI version v1.61 seems unable to understand %zu correctly, and seems to assume it means %u.
2018-09-19 12:12:49 -07:00
Yann Collet
e34a27d291
fixed minor cppcheck warnings in programs
2018-09-18 16:08:17 -07:00
Lucas Holt
3318d573ba
Add support for MidnightBSD
2018-09-08 14:46:54 -04:00
Yann Collet
0f08c22c31
Merge pull request #563 from lz4/docDict
...
updated documentation for dictionary compression
2018-09-06 12:43:29 -07:00
Yann Collet
cd3945f532
Merge pull request #564 from lz4/cTime
...
fixed compression time
2018-09-05 17:48:40 -07:00
Yann Collet
d136118ea9
Merge pull request #556 from kou/add-missing-exeext
...
Add missing $(EXT)
2018-09-05 15:55:34 -07:00
Yann Collet
b61991491a
fixed compression time
...
displayed at the end (#555 )
2018-09-05 15:16:03 -07:00
Yann Collet
0fea528e3a
updated documentation regarding dictionary compression
...
following suggestion from @stbrumme (#558 )
Also : bumped version number, regenerated man page and html doc
2018-09-05 14:05:08 -07:00
Yann Collet
2e4847c2d5
fixed #560
...
it was a fairly complex scenario,
involving source files > 64K
and some extraordinary conditions related to specific layout of ranges of zeroes.
and only on level 9.
2018-09-04 18:21:40 -07:00
Kouhei Sutou
9c457ccb7a
Add missing $(EXT)
2018-08-13 14:17:54 +09:00
Jennifer Liu
e778db373b
Fixed bugs about incorrect acceleration calculation and benchmarking negative compresion level
2018-06-27 13:36:38 -07:00
Jennifer Liu
8745638d7c
Fixed invalid argument test and reformatted else
2018-06-26 17:53:12 -07:00
Jennifer Liu
9ee5183d9b
Fixed code based on comments from pull request
2018-06-26 17:31:15 -07:00
Jennifer Liu
9f8fd09852
delete commented out code in bench.c
2018-06-26 10:49:39 -07:00
Jennifer Liu
536b79afd9
Added --fast command to cli
2018-06-25 17:46:39 -07:00
fbrosson
2149b1a8f6
Add Haiku as a validated target.
...
lz4 1.8.2 works fine on Haiku and passes all tests.
2018-05-17 16:52:53 +00:00