From: Yann Collet Date: Fri, 20 May 2016 10:34:40 +0000 (+0200) Subject: all programs use `ZSTD_VERSION_STRING` from `zstd.h` to display their version X-Git-Tag: v0.7.0^2~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45f84ab7ccbe4dc0ae7308a1b375fd3becfc5fe4;p=thirdparty%2Fzstd.git all programs use `ZSTD_VERSION_STRING` from `zstd.h` to display their version --- diff --git a/lib/compress/fse_compress.c b/lib/compress/fse_compress.c index dad0be794..cde30acff 100644 --- a/lib/compress/fse_compress.c +++ b/lib/compress/fse_compress.c @@ -111,8 +111,6 @@ size_t FSE_buildCTable(FSE_CTable* ct, const short* normalizedCounter, unsigned U32 highThreshold = tableSize-1; /* CTable header */ - - tableU16[-2] = (U16) tableLog; tableU16[-1] = (U16) maxSymbolValue; @@ -147,10 +145,10 @@ size_t FSE_buildCTable(FSE_CTable* ct, const short* normalizedCounter, unsigned } /* Build table */ - { U32 u; for (u=0; u /* clock_t, clock, CLOCKS_PER_SEC */ #include "mem.h" -#include "zstd_static.h" +#include "zstd_static.h" /* ZSTD_VERSION_STRING */ #include "fse_static.h" #include "zbuff.h" #include "datagen.h" @@ -42,11 +42,8 @@ * Constants **************************************/ #define PROGRAM_DESCRIPTION "Zstandard speed analyzer" -#ifndef ZSTD_VERSION -# define ZSTD_VERSION "" -#endif #define AUTHOR "Yann Collet" -#define WELCOME_MESSAGE "*** %s %s %i-bits, by %s (%s) ***\n", PROGRAM_DESCRIPTION, ZSTD_VERSION, (int)(sizeof(void*)*8), AUTHOR, __DATE__ +#define WELCOME_MESSAGE "*** %s %s %i-bits, by %s (%s) ***\n", PROGRAM_DESCRIPTION, ZSTD_VERSION_STRING, (int)(sizeof(void*)*8), AUTHOR, __DATE__ #define KB *(1<<10) diff --git a/programs/fuzzer.c b/programs/fuzzer.c index 5bf532e1a..e664bf433 100644 --- a/programs/fuzzer.c +++ b/programs/fuzzer.c @@ -40,7 +40,7 @@ #include /* timeb */ #include /* strcmp */ #include /* clock_t */ -#include "zstd_static.h" +#include "zstd_static.h" /* ZSTD_VERSION_STRING */ #include "datagen.h" /* RDG_genBuffer */ #include "xxhash.h" /* XXH64 */ #include "mem.h" @@ -49,10 +49,6 @@ /*-************************************ * Constants **************************************/ -#ifndef ZSTD_VERSION -# define ZSTD_VERSION "" -#endif - #define KB *(1U<<10) #define MB *(1U<<20) #define GB *(1U<<30) @@ -805,7 +801,7 @@ int main(int argc, const char** argv) } } } } /* for (argNb=1; argNb