Commit Graph

2643 Commits

Author SHA1 Message Date
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
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
Yann Collet
e51a6be463
Merge pull request #1002 from t-mat/dev
Fix package related GH-Actions errors
2021-06-15 22:30:03 -07:00
Takayuki Matsuoka
a9b93547a0 Fix package related errors
Add explicit "apt-get update" for all test cases which uses "apt-get".
- It may help to stabilize fetching from apt archive.

As for "CC=gcc-11"
- Add "g++-11" package.
- "g++-11" has been removed from the default virtual environment.
  https://github.com/actions/virtual-environments/issues/3467
2021-06-16 12:44:48 +09:00
Gabe Jones
b3d46ae07f Cast ALLOC return value to satisfy C++ 2021-06-15 12:09:14 -05:00
lifegpc
5ed199da04
fix link problem on win32 MSVC 2021-06-06 10:09:16 +08:00
Yann Collet
355f609529
Merge pull request #996 from t-mat/gha-3
Improve CI script
2021-06-02 18:31:56 -07:00
Claes Nästén
c756d90da9 add -lrt on Solaris 10, required for nanosleep 2021-06-02 09:09:16 +02:00
Takayuki Matsuoka
f0ea466c36 Fix error in ci.yml
Fix the following error
```
lz4 CI : .github#L1
Error when evaluating 'runs-on' for job 'lz4-check-tag'. (Line: 593, Col: 14): Unexpected value ''
```
2021-06-02 04:59:23 +09:00
Takayuki Matsuoka
5b01b5805a Update document for .github/workflows 2021-06-01 20:03:48 +09:00
Takayuki MATSUOKA
02a41178b7 Merge branch 'lz4:dev' into gha-3 2021-06-01 12:00:00 +09:00