]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed library compilation
authorYann Collet <yann.collet.73@gmail.com>
Wed, 11 Nov 2015 13:39:50 +0000 (14:39 +0100)
committerYann Collet <yann.collet.73@gmail.com>
Wed, 11 Nov 2015 13:39:50 +0000 (14:39 +0100)
Makefile
NEWS
lib/Makefile
lib/zstd.h
lib/zstd_decompress.c
programs/bench.h
programs/zstdcli.c

index cea6cb60cc88b4613fc1aa7a49843ae1da0f2654..7caaa466112c1b2eb5578314da0dcce694164579 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -32,7 +32,7 @@
 # ################################################################
 
 # Version number
-export VERSION := 0.3.6
+export VERSION := 0.4.0
 
 PRGDIR  = programs
 ZSTDDIR = lib
diff --git a/NEWS b/NEWS
index 0b635d8037a95857f60b546d0e4f7a48d9b7bb81..94bd7db1926f894f0e3b55111747d93940654535 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+v0.4.0
+Removed zstdhc => merged into zstd
+
 v0.3.6
 small blocks params
 
index 7d09111a7991aa2a0088e5ebbc3266563d5e5d2f..f027076f0d64dbff6c5aed860b9d8262ed00c4a3 100644 (file)
@@ -67,10 +67,10 @@ default: libzstd
 
 all: libzstd
 
-libzstd: zstd.c huff0.c fse.c
+libzstd: zstd_compress.c zstd_decompress.c huff0.c fse.c
        @echo compiling static library
        @$(CC) $(FLAGS) -c $^
-       @$(AR) rcs libzstd.a zstd.o huff0.o fse.o
+       @$(AR) rcs libzstd.a zstd_compress.o zstd_decompress.o huff0.o fse.o
        @echo compiling dynamic library $(LIBVER)
        @$(CC) $(FLAGS) -shared $^ -fPIC $(SONAME_FLAGS) -o $@.$(SHARED_EXT_VER)
        @echo creating versioned links
index 3b18a867d69c530723d3e885d2ac4906c1df0107..96bb184f0a0ff64ae3f540949277be1f08ab24db 100644 (file)
@@ -47,8 +47,8 @@ extern "C" {
 *  Version
 ***************************************/
 #define ZSTD_VERSION_MAJOR    0    /* for breaking interface changes  */
-#define ZSTD_VERSION_MINOR    3    /* for new (non-breaking) interface capabilities */
-#define ZSTD_VERSION_RELEASE  6    /* for tweaks, bug-fixes, or development */
+#define ZSTD_VERSION_MINOR    4    /* for new (non-breaking) interface capabilities */
+#define ZSTD_VERSION_RELEASE  0    /* for tweaks, bug-fixes, or development */
 #define ZSTD_VERSION_NUMBER  (ZSTD_VERSION_MAJOR *100*100 + ZSTD_VERSION_MINOR *100 + ZSTD_VERSION_RELEASE)
 unsigned ZSTD_versionNumber (void);
 
index f3edeb6f2c4445d95333a1f01405d47b8060cf39..36d5bfc38d3a009a2f908b241ad4a78f10c91933 100644 (file)
 #define IS_RAW BIT0
 #define IS_RLE BIT1
 
-static const U32 g_maxDistance = 4 * BLOCKSIZE;
-static const U32 g_maxLimit = 1 GB;
-
-#define WORKPLACESIZE (BLOCKSIZE*3)
 #define MINMATCH 4
 #define LitFSELog  11
 #define MLFSELog   10
index 08f8a36393c9e10d7cedfde9ea78eaeef824099b..3cc67b4df68fd571ac17ab686a64f8fc7ce894c0 100644 (file)
@@ -26,7 +26,7 @@
 
 
 /* Main function */
-int BMK_benchFiles(char** fileNamesTable, unsigned nbFiles, unsigned cLevel);
+int BMK_benchFiles(const char** fileNamesTable, unsigned nbFiles, unsigned cLevel);
 
 /* Set Parameters */
 void BMK_SetNbIterations(int nbLoops);
index 65b235500fb9ddf4e2cdf6f892633073a09584c5..5b74df62c022ab9442fe707d1e14f0a97438a1dd 100644 (file)
@@ -163,7 +163,7 @@ static void waitEnter(void)
 }
 
 
-int main(int argc, char** argv)
+int main(int argCount, const char** argv)
 {
     int i,
         bench=0,
@@ -196,9 +196,9 @@ int main(int argc, char** argv)
         decode=1;
 
     /* command switches */
-    for(i=1; i<argc; i++)
+    for(i=1; i<argCount; i++)
     {
-        char* argument = argv[i];
+        const char* argument = argv[i];
 
         if(!argument) continue;   /* Protection if argument empty */
 
@@ -311,7 +311,7 @@ int main(int argc, char** argv)
         }
 
         /* first provided filename is input */
-        if (!inFileName) { inFileName = argument; fileNameStart = i; nbFiles = argc-i; continue; }
+        if (!inFileName) { inFileName = argument; fileNameStart = i; nbFiles = argCount-i; continue; }
 
         /* second provided filename is output */
         if (!outFileName)