summaryrefslogtreecommitdiffstats
path: root/programs/lz4cli.c
Commit message (Collapse)AuthorAgeFilesLines
* fix minor static analyzer warningsYann Collet2020-09-301-1/+1
| | | | | detected by scan-build and cppcheck fix #786
* Implement -m option with legacy format on cliFilipe Calasans2020-02-081-2/+9
|
* Fix lz4cli --list optionFilipe Calasans2020-02-071-1/+1
|
* bring support for Haiku up to date.Jerome Duval2019-11-071-0/+4
|
* Make benchmark compatible with dictionary compressionReto Koradi2019-11-061-9/+9
| | | | | | | | | | | | | | | Support the -D command line option for running benchmarks. The benchmark code was slightly restructured to factor out the calls that need to be different for each benchmark scenario. Since there are now 4 scenarios (all combinations of fast/HC and with/without dictionary), the logic was getting somewhat convoluted otherwise. This was done by extending the compressionParameters struct that previously contained just a single function pointer. It now contains 4 function pointers for init/reset/compress/cleanup, with the related state. The functions get a pointer to the structure as their first argument (inspired by C++), so that they can access the state values in the struct.
* lz4cli: add option '--best' as an alias of '-12'WHR2019-07-231-0/+4
|
* fix #734 : --version should output to stdoutYann Collet2019-06-241-2/+3
| | | | instead of stderr
* Handle file not existing case #704gabrielstedman2019-05-261-3/+10
|
* List mode improvements.gstedman2019-05-161-7/+14
| | | | | | | | | 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
* fixed C90 complianceYann Collet2019-04-221-1/+1
| | | | re-structure code, have everything into a single section of lz4io.c
* FR #598 - Move LZ4F_compFileInfo_t def to lz4frame.h discard output_filegabrielstedman2019-04-221-3/+10
| | | | assert if in om_list mode
* Merge https://github.com/lz4/lz4 into devgabrielstedman2019-04-221-19/+26
|\
| * ensure tests work when `stdout` is not the consoleYann Collet2019-04-221-2/+3
| | | | | | | | | | | | | | ensure this case is continuously tested on travis. Update documentation on implicit output, invite to not rely on implicit output in scripts.
| * cli: display a warning whenever default output is stdout while input != stdinYann Collet2019-04-201-11/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | 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`.
* | FR #598 - Make LZ4IO_getCompressedFileInfo internal and reword funcgabrielstedman2019-04-221-2/+1
| |
* | FR #598 Improve initial design, test mallocs, support C90.gabrielstedman2019-04-211-23/+3
| |
* | correctly use unisgned int for indexgabrielstedman2019-04-201-2/+2
| |
* | Add --list option to display compressed file information.gabrielstedman2019-04-201-2/+32
|/
* fixed lz4 -m -cYann Collet2019-04-121-1/+1
| | | | can compress multiple files into stdout
* added command -BI for "Independent Blocks"Yann Collet2019-04-121-11/+13
| | | | | | | | 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.
* Add constant pointer annotationsTim Zakian2019-01-111-2/+2
|
* Remove a bunch of global variables that tracked settings for the IO module, ↵Tim Zakian2019-01-101-32/+34
| | | | and move them in to a struct
* Fix pass-through modeTim Zakian2019-01-101-1/+6
|
* Fix lz4 extension in input filename not causing decompressionRuben O. Chiavone2019-01-091-5/+19
|
* support custom block sizes: fix usage message & remove unused functionsBlaise Sanouillet2018-09-281-1/+1
|
* support custom block sizesBlaise Sanouillet2018-09-281-7/+7
|
* fixed minor cppcheck warnings in programsYann Collet2018-09-181-1/+1
|
* updated documentation regarding dictionary compressionYann Collet2018-09-051-1/+1
| | | | | | following suggestion from @stbrumme (#558) Also : bumped version number, regenerated man page and html doc
* Fixed invalid argument test and reformatted elseJennifer Liu2018-06-271-2/+1
|
* Fixed code based on comments from pull requestJennifer Liu2018-06-271-4/+5
|
* Added --fast command to cliJennifer Liu2018-06-261-1/+34
|
* fasterDecSpeed can be triggered from cli with --favor-decSpeedYann Collet2018-04-261-0/+2
|
* bench: introduced hidden command -SYann Collet2018-03-201-3/+7
| | | | to benchmark multiple files with separate results
* lz4cli : minor rewrite of lz4c legacy commandsYann Collet2017-10-151-12/+13
| | | | for clarity
* lz4cli : removed extension artefactsYann Collet2017-10-151-15/+7
| | | | It used to be useful for an old Windows variant which is no longer maintained.
* Add Dictionary Support to the Command Line ToolW. Felix Handte2017-10-101-0/+27
|
* fixed a bunch of -Wcomma warningsYann Collet2017-09-101-2/+5
| | | | reported by @rvandermeulen (#398)
* Merge branch 'dev' into installVars and fixed conflictsYann Collet2017-08-151-1/+1
|\
| * cli : restored command -BX to enable block checksum (#322)Yann Collet2017-08-121-1/+1
| |
* | lz4c legacy commands are now enabled at runtime based on link/binary name "lz4c"Yann Collet2017-08-141-35/+31
|/ | | | | | | | | instead of selected at compilation time depending on a macro. This design makes it possible to have a single binary which supports both modes. An advantageous side effect is that when doing `make; make install` no additional binary is created during `make install` (it used to create `lz4c`, because `make` would only build `lz4`)
* Fix gcc7 Wimplicit-fallthrough warningsChocobo12017-06-191-1/+2
| | | | | For the default Wimplicit-fallthrough=3 level, the comment should start with "fall*"
* cli accept block sizes with KB / MB prefixesYann Collet2017-05-261-2/+10
|
* lz4cli.c: fix a comment: LZ4HC_DEFAULT_CLEVEL -> LZ4HC_CLEVEL_MAXAlexey Tourbin2017-04-291-1/+1
| | | | Actually the program only mentions LZ4HC_CLEVEL_MAX.
* Merge pull request #341 from iburinoc/exematchYann Collet2017-03-251-6/+15
|\ | | | | Ignore extensions in exe name matching
| * Ignore extensions in exe name matchingSean Purcell2017-03-241-6/+15
| |
* | cli: add GNU separator -- specifying that all following arguments are filesDmitry V. Levin2017-03-231-1/+3
|/ | | | | This option is supported by other compressors with compatible cli, so add it to lz4 as well for better compatibility.
* Fix printf specifierChocobo12017-01-121-1/+1
|
* Merge pull request #292 from inikep/devYann Collet2016-12-221-22/+14
|\ | | | | improved POSIX
| * improved MinGW supportPrzemyslaw Skibinski2016-12-211-0/+3
| |
| * reordered definitons in platform.hPrzemyslaw Skibinski2016-12-201-0/+9
| |