summaryrefslogtreecommitdiffstats
path: root/tests/frametest.c
diff options
context:
space:
mode:
authorYann Collet <Cyan4973@users.noreply.github.com>2016-12-22 10:58:29 (GMT)
committerGitHub <noreply@github.com>2016-12-22 10:58:29 (GMT)
commitb41f9bb132e8207999e89d01925e202da98b7649 (patch)
tree4632c6d377ee39fe9bc5011191824360fe7b3990 /tests/frametest.c
parent7eb16d97d238e2b98f1e6453ed6ad64058cb99c1 (diff)
parentfea95c156761ee10d32a4f12105ebd90c67d4f47 (diff)
downloadlz4-b41f9bb132e8207999e89d01925e202da98b7649.zip
lz4-b41f9bb132e8207999e89d01925e202da98b7649.tar.gz
lz4-b41f9bb132e8207999e89d01925e202da98b7649.tar.bz2
Merge pull request #292 from inikep/dev
improved POSIX
Diffstat (limited to 'tests/frametest.c')
-rw-r--r--tests/frametest.c26
1 files changed, 4 insertions, 22 deletions
diff --git a/tests/frametest.c b/tests/frametest.c
index fd07377..e2e0f86 100644
--- a/tests/frametest.c
+++ b/tests/frametest.c
@@ -35,6 +35,7 @@
/*-************************************
* Includes
**************************************/
+#include "util.h" /* U32 */
#include <stdlib.h> /* malloc, free */
#include <stdio.h> /* fprintf */
#include <string.h> /* strcmp */
@@ -45,25 +46,6 @@
#include "xxhash.h" /* XXH64 */
-/*-************************************
-* Basic Types
-**************************************/
-#if !defined(__VMS) && (defined (__cplusplus) || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */) )
-# include <stdint.h>
-typedef uint8_t BYTE;
-typedef uint16_t U16;
-typedef uint32_t U32;
-typedef int32_t S32;
-typedef uint64_t U64;
-#else
-typedef unsigned char BYTE;
-typedef unsigned short U16;
-typedef unsigned int U32;
-typedef signed int S32;
-typedef unsigned long long U64;
-#endif
-
-
/* unoptimized version; solves endianess & alignment issues */
static void FUZ_writeLE32 (void* dstVoidPtr, U32 value32)
{
@@ -110,7 +92,7 @@ static clock_t g_clockTime = 0;
*****************************************/
static U32 no_prompt = 0;
static U32 displayLevel = 2;
-static U32 pause = 0;
+static U32 use_pause = 0;
/*-*******************************************************
@@ -730,7 +712,7 @@ _end:
free(compressedBuffer);
free(decodedBuffer);
- if (pause) {
+ if (use_pause) {
DISPLAY("press enter to finish \n");
(void)getchar();
}
@@ -802,7 +784,7 @@ int main(int argc, const char** argv)
break;
case 'p': /* pause at the end */
argument++;
- pause = 1;
+ use_pause = 1;
break;
case 'i':