Commit Graph

2652 Commits

Author SHA1 Message Date
Yann Collet
e2009622dd
Merge pull request #1022 from lz4/uname
make UNAME externally definable
2021-09-20 16:04:07 -07:00
Yann Collet
976170316e
Merge pull request #1027 from t-mat/examples-test-cpp
Add C++ compatibility test for `examples/`
2021-09-06 10:56:04 -07:00
Takayuki Matsuoka
d93bc67c46 Remove invalid variable 2021-09-07 01:07:06 +09:00
Takayuki Matsuoka
099d9a28a0 Add test for examples/ 2021-09-07 01:03:47 +09:00
Takayuki Matsuoka
2fbf12add7 Add C++ compatibility test for examples/ 2021-09-07 01:03:04 +09:00
Takayuki Matsuoka
1b0a501a19 Add cast operator for compatibility with C++ 2021-09-07 01:02:23 +09:00
Yann Collet
d2334731c3
Merge pull request #1026 from kmou424/dev
examples: simple_buffer: We must explicit convert pointer after mallo…
2021-09-04 13:31:06 -07:00
kmou424
a3960899f4 examples: simple_buffer: We must explicit convert pointer after malloc in c++
Aim: To adapt C++

Compilation errors:
simple_buffer.c:47:9: error: cannot initialize a variable of type 'char *' with an rvalue of type 'void *'
  char* compressed_data = malloc((size_t)max_dst_size);
        ^                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
simple_buffer.c:76:15: error: cannot initialize a variable of type 'char *const' with an rvalue of type 'void *'
  char* const regen_buffer = malloc(src_size);
              ^              ~~~~~~~~~~~~~~~~
2 errors generated.
2021-09-05 02:52:57 +08:00
Yann Collet
1600ce5c0b
Merge pull request #1024 from a1346054/dev
Minor cleanup
2021-08-21 20:22:34 -07:00
a1346054
3e99d07bc0 trim excess whitespace 2021-08-21 22:24:52 +00:00
a1346054
eb23590d13 fix spelling 2021-08-21 20:50:38 +00:00
a1346054
6a8e21d802 fix warnings reported by shellcheck in shell scripts 2021-08-21 20:46:23 +00:00
a1346054
d68bfbde54 use the same style of hashbang for all files 2021-08-21 20:45:30 +00:00
a1346054
8df946943d fix broken hashbangs 2021-08-21 20:38:29 +00:00
Yann Collet
596c747211 make UNAME externally definable
on top of providing a central definition place, which eases maintenance,
it might also help for #1021.

Also : updated doc
2021-08-16 16:43:17 -07:00
Yann Collet
e78eeec86e
Merge pull request #1017 from fanzeyi/fix-clang-cl-msvc
fix clang-cl _tzcnt_u64 not defined issue
2021-08-09 12:58:58 -07:00
Zeyi (Rice) Fan
1a2e8f4e30 fix clang-cl _tzcnt_u64 not defined issue 2021-08-09 11:30:02 -07:00
Yann Collet
57ed27f46e minor documentation for unicode_lint 2021-08-09 05:33:20 -07:00
Yann Collet
1a6e81310e
Merge pull request #1020 from servusdei2018/dev
ci: merge unicode lint to github actions and expand test coverage to ./tests/ directory
2021-08-09 05:29:20 -07:00
Nate
b13108a5b6
ci: sh -> bash 2021-08-08 19:11:44 -04:00
Nate
9a511781d6
ci: pass script through sh 2021-08-08 16:23:00 -04:00
Nate
56ef1696fd
ci(.github/workflows/ci.yml): fix invalid yaml
fixed syntax error
2021-08-08 15:32:05 -04:00
Nate
28eff0c77e
ci(.github/workflows/ci.yml): run unicode lint under github actions 2021-08-08 15:16:31 -04:00
Nate
424e1d9622
tests(tests/unicode_lint.sh): expand unicode lint to the ./tests/ directory 2021-08-08 15:10:58 -04:00
Yann Collet
eb70459803
Merge pull request #1019 from servusdei2018/patch-1
nit(programs/platform.h): replace Unicode character #1018
2021-08-08 02:50:55 -07:00
Nate
e2561f20e6
ci(.travis.yml): add unicode lint job 2021-08-08 00:38:33 -04:00
Nate
7b4692596e
nit(tests/unicode_lint.sh): standardize failure format message 2021-08-08 00:36:06 -04:00
Nate
594ec829e3
tests(unicode_lint.sh): create: lint source files in ./lib/ and ./programs/ for Unicode 2021-08-08 00:34:07 -04:00
Nate
0c78292335
nit(programs/platform.h): replace Unicode character #1018
On line 83, U+2013 was replaced with U+002D in order to improve compatibility with MSVC 2019 and older compilers.
2021-08-07 06:32:31 -04:00
Yann Collet
de45d6e0fa minor doc clarification 2021-08-06 14:51:09 -07:00
Yann Collet
d1d3266bc5 fixed minor type, reported by @mwgamera 2021-08-06 14:45:42 -07:00
Yann Collet
aeac6227d2
Merge pull request #999 from pekdon/solaris-10
add -lrt on Solaris 10, required for nanosleep
2021-08-06 19:10:00 +02:00
Yann Collet
163db1675c
Merge pull request #1013 from eloj/relax-lz4-memory-usage-tunable
Define LZ4_STREAMSIZE in terms of LZ4_MEMORY_USAGE.
2021-08-02 17:03:38 +02:00
Yann Collet
27fd77e6cd
Merge pull request #1014 from eloj/github-ubuntu-16.04-deprecation
GitHub Ubuntu 16.04 deprecation
2021-08-02 16:21:02 +02:00
Eddy Jansson
b3fda2d21e All compilers now support stdc11.
With the removal of Ubuntu 16.04, all compilers in
in the matrix supports c11, so remove this column
from the matrix, and unconditionally test this.
2021-07-31 21:19:10 +02:00
Eddy Jansson
05245113c7 All compilers now support stdc90.
With the removal of Ubuntu 16.04, all compilers in
in the matrix supports c90, so remove this column
from the matrix, and unconditionally test this.
2021-07-31 21:07:40 +02:00
Eddy Jansson
6f54156783 Remove ubuntu-16.04 as a test platform.
The Ubuntu 16.04 environment is being removed by github
on September 20, 2021. They will induce 'brownouts'
starting from September 6 to get clients to move on.

