]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
changed version to 0.6.2
authorYann Collet <yann.collet.73@gmail.com>
Fri, 20 May 2016 10:20:12 +0000 (12:20 +0200)
committerYann Collet <yann.collet.73@gmail.com>
Fri, 20 May 2016 10:20:12 +0000 (12:20 +0200)
removed make-controlled version (now used from zstd.h)
removed std=c99 by default
added : c90/gno90/c99/gnu99/c11 tests

.travis.yml
Makefile
lib/Makefile
lib/common/zstd.h
programs/Makefile
programs/zstdcli.c

index b7faed3eba1037220f7a13b705f1764aaeccb6b9..536b5a845351219c1872ad917a139b84735e1a62 100644 (file)
@@ -13,6 +13,8 @@ env:
   - ZSTD_TRAVIS_CI_ENV=clangtest  
   - ZSTD_TRAVIS_CI_ENV=gpptest  
   - ZSTD_TRAVIS_CI_ENV=gnu90test
+  - ZSTD_TRAVIS_CI_ENV=c99test
+  - ZSTD_TRAVIS_CI_ENV=gnu99test
   - ZSTD_TRAVIS_CI_ENV=armtest-w-install  
   - ZSTD_TRAVIS_CI_ENV=test  
   - ZSTD_TRAVIS_CI_ENV="-C programs test32"  
index e7fca85fe96825e3f14db8d670fb6b001f0d80ae..95ecc007c436bdb7b6304621099cc8ccd6334f49 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -30,9 +30,6 @@
 #  - zstd homepage : http://www.zstd.net/
 # ################################################################
 
-# force a version number : uncomment below export (otherwise, default to the one declared into zstd.h)
-#export VERSION := 0.6.1
-
 PRGDIR  = programs
 ZSTDDIR = lib
 
@@ -88,11 +85,20 @@ clangtest: clean
 gpptest: clean
        $(MAKE) all CC=g++ CFLAGS="-O3 -Wall -Wextra -Wundef -Wshadow -Wcast-align -Werror"
 
+c90test: clean
+       CFLAGS="-std=c90" $(MAKE) all  # will fail, due to // and long long
+
 gnu90test: clean
-       $(MAKE) all CFLAGS="-std=gnu90 -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow -Wstrict-aliasing=1 -Wswitch-enum -Wstrict-prototypes -Wundef -Wdeclaration-after-statement -Werror"
+       CFLAGS="-std=gnu90" $(MAKE) all
 
-c90test: clean
-       $(MAKE) all CFLAGS="-std=c90 -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow -Wstrict-aliasing=1 -Wswitch-enum -Wstrict-prototypes -Wundef -Werror"   # will fail, due to // and long long
+c99test: clean
+       CFLAGS="-std=c99" $(MAKE) all
+
+gnu99test: clean
+       CFLAGS="-std=gnu99" $(MAKE) all
+
+c11test: clean
+       CFLAGS="-std=c11" $(MAKE) all
 
 bmix64test: clean
        CFLAGS="-O3 -mbmi -Werror" $(MAKE) -C $(PRGDIR) test
index 5ea014dd177546fb785577a2960a47015e9c699a..90436695917db97ba0de88e367215e502bd9d3ce 100644 (file)
@@ -45,7 +45,7 @@ DESTDIR?=
 PREFIX ?= /usr/local
 CPPFLAGS= -I./common
 CFLAGS ?= -O3
-CFLAGS += -std=c99 -Wall -Wextra -Wundef -Wshadow -Wcast-qual -Wcast-align -Wstrict-prototypes -Wstrict-aliasing=1
+CFLAGS += -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow -Wstrict-aliasing=1 -Wswitch-enum -Wstrict-prototypes -Wundef
 FLAGS   = $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(MOREFLAGS)
 
 LIBDIR ?= $(PREFIX)/lib
index 7b5708c42be1c75d94a71c26e1c84956200c79be..dbcf62ba4b5f074e0fd1a5b342126237424eceba 100644 (file)
@@ -61,7 +61,7 @@ extern "C" {
 ***************************************/
 #define ZSTD_VERSION_MAJOR    0
 #define ZSTD_VERSION_MINOR    6
-#define ZSTD_VERSION_RELEASE  1
+#define ZSTD_VERSION_RELEASE  2
 
 #define ZSTD_LIB_VERSION ZSTD_VERSION_MAJOR.ZSTD_VERSION_MINOR.ZSTD_VERSION_RELEASE
 #define ZSTD_QUOTE(str) #str
index 70434cedc390684908ee051c67a21adcb029967a..682927192f1481a45196ced688285c3874ad9eba 100644 (file)
 # fullbench32: Same as fullbench, but forced to compile in 32-bits mode
 # ##########################################################################
 
-# Version numbers
-LIBVER_MAJOR_SCRIPT:=`sed -n '/define ZSTD_VERSION_MAJOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < ../lib/common/zstd.h`
-LIBVER_MINOR_SCRIPT:=`sed -n '/define ZSTD_VERSION_MINOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < ../lib/common/zstd.h`
-LIBVER_PATCH_SCRIPT:=`sed -n '/define ZSTD_VERSION_RELEASE/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < ../lib/common/zstd.h`
-LIBVER_SCRIPT:= $(LIBVER_MAJOR_SCRIPT).$(LIBVER_MINOR_SCRIPT).$(LIBVER_PATCH_SCRIPT)
-LIBVER_MAJOR := $(shell echo $(LIBVER_MAJOR_SCRIPT))
-LIBVER_MINOR := $(shell echo $(LIBVER_MINOR_SCRIPT))
-LIBVER_PATCH := $(shell echo $(LIBVER_PATCH_SCRIPT))
-LIBVER := $(shell echo $(LIBVER_SCRIPT))
-VERSION?= $(LIBVER)
-
 DESTDIR?=
 PREFIX ?= /usr/local
-CPPFLAGS= -I../lib/common -DZSTD_VERSION=\"$(VERSION)\"
+CPPFLAGS= -I../lib/common
 CFLAGS ?= -O3  # -falign-loops=32   # not always beneficial
-CFLAGS += -std=c99 -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow -Wstrict-aliasing=1 -Wswitch-enum -Wstrict-prototypes -Wundef
+CFLAGS += -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow -Wstrict-aliasing=1 -Wswitch-enum -Wstrict-prototypes -Wundef
 FLAGS   = $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(MOREFLAGS)
 
 BINDIR  = $(PREFIX)/bin
index 310db7f8804ccb09ce2fcff230ffb749b02f34ef..3bb4db70aba20164419b7f1b3bb8811a1895e463 100644 (file)
@@ -133,6 +133,7 @@ static int usage_advanced(const char* programName)
     DISPLAY( "--ultra : enable ultra modes (requires more memory to decompress)\n");
 #endif
 #ifndef ZSTD_NODICT
+    DISPLAY( "\n");
     DISPLAY( "Dictionary builder :\n");
     DISPLAY( "--train : create a dictionary from a training set of files \n");
     DISPLAY( " -o file: `file` is dictionary name (default: %s) \n", g_defaultDictName);
@@ -140,6 +141,7 @@ static int usage_advanced(const char* programName)
     DISPLAY( " -s#    : dictionary selectivity level (default: %u)\n", g_defaultSelectivityLevel);
 #endif
 #ifndef ZSTD_NOBENCH
+    DISPLAY( "\n");
     DISPLAY( "Benchmark arguments :\n");
     DISPLAY( " -b#    : benchmark file(s), using # compression level (default : 1) \n");
     DISPLAY( " -e#    : test all compression levels from -bX to # (default: 1)\n");