]> git.ipfire.org Git - thirdparty/zstd.git/log
thirdparty/zstd.git
6 years ago'head -c BYTES' is non-portable. 1518/head
Björn Ketelaars [Mon, 11 Feb 2019 10:49:35 +0000 (11:49 +0100)] 
'head -c BYTES' is non-portable.

Pull request #1499 added a new test, which uses 'head -c'. The '-c'
option is non-portable (not in POSIX). Instead use 'dd'. Similar issue
has been resolved in the past (#1321).

6 years agoMerge pull request #1516 from terrelln/dict-doc
Nick Terrell [Sat, 2 Feb 2019 00:04:05 +0000 (19:04 -0500)] 
Merge pull request #1516 from terrelln/dict-doc

[zdict] Improve documentation

6 years ago[zdict] Improve documentation 1516/head
Nick Terrell [Fri, 1 Feb 2019 23:19:32 +0000 (15:19 -0800)] 
[zdict] Improve documentation

6 years agoMerge pull request #1515 from thatsafunnyname/patch-1
Nick Terrell [Fri, 1 Feb 2019 18:41:27 +0000 (13:41 -0500)] 
Merge pull request #1515 from thatsafunnyname/patch-1

-Wformat-security not needed with -Wformat=2

6 years ago-Wformat-security not needed with -Wformat=2 1515/head
Peter (Stig) Edwards [Fri, 1 Feb 2019 09:38:49 +0000 (09:38 +0000)] 
-Wformat-security not needed with -Wformat=2

6 years ago-Wformat-security not needed with -Wformat=2
Peter (Stig) Edwards [Fri, 1 Feb 2019 09:31:46 +0000 (09:31 +0000)] 
-Wformat-security not needed with -Wformat=2

6 years ago-Wformat-security not needed with -Wformat=2
Peter (Stig) Edwards [Fri, 1 Feb 2019 09:31:02 +0000 (09:31 +0000)] 
-Wformat-security not needed with -Wformat=2

6 years ago-Wformat-security not needed with -Wformat=2
Peter (Stig) Edwards [Fri, 1 Feb 2019 09:30:31 +0000 (09:30 +0000)] 
-Wformat-security not needed with -Wformat=2

6 years ago-Wformat-security not needed with -Wformat=2
Peter (Stig) Edwards [Fri, 1 Feb 2019 09:29:40 +0000 (09:29 +0000)] 
-Wformat-security not needed with -Wformat=2

6 years ago-Wformat-security not needed with -Wformat=2
Peter (Stig) Edwards [Fri, 1 Feb 2019 09:29:08 +0000 (09:29 +0000)] 
-Wformat-security not needed with -Wformat=2

6 years ago-Wformat-security not needed with -Wformat=2
Peter (Stig) Edwards [Fri, 1 Feb 2019 09:28:41 +0000 (09:28 +0000)] 
-Wformat-security not needed with -Wformat=2

6 years ago-Wformat-security not needed with -Wformat=2
Peter (Stig) Edwards [Fri, 1 Feb 2019 09:27:22 +0000 (09:27 +0000)] 
-Wformat-security not needed with -Wformat=2

6 years agoMerge pull request #1511 from lwhsu/cirrus-ci
Nick Terrell [Wed, 30 Jan 2019 21:53:13 +0000 (16:53 -0500)] 
Merge pull request #1511 from lwhsu/cirrus-ci

Change Cirrus CI's badge to dev branch

6 years agoChange Cirrus CI's badge to dev branch 1511/head
Li-Wen Hsu [Wed, 30 Jan 2019 21:37:04 +0000 (05:37 +0800)] 
Change Cirrus CI's badge to dev branch

6 years agoMerge pull request #1501 from lwhsu/cirrus-ci
Nick Terrell [Wed, 30 Jan 2019 19:15:02 +0000 (14:15 -0500)] 
Merge pull request #1501 from lwhsu/cirrus-ci

Add Cirrus-CI config and build status badge for testing on FreeBSD

6 years agoMerge pull request #1509 from felixhandte/verbose-errors
Yann Collet [Tue, 29 Jan 2019 19:32:24 +0000 (11:32 -0800)] 
Merge pull request #1509 from felixhandte/verbose-errors

Add Debug Information to Error Checks

6 years agoRename FORWARD_ERROR -> FORWARD_IF_ERROR 1509/head
W. Felix Handte [Tue, 29 Jan 2019 17:56:07 +0000 (12:56 -0500)] 
Rename FORWARD_ERROR -> FORWARD_IF_ERROR

6 years agoAdd Comment
W. Felix Handte [Mon, 28 Jan 2019 22:35:31 +0000 (17:35 -0500)] 
Add Comment

6 years agoRemove CHECK_E Macro
W. Felix Handte [Mon, 28 Jan 2019 22:28:14 +0000 (17:28 -0500)] 
Remove CHECK_E Macro

6 years agoReplace Uses of CHECK_E with RETURN_ERROR_IF(*_isError(...
W. Felix Handte [Mon, 28 Jan 2019 22:27:29 +0000 (17:27 -0500)] 
Replace Uses of CHECK_E with RETURN_ERROR_IF(*_isError(...

6 years agoRemove CHECK_F Macro
W. Felix Handte [Mon, 28 Jan 2019 22:16:32 +0000 (17:16 -0500)] 
Remove CHECK_F Macro

6 years agoReplace CHECK_F Uses in zstdmt_compress.c and zstd_ddict.c
W. Felix Handte [Mon, 28 Jan 2019 22:15:57 +0000 (17:15 -0500)] 
Replace CHECK_F Uses in zstdmt_compress.c and zstd_ddict.c

6 years agoMerge pull request #1508 from facebook/fileio_lz4
Yann Collet [Mon, 28 Jan 2019 22:12:27 +0000 (14:12 -0800)] 
Merge pull request #1508 from facebook/fileio_lz4

fixed fileio.c compilation with LZ4 enabled

6 years agoAlso Convert zstd_compress.c
W. Felix Handte [Mon, 28 Jan 2019 22:05:18 +0000 (17:05 -0500)] 
Also Convert zstd_compress.c

6 years agoAdd grep-able String to Error Macros
W. Felix Handte [Mon, 28 Jan 2019 17:50:36 +0000 (12:50 -0500)] 
Add grep-able String to Error Macros

6 years agoSwitch CHECK_F Calls to FORWARD_ERROR
W. Felix Handte [Mon, 28 Jan 2019 17:42:00 +0000 (12:42 -0500)] 
Switch CHECK_F Calls to FORWARD_ERROR

6 years agoSwitch Unconditional RETURN_ERROR_IF Calls to RETURN_ERROR
W. Felix Handte [Mon, 28 Jan 2019 17:35:56 +0000 (12:35 -0500)] 
Switch Unconditional RETURN_ERROR_IF Calls to RETURN_ERROR

6 years agoAdd RETURN_ERROR and FORWARD_ERROR Macros
W. Felix Handte [Mon, 28 Jan 2019 17:34:08 +0000 (12:34 -0500)] 
Add RETURN_ERROR and FORWARD_ERROR Macros

6 years agoConvert Checks in zstd_decompress.c to RETURN_ERROR_IF
W. Felix Handte [Mon, 28 Jan 2019 17:22:52 +0000 (12:22 -0500)] 
Convert Checks in zstd_decompress.c to RETURN_ERROR_IF

6 years agoConvert Checks in zstd_decompress_block.c to RETURN_ERROR_IF
W. Felix Handte [Thu, 6 Dec 2018 01:17:11 +0000 (17:17 -0800)] 
Convert Checks in zstd_decompress_block.c to RETURN_ERROR_IF

6 years agoAdd RETURN_ERROR_IF Macro That Logs Debug Information When Check Fails
W. Felix Handte [Thu, 6 Dec 2018 00:23:18 +0000 (16:23 -0800)] 
Add RETURN_ERROR_IF Macro That Logs Debug Information When Check Fails

6 years agofixed fileio.c compilation with LZ4 enabled 1508/head
Yann Collet [Fri, 25 Jan 2019 22:42:44 +0000 (14:42 -0800)] 
fixed fileio.c compilation with LZ4 enabled

was broken by #1505.

I'm surprised it passed CI tests.
LZ4 tests are part of the "Extended" tests on Travis CI,
which are run on "master" and in "cron" jobs.

Since latest cron job did not failed,
especially this one : https://travis-ci.org/facebook/zstd/jobs/484365040
it suggests cron jobs are no longer using `dev` branch.

To be investigated

6 years agoMerge pull request #1505 from kostmo/remove-global-params
Yann Collet [Thu, 24 Jan 2019 01:11:08 +0000 (17:11 -0800)] 
Merge pull request #1505 from kostmo/remove-global-params

Remove global parameters, pass into public functions instead

6 years agoRemove global parameters, pass into public functions instead 1505/head
Karl Ostmo [Wed, 23 Jan 2019 01:31:13 +0000 (17:31 -0800)] 
Remove global parameters, pass into public functions instead

6 years agoMerge pull request #1504 from facebook/conversionWarnings
Yann Collet [Tue, 22 Jan 2019 18:04:59 +0000 (10:04 -0800)] 
Merge pull request #1504 from facebook/conversionWarnings

Conversion warnings

6 years agoRevert "added clang test in travis" 1504/head
Yann Collet [Sun, 20 Jan 2019 19:13:01 +0000 (11:13 -0800)] 
Revert "added clang test in travis"

This reverts commit 4909a341db27f123d920041dcbd5e4a51aa0b38f.

6 years agoadded clang test in travis
Yann Collet [Sun, 20 Jan 2019 07:44:09 +0000 (23:44 -0800)] 
added clang test in travis

6 years agoupdated clang tests
Yann Collet [Sun, 20 Jan 2019 07:40:41 +0000 (23:40 -0800)] 
updated clang tests

target clangbuild

6 years agofixed minor conversion warnings in examples/
Yann Collet [Sun, 20 Jan 2019 07:38:20 +0000 (23:38 -0800)] 
fixed minor conversion warnings in examples/

6 years agoAdd Cirrus-CI build status badge 1501/head
Li-Wen Hsu [Wed, 16 Jan 2019 19:32:46 +0000 (03:32 +0800)] 
Add Cirrus-CI build status badge

6 years agoAdd Cirrus-CI config for FreeBSD builds
Li-Wen Hsu [Thu, 10 Jan 2019 20:00:27 +0000 (04:00 +0800)] 
Add Cirrus-CI config for FreeBSD builds

6 years agoMerge pull request #1499 from kostmo/detect-truncation
Yann Collet [Wed, 16 Jan 2019 16:56:22 +0000 (08:56 -0800)] 
Merge pull request #1499 from kostmo/detect-truncation

fix --list on truncated files

6 years agoMerge pull request #1500 from lwhsu/unistd
Yann Collet [Wed, 16 Jan 2019 14:21:58 +0000 (06:21 -0800)] 
Merge pull request #1500 from lwhsu/unistd

Include unistd.h on unix platforms for explicit function declaration

6 years agofix --list on truncated files 1499/head
Karl Ostmo [Tue, 15 Jan 2019 01:58:46 +0000 (17:58 -0800)] 
fix --list on truncated files

fseek() doesn't indicate when it moves past the end of a file.
Consequently, if a file is truncated within its last block, the error would't be detected.

This PR adds a test scenario that induces this situation using a small compressed file of only one block in size.
This test is added to tests/playTests.sh

Check is implemented by ensuring that the filehandle position is equal to the filesize upon exit.

6 years agoInclude unistd.h on unix platforms for explicit function declaration 1500/head
Li-Wen Hsu [Tue, 15 Jan 2019 20:55:43 +0000 (04:55 +0800)] 
Include unistd.h on unix platforms for explicit function declaration

6 years agoMerge pull request #1496 from hjmjohnson/cmake-improve-conditional-policies
Yann Collet [Thu, 10 Jan 2019 17:35:21 +0000 (09:35 -0800)] 
Merge pull request #1496 from hjmjohnson/cmake-improve-conditional-policies

ENH: Simplify conditional logic

6 years agoENH: Simplify conditional logic 1496/head
Hans Johnson [Tue, 8 Jan 2019 14:43:04 +0000 (08:43 -0600)] 
ENH: Simplify conditional logic

Based on excellent comment in #1489, the logic
to set cmake policies was simplified.  This will
provide an easier mechanism for maintaining the
conditional logic across many versions of cmake.

6 years agoMerge pull request #1494 from lzutao/fix-leak
Yann Collet [Mon, 7 Jan 2019 01:17:02 +0000 (17:17 -0800)] 
Merge pull request #1494 from lzutao/fix-leak

Fix potential leak of 'outBuff' (reported by scan-build)

6 years agoMerge pull request #1493 from lzutao/fix-#1428
Yann Collet [Sun, 6 Jan 2019 20:37:07 +0000 (12:37 -0800)] 
Merge pull request #1493 from lzutao/fix-#1428

Fix #1428 - zstdgrep returned 1 on both matched and unmatched file

6 years agotests/legagy.c: More fixes 1494/head
Lzu Tao [Sun, 6 Jan 2019 16:42:24 +0000 (23:42 +0700)] 
tests/legagy.c: More fixes

6 years agoFix potential leak of 'outBuff' (reported by scan-build)
Lzu Tao [Sun, 6 Jan 2019 16:28:38 +0000 (23:28 +0700)] 
Fix potential leak of 'outBuff' (reported by scan-build)

6 years agoFix #1428 - zstdgrep returned 1 on match and unmatch 1493/head
Lzu Tao [Sun, 6 Jan 2019 14:22:49 +0000 (21:22 +0700)] 
Fix #1428 - zstdgrep returned 1 on match and unmatch

- Use ZCAT for testing zstdgrep in case of non-install yet
- tests: Add file test for zstdgrep

6 years agoMerge pull request #1491 from cemeyer/freebsd_num_cores
Yann Collet [Sat, 5 Jan 2019 19:48:01 +0000 (11:48 -0800)] 
Merge pull request #1491 from cemeyer/freebsd_num_cores

Fix #1425 - Use physical core count API on FreeBSD

6 years agoFix #1425 - Use physical core count API on FreeBSD 1491/head
Conrad Meyer [Fri, 4 Jan 2019 19:57:12 +0000 (11:57 -0800)] 
Fix #1425 - Use physical core count API on FreeBSD

Similar to Apple, use the native physical core count sysctl, when available.

This is a little repetitive (it's basically the __APPLE__ method plus the
otherBSD method concatenated together) but seemed clearer than any way that
would totally eliminate repetition.

The __FreeBSD_version check only tests the version of the FreeBSD kernel
that zstd is compiled on; importantly, it may be run on a different version.
So the compile-time check is a little naive and needs to be able to fallback
to work on older versions of FreeBSD.  For a similar reason, it may make
sense to simply eliminate the __FreeBSD_version check entirely.  The
tradeoff is that a spurious sysctlbyname would be issued when -T0 is used on
older kernels.

6 years agoMerge pull request #1490 from erikwebb/dev
Yann Collet [Thu, 3 Jan 2019 21:22:07 +0000 (13:22 -0800)] 
Merge pull request #1490 from erikwebb/dev

Check CMake minor version support for VERSION_LESS_EQUAL

6 years agoCheck CMake minor version support for VERSION_LESS_EQUAL 1490/head
Erik Webb [Thu, 3 Jan 2019 20:26:20 +0000 (15:26 -0500)] 
Check CMake minor version support for VERSION_LESS_EQUAL

VERSION_LESS_EQUAL is only available to CMake 3.7+. This adds additional
logic to check that CMAKE_MINOR_VERSION is at least 7.

Fixes #1489

6 years agoimproved comments for adjustCParams() and getCParams()
Yann Collet [Wed, 2 Jan 2019 20:14:36 +0000 (12:14 -0800)] 
improved comments for adjustCParams() and getCParams()

6 years agoMerge pull request #1485 from ldv-alt/dev
Yann Collet [Wed, 2 Jan 2019 18:46:41 +0000 (10:46 -0800)] 
Merge pull request #1485 from ldv-alt/dev

contrib/pzstd/Makefile: fix build of tests

6 years agoMerge pull request #1475 from hjmjohnson/cmake-version-setting
Yann Collet [Mon, 31 Dec 2018 05:11:39 +0000 (21:11 -0800)] 
Merge pull request #1475 from hjmjohnson/cmake-version-setting

Cmake version setting

6 years agoProvide forward compatible cmake paradigms 1475/head
Hans Johnson [Mon, 24 Dec 2018 14:18:26 +0000 (08:18 -0600)] 
Provide forward compatible cmake paradigms

Automatically extract version information
from the zstd.h file.  Use naming of variables
consisent with modern cmake and https://semver.org/
(Semantic Versioning 2.0.0, MAJOR, MINOR, PATCH)

Modern versions of cmake provide consistent
paradigms for configuring project external
interface values.

This set of changes provide a back port of
some of cmake 3+ paradigms back to cmake 2.8.9.
Set and allow use of the current cmake policies
for newer versions of cmake when available to
allow for modern compiler features to be
utilized when available.

NOTE: The intent is that future modifications to
cmake will enable (conditional on cmake version support)
the ability to support modern linkage, and target
export mechanisms.  Those future changes will
make incorporating zstd into other packages
much easier.

This patch also allows the more rigourous error
checking of commmon cmake errors to be preformed
by cmake (i.e. more stringent syntax checking and
create errors for common hard to find misuses of
cmake variables).

This patch also provides support for modern
compiler support options by cmake (like
enabling interprocedural optimization
if link time optimizations are known to be supported
by the compiler envirionment.  IPO can be supported
by setting the CMAKE_INTERPROCEDURAL_OPTIMIZATION variable
for newer versions of cmake.

6 years agocontrib/pzstd/Makefile: fix build of tests 1485/head
Dmitry V. Levin [Thu, 27 Dec 2018 12:42:44 +0000 (12:42 +0000)] 
contrib/pzstd/Makefile: fix build of tests

Apparently, Options.o cannot be linked in without $(PROGDIR)/util.o

6 years agoMerge pull request #1474 from hjmjohnson/cmake-set-default-build-type
Yann Collet [Fri, 28 Dec 2018 19:02:22 +0000 (11:02 -0800)] 
Merge pull request #1474 from hjmjohnson/cmake-set-default-build-type

Cmake set default build type

6 years agoMerge pull request #1478 from hjmjohnson/remove-duplicates-validation
Yann Collet [Fri, 28 Dec 2018 18:50:03 +0000 (10:50 -0800)] 
Merge pull request #1478 from hjmjohnson/remove-duplicates-validation

BUG: list sub-command REMOVE_DUPLICATES requires list to be present

6 years agoMerge pull request #1482 from lzutao/travisTest
Yann Collet [Fri, 28 Dec 2018 18:49:01 +0000 (10:49 -0800)] 
Merge pull request #1482 from lzutao/travisTest

travis: Use ninja from official github release

6 years agoMerge pull request #1483 from lzutao/meson-readme
Yann Collet [Fri, 28 Dec 2018 17:46:13 +0000 (09:46 -0800)] 
Merge pull request #1483 from lzutao/meson-readme

meson: Update build guide

6 years agoMerge pull request #1484 from lzutao/meson-pkgconf
Yann Collet [Fri, 28 Dec 2018 06:39:07 +0000 (22:39 -0800)] 
Merge pull request #1484 from lzutao/meson-pkgconf

meson: Correct generating pkgconf after Meson v0.49.0

6 years agotravis: Remove deprecated sudo field 1482/head
Lzu Tao [Fri, 28 Dec 2018 04:55:26 +0000 (11:55 +0700)] 
travis: Remove deprecated sudo field

6 years agomeson: Correct generating pkgconf after Meson v0.49.0 1484/head
Lzu Tao [Fri, 28 Dec 2018 04:20:33 +0000 (11:20 +0700)] 
meson: Correct generating pkgconf after Meson v0.49.0

6 years agomeson: Update build guide [skip ci] 1483/head
Lzu Tao [Fri, 28 Dec 2018 04:17:11 +0000 (11:17 +0700)] 
meson: Update build guide [skip ci]

6 years agotravis: Use ninja from github
Lzu Tao [Fri, 28 Dec 2018 03:07:05 +0000 (10:07 +0700)] 
travis: Use ninja from github

6 years agoMerge pull request #1479 from facebook/visualTest 1480/head v1.3.8
Yann Collet [Thu, 27 Dec 2018 12:42:44 +0000 (04:42 -0800)] 
Merge pull request #1479 from facebook/visualTest

Fix remaining Windows errors

6 years agofixed detection of input==output on Visual 1479/head
Yann Collet [Wed, 26 Dec 2018 23:51:34 +0000 (15:51 -0800)] 
fixed detection of input==output on Visual

due to bad support of inode identifiers.
On Visual, option is limited to same file name,
which is imperfect, but way better than disabling the feature entirely.

It's enough to pass associated tests.

6 years agofixed playTests.sh for minGW
Yann Collet [Wed, 26 Dec 2018 23:19:09 +0000 (15:19 -0800)] 
fixed playTests.sh for minGW

On Windows, the equivalent of `/dev/null` is `NUL`.
When tests are run under msys2/minGW,
the environment identifies itself as Windows,
hence the script uses `NUL` instead of `/dev/null`
but the environment will consider `NUL` to be a regular file name.
Consequently, `NUL` will be overwritten during tests,
triggering an error.

This patch uses flag `-f` to force such overwrite
passing the test.

6 years agoMerge pull request #1477 from hjmjohnson/update-ZSTD_LEGACY_SUPPORT
Yann Collet [Wed, 26 Dec 2018 19:40:28 +0000 (11:40 -0800)] 
Merge pull request #1477 from hjmjohnson/update-ZSTD_LEGACY_SUPPORT

ENH: Update to -DZSTD_LEGACY_SUPPORT=5

6 years agoBUG: list sub-command REMOVE_DUPLICATES requires list to be present 1478/head
Hans Johnson [Mon, 24 Dec 2018 14:37:07 +0000 (08:37 -0600)] 
BUG: list sub-command REMOVE_DUPLICATES requires list to be present

When compiling without c++ enabled, some variables are not present.
This is a check enforced in recent Cmake versions.

CMake Error at CMakeModules/AddZstdCompilationFlags.cmake:54 (list):
  list sub-command REMOVE_DUPLICATES requires list to be present.
Call Stack (most recent call first):
  CMakeLists.txt:53 (ADD_ZSTD_COMPILATION_FLAGS)

6 years agoImprove setting the default build type 1474/head
Hans Johnson [Mon, 24 Dec 2018 14:48:04 +0000 (08:48 -0600)] 
Improve setting the default build type

The CMAKE_BUILD_TYPE variable is a CACHE variable
and should be set in a way that persists and is
documented in the CACHE.  Also set the default
values for the gui to ease selection of types.

These changes provide better support for GUI
configurators that support cmake.

6 years agoENH: Update to -DZSTD_LEGACY_SUPPORT=5 1477/head
Hans Johnson [Wed, 26 Dec 2018 19:17:31 +0000 (13:17 -0600)] 
ENH: Update to -DZSTD_LEGACY_SUPPORT=5

6 years agofixed VS2008 project
Yann Collet [Tue, 25 Dec 2018 23:04:49 +0000 (15:04 -0800)] 
fixed VS2008 project

bench.c => benchfn.c + benchzstd.c
wrong util.c from prior patch

and warnings :
C4127

6 years agoadded *visual* branches to long tests on Appveyor
Yann Collet [Tue, 25 Dec 2018 22:55:45 +0000 (14:55 -0800)] 
added *visual* branches to long tests on Appveyor

6 years agocreate appveyor test branch
Yann Collet [Tue, 25 Dec 2018 22:20:33 +0000 (14:20 -0800)] 
create appveyor test branch

which will execute same tests as `master` branch
hence including older Visual version

6 years agoupdated libzstd documentation
Yann Collet [Tue, 25 Dec 2018 11:10:07 +0000 (03:10 -0800)] 
updated libzstd documentation

6 years agoMerge pull request #1476 from facebook/unifiedTravisYml
Yann Collet [Tue, 25 Dec 2018 10:32:16 +0000 (02:32 -0800)] 
Merge pull request #1476 from facebook/unifiedTravisYml

Unified travis.yml

6 years agoMerge pull request #1473 from facebook/minDecTest
Yann Collet [Tue, 25 Dec 2018 00:36:03 +0000 (16:36 -0800)] 
Merge pull request #1473 from facebook/minDecTest

fixed tests for minimal decoder builds

6 years agopush more tests to master 1476/head
Yann Collet [Mon, 24 Dec 2018 12:15:41 +0000 (04:15 -0800)] 
push more tests to master

to reduce test time for dev

6 years agoMerge pull request #1472 from hjmjohnson/modernize-cmake-syntax
Yann Collet [Mon, 24 Dec 2018 20:24:29 +0000 (12:24 -0800)] 
Merge pull request #1472 from hjmjohnson/modernize-cmake-syntax

Modernize cmake syntax

6 years agoDOC: Provide documentation for cmake best practices. 1472/head
Hans Johnson [Mon, 24 Dec 2018 13:06:31 +0000 (07:06 -0600)] 
DOC: Provide documentation for cmake best practices.

6 years agomaster branch selector
Yann Collet [Mon, 24 Dec 2018 11:44:57 +0000 (03:44 -0800)] 
master branch selector

6 years agoadded master tests
Yann Collet [Mon, 24 Dec 2018 11:31:40 +0000 (03:31 -0800)] 
added master tests

6 years agofixed tests for minimal decoder builds 1473/head
Yann Collet [Mon, 24 Dec 2018 10:56:21 +0000 (02:56 -0800)] 
fixed tests for minimal decoder builds

It's incorrect to mix targets `all` and `check` with directive -j.
They will be build in parallel
and resulting artifacts will fight each other
with different sets of build options (such as DEBUGLEVEL).

6 years agoMerge pull request #1471 from facebook/nofloat
Yann Collet [Sun, 23 Dec 2018 20:35:51 +0000 (12:35 -0800)] 
Merge pull request #1471 from facebook/nofloat

guard functions using floating point for debug mode only

6 years agoMerge pull request #1470 from facebook/U32
Yann Collet [Sun, 23 Dec 2018 20:35:39 +0000 (12:35 -0800)] 
Merge pull request #1470 from facebook/U32

fix confusion between unsigned <-> U32

6 years agoMerge pull request #1469 from facebook/travisTest
Yann Collet [Sun, 23 Dec 2018 03:57:16 +0000 (19:57 -0800)] 
Merge pull request #1469 from facebook/travisTest

update travis test

6 years agoSTYLE: Remove CMake-language block-end command arguments
Hans Johnson [Sun, 23 Dec 2018 01:31:50 +0000 (19:31 -0600)] 
STYLE: Remove CMake-language block-end command arguments

Ancient versions of CMake required else(), endif(), and similar block
termination commands to have arguments matching the command starting the block.
This is no longer the preferred style.

6 years agoSTYLE: Convert CMake-language commands to lower case
Hans Johnson [Sun, 23 Dec 2018 01:31:59 +0000 (19:31 -0600)] 
STYLE: Convert CMake-language commands to lower case

Ancient CMake versions required upper-case commands.  Later command names
became case-insensitive.  Now the preferred style is lower-case.

6 years agoupdated CHANGELOG for v1.3.8
Yann Collet [Sat, 22 Dec 2018 20:10:29 +0000 (12:10 -0800)] 
updated CHANGELOG for v1.3.8

6 years agoguard functions using floating point for debug mode only 1471/head
Yann Collet [Sat, 22 Dec 2018 17:09:40 +0000 (09:09 -0800)] 
guard functions using floating point for debug mode only

they are only used to print debug messages.
Requested in #1386,

6 years agofix confusion between unsigned <-> U32 1470/head
Yann Collet [Sat, 22 Dec 2018 00:19:44 +0000 (16:19 -0800)] 
fix confusion between unsigned <-> U32

as suggested in #1441.

generally U32 and unsigned are the same thing,
except when they are not ...

case : 32-bit compilation for MIPS (uint32_t == unsigned long)

A vast majority of transformation consists in transforming U32 into unsigned.
In rare cases, it's the other way around (typically for internal code, such as seeds).

Among a few issues this patches solves :
- some parameters were declared with type `unsigned` in *.h,
  but with type `U32` in their implementation *.c .
- some parameters have type unsigned*,
  but the caller user a pointer to U32 instead.

These fixes are useful.

However, the bulk of changes is about %u formating,
which requires unsigned type,
but generally receives U32 values instead,
often just for brevity (U32 is shorter than unsigned).
These changes are generally minor, or even annoying.

As a consequence, the amount of code changed is larger than I would expect for such a patch.

Testing is also a pain :
it requires manually modifying `mem.h`,
in order to lie about `U32`
and force it to be an `unsigned long` typically.
On a 64-bit system, this will break the equivalence unsigned == U32.
Unfortunately, it will also break a few static_assert(), controlling structure sizes.
So it also requires modifying `debug.h` to make `static_assert()` a noop.
And then reverting these changes.

So it's inconvenient, and as a consequence,
this property is currently not checked during CI tests.
Therefore, these problems can emerge again in the future.

I wonder if it is worth ensuring proper distinction of U32 != unsigned in CI tests.
It's another restriction for coding, adding more frustration during merge tests,
since most platforms don't need this distinction (hence contributor will not see it),
and while this can matter in theory, the number of platforms impacted seems minimal.

Thoughts ?

6 years agoupdate aarch64 test to xenial 1469/head
Yann Collet [Fri, 21 Dec 2018 23:08:48 +0000 (15:08 -0800)] 
update aarch64 test to xenial

in an attempt to circumvent the `ld` bug

6 years agoMerge pull request #1466 from facebook/noDictPresent
Yann Collet [Fri, 21 Dec 2018 03:01:27 +0000 (19:01 -0800)] 
Merge pull request #1466 from facebook/noDictPresent

fixed : better error message

6 years agoMerge pull request #1467 from terrelln/regression
Nick Terrell [Fri, 21 Dec 2018 02:14:13 +0000 (18:14 -0800)] 
Merge pull request #1467 from terrelln/regression

[regression] Update results.csv