Yann Collet
e3f73fa6a6
Merge pull request #461 from terrelln/docs
...
Clarify the requirements of the LZ4 streaming API
2018-02-01 16:14:54 -08:00
Nick Terrell
e832a3d87a
Clarify the requirements of the LZ4 streaming API
2018-02-01 16:08:59 -08:00
Yann Collet
99a81c89f0
Merge pull request #458 from lz4/ff161
...
Minor change to LZ4 Frame format specification
2018-02-01 10:55:02 -08:00
Yann Collet
424c773f83
Merge pull request #460 from lz4/frameCompress
...
refactored frameCompress.c example
2018-02-01 08:53:23 -08:00
Yann Collet
3ce289bcce
modified decompression part of frameCompress.c
...
using same logic as prior modifications for compression part.
2018-02-01 02:48:20 -08:00
Yann Collet
25efdd80c5
refactored ressource allocation to avoid goto
2018-02-01 01:38:14 -08:00
Yann Collet
886a485845
examples/Makefile : changed dependency order
...
static library *.a must come after source files *.c on linux
2018-01-31 23:17:52 -08:00
Yann Collet
5fd3ac7904
Merge branch 'dev' into frameCompress
2018-01-31 17:18:57 -08:00
Yann Collet
d1ccd620d6
travisci : ensure "clean" betweeb 2 tests
2018-01-31 17:16:48 -08:00
Yann Collet
3b751a50c5
modified gpptest recipe
2018-01-31 17:15:02 -08:00
Yann Collet
70671ab314
Merge pull request #459 from Tyilo/clang-stdc++14
...
Ensure LZ4_DEPRECATED("...") is before LZ4LIB_API
2018-01-31 16:42:13 -08:00
Yann Collet
b515ae9c99
refactored frameCompress.c example code
...
compression function returns a struct.
Also : nested structure ressources->computation
to make it easier to manage multiple exit points.
2018-01-31 16:39:37 -08:00
Yann Collet
ff3c67fdb2
fixed read size, as noticed by @terrelln
2018-01-31 16:13:02 -08:00
Yann Collet
1acca240a9
ensure proper dependencies are built for /examples
...
also : use liblz4.a static lib to share compilation time
2018-01-31 16:11:45 -08:00
Yann Collet
87fb7a1d03
refactored frameCompress example
...
to better reflect LZ4F API usage.
2018-01-31 14:33:16 -08:00
Asger Hautop Drewsen
c129f480e7
Always prefer c++14 attributes if available
2018-01-31 20:24:44 +01:00
Yann Collet
d03224b633
fix typos as suggested by @psteinb
2018-01-31 09:54:30 -08:00
Asger Hautop Drewsen
865bd83e13
Ensure LZ4_DEPRECATED("...") is before LZ4LIB_API
...
When using clang++ with std c++14 or c++17 you would get the error "an attribute list cannot appear here" when including "lz4.h" as the visibility attribute is before the c++ attribute.
This ensures that the [[deprecated]] c++ attribute is before everything
else in the function declarations.
2018-01-31 13:33:07 +01:00
Yann Collet
fd0c125ff1
proposed a minor change to LZ4 Frame format specification
...
add new terms "LZ4 Frame Header" and "LZ4 Frame Footer"
2018-01-30 17:56:03 -08:00
Yann Collet
8258f4d9cb
Merge pull request #455 from terrelln/hc-default
...
[lz4hc] level == 0 means default, not level 1
2018-01-22 13:25:49 -08:00
Nick Terrell
30e92f320c
[lz4hc] level == 0 means default, not level 1
2018-01-22 12:50:06 -08:00
Yann Collet
ad12efa4e8
Merge pull request #453 from lz4/clockfix
...
fix #450 : use more restrictive conditions for clock_gettime()
2018-01-17 12:45:09 -08:00
Yann Collet
cd63b97f96
Merge pull request #454 from sunpoet/dev
...
Change file format back to ASCII (from UTF-8)
2018-01-17 11:29:27 -08:00
Po-Chuan Hsieh
75b81bbbf0
Change file format back to ASCII (from UTF-8)
...
- Replace U+00A0 by space
- Fix build failure of archivers/py-borgbackup in FreeBSD
Reference: https://bugs.FreeBSD.org/225235
2018-01-18 03:13:05 +08:00
Yann Collet
7dba09af47
use more restrictive conditions for clock_gettime()
2018-01-16 10:21:37 -08:00
Yann Collet
b077a99347
added checkTag
...
checkTag verifies that provided tag and library version match.
It's started automatically in circleCI when a new tag is created.
2018-01-14 16:57:25 -08:00
Yann Collet
dfed9fa1d7
restored .travis
2018-01-14 00:21:43 -08:00
Yann Collet
5e7780d2d8
lz4frame : removed some intermediate stage from LZ4F_decompress()
...
ensure some strange jump cases are not possible
(they were already not possible, but static analyzer couldn't understand it).
2018-01-14 00:15:07 -08:00
Yann Collet
cdd0c685e0
Merge branch 'dev' into coverity_scan
2018-01-13 22:58:09 -08:00
Yann Collet
75e22d133e
minor : try to tell static analyzer that we don't care if fseek() fails
...
as already explained in comments.
2018-01-13 22:52:17 -08:00
Yann Collet
18b4c66d25
ensure a ptr is non-null
...
with an assert()
to help static analyzer understanding this condition.
2018-01-13 22:47:46 -08:00
Yann Collet
4d61ebc9c8
modified formulation for LZ4F_compressBound()
...
previous version used an intentional overflow,
which is defined since it uses unsigned type,
but static analyzer complain about it.
2018-01-13 22:39:39 -08:00
Yann Collet
8e69328d61
programs/datagen : attempt to please static analyzer
...
with an assert()
to reduce false positive
2018-01-13 22:24:32 -08:00
Yann Collet
fe66e78b96
lz4io: fixed minor ressource leak
2018-01-13 22:18:04 -08:00
Yann Collet
99302c43b4
revert project name
2018-01-13 21:40:04 -08:00
Yann Collet
8e50feca14
minor name update
2018-01-13 21:14:36 -08:00
Yann Collet
151a50e16e
Merge branch 'master' into coverity_scan
2018-01-13 21:09:02 -08:00
Yann Collet
e0e29cf09e
Merge pull request #449 from lz4/dev
...
v1.8.1.2
2018-01-13 20:56:14 -08:00
Yann Collet
52a76ff682
update man page
2018-01-13 19:06:33 -08:00
Yann Collet
e8ee6e5965
nicer console message for make clean
2018-01-13 18:51:33 -08:00
Yann Collet
ac38ffa9af
updated manuals to v1.8.1
2018-01-13 18:46:13 -08:00
Yann Collet
d95606d649
Merge pull request #448 from sunpoet/dev
...
Fix lz4 version
2018-01-13 16:33:56 -08:00
Po-Chuan Hsieh
47bf1a9f01
Fix lz4 version
2018-01-14 06:38:03 +08:00
Yann Collet
c423dc21bd
updated LZ4F_decompress() documentation
2018-01-13 13:16:31 -08:00
Yann Collet
d6f1fe105b
Merge pull request #446 from lz4/dev
...
LZ4 v1.8.1
2018-01-12 16:23:16 -08:00
Yann Collet
fb5e98a334
updated NEWS for v1.8.1
2018-01-12 14:36:10 -08:00
Yann Collet
d89fd51ce8
Merge pull request #442 from terrelln/441
...
[lz4io] Fix decompression file stat with --rm
2018-01-10 19:09:13 +01:00
Yann Collet
58199f1311
Merge pull request #443 from terrelln/440
...
[lz4f] Skip memcpy() on empty dictionary
2018-01-10 19:06:21 +01:00
Yann Collet
a605d7ea54
Merge pull request #444 from felixhandte/publish-static-functions
...
Add Option to Make lz4frame_static.h Functions Visible in Shared Objects
2018-01-10 18:48:11 +01:00
W. Felix Handte
ebef34fe79
Add Option to Make lz4frame_static.h Functions Visible in Shared Objects
...
In some contexts, *cough*like at facebook*cough*, dynamic linking is used in
contexts which aren't truly dynamic. That is, the guarantee is maintained that
a program will only ever execute against the library version it was compiled
to interact with.
For those situations, introduce a compile-time flag that overrides hiding
these unstable APIs in shared objects.
2018-01-08 14:46:22 -05:00