This change removes testing of GCC versions prior to 4.8,
and clang versions prior to 3.9

Ref: https://github.com/actions/virtual-environments/issues/3287
2021-07-31 20:59:23 +02:00
Eddy Jansson
0a0922067f Don't reuse state memory that's too small.
Ensure that the memory block we're trying
to reuse is large enough for the new state.

Fixes #974
2021-07-31 19:05:29 +02:00
Eddy Jansson
80e3e7034e Define LZ4_STREAMSIZE in terms of LZ4_MEMORY_USAGE
This is required to correctly size a static member
to hold the hash table, whose size is derived from
LZ4_MEMORY_USAGE.
2021-07-31 18:59:15 +02:00
Yann Collet
4de56b3da3
Merge pull request #1012 from eloj/print-install-dirs
Print target directories during 'make install'.
2021-07-25 00:44:40 +02:00
Yann Collet
7be5039648
Merge pull request #1011 from eloj/improve-pkgconfig
Expand use of pkg-config variables.
2021-07-25 00:43:27 +02:00
Eddy Jansson
eba110ad5b Print target directories during 'make install'.
This takes #975 to its logical conclusion.
2021-07-24 17:20:37 +02:00
Eddy Jansson
c1f514f3db Expand use of pkg-config variables.
Change pkg-config generation such that the path variables,
not their values, are used in the definitions of Libs and Cflags,
and that $prefix is substituted into libdir and includedir iff
they start with its value.

This makes it easier to modify the already installed file if necessary.
2021-07-24 16:05:15 +02:00
Yann Collet
c240126068
Merge pull request #1000 from lifegpc/patch1
fix link problem on win32 MSVC
2021-07-01 09:12:55 -07:00
lifegpc
afa7329622
add missing if for lz4c 2021-07-01 22:16:06 +08:00
lifegpc
756ca1a7f2
Link static library first otherwise rebuild source files. 2021-07-01 19:48:30 +08:00
Yann Collet
11efc95c3f
Merge pull request #1005 from ITotalJustice/fix_LZ4HC_HEAPMODE_macro
fix LZ4HC_HEAPMODE macro guard
2021-06-25 16:57:33 -07:00
TotalJustice
2216d45e04 fix LZ4HC_HEAPMODE macro guard 2021-06-25 15:16:22 +01:00
Yann Collet
e3082cd890
Merge pull request #980 from sandyharvie/dev
Fix issue #979
2021-06-25 02:48:22 -07:00
Yann Collet
4f0c7e45c5
Merge pull request #1001 from GabeNI/dev
Cast ALLOC return value to satisfy C++
2021-06-15 22:31:01 -07:00