diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/dict.c | 10 | ||||
-rw-r--r-- | examples/lzopack.c | 8 | ||||
-rw-r--r-- | examples/overlap.c | 8 | ||||
-rw-r--r-- | examples/portab.h | 9 | ||||
-rw-r--r-- | examples/portab_a.h | 2 | ||||
-rw-r--r-- | examples/precomp.c | 10 | ||||
-rw-r--r-- | examples/precomp2.c | 10 | ||||
-rw-r--r-- | examples/simple.c | 10 |
8 files changed, 35 insertions, 32 deletions
diff --git a/examples/dict.c b/examples/dict.c index 3ccc9a5..8945caf 100644 --- a/examples/dict.c +++ b/examples/dict.c @@ -2,7 +2,7 @@ This file is part of the LZO real-time data compression library. - Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer + Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer All Rights Reserved. The LZO library is free software; you can redistribute it and/or @@ -32,8 +32,8 @@ // Please study LZO.FAQ and simple.c first. **************************************************************************/ -#include "lzo/lzoconf.h" -#include "lzo/lzo1x.h" +#include <lzo/lzoconf.h> +#include <lzo/lzo1x.h> /* portability layer */ static const char *progname = NULL; @@ -133,7 +133,7 @@ static int do_file(const char *in_name, int compression_level) /* * Step 3: compress from 'in' to 'out' with LZO1X-999 */ - r = lzo1x_999_compress_level(in,in_len,out,&out_len,wrkmem, + r = lzo1x_999_compress_level(in, in_len, out, &out_len, wrkmem, dict, dict_len, 0, compression_level); if (r != LZO_E_OK) { @@ -192,7 +192,7 @@ int __lzo_cdecl_main main(int argc, char *argv[]) printf("\nLZO real-time data compression library (v%s, %s).\n", lzo_version_string(), lzo_version_date()); - printf("Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer\nAll Rights Reserved.\n\n"); + printf("Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer\nAll Rights Reserved.\n\n"); progname = argv[0]; diff --git a/examples/lzopack.c b/examples/lzopack.c index 1f7d0e2..91c0c1a 100644 --- a/examples/lzopack.c +++ b/examples/lzopack.c @@ -2,7 +2,7 @@ This file is part of the LZO real-time data compression library. - Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer + Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer All Rights Reserved. The LZO library is free software; you can redistribute it and/or @@ -36,8 +36,8 @@ // Please study LZO.FAQ and simple.c first. **************************************************************************/ -#include "lzo/lzoconf.h" -#include "lzo/lzo1x.h" +#include <lzo/lzoconf.h> +#include <lzo/lzo1x.h> /* portability layer */ static const char *progname = NULL; @@ -509,7 +509,7 @@ int __lzo_cdecl_main main(int argc, char *argv[]) printf("\nLZO real-time data compression library (v%s, %s).\n", lzo_version_string(), lzo_version_date()); - printf("Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer\nAll Rights Reserved.\n\n"); + printf("Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer\nAll Rights Reserved.\n\n"); #if 0 printf( diff --git a/examples/overlap.c b/examples/overlap.c index 114fe3b..3ff4d18 100644 --- a/examples/overlap.c +++ b/examples/overlap.c @@ -2,7 +2,7 @@ This file is part of the LZO real-time data compression library. - Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer + Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer All Rights Reserved. The LZO library is free software; you can redistribute it and/or @@ -33,8 +33,8 @@ // Please study LZO.FAQ and simple.c first. **************************************************************************/ -#include "lzo/lzoconf.h" -#include "lzo/lzo1x.h" +#include <lzo/lzoconf.h> +#include <lzo/lzo1x.h> /* portability layer */ static const char *progname = NULL; @@ -259,7 +259,7 @@ int __lzo_cdecl_main main(int argc, char *argv[]) printf("\nLZO real-time data compression library (v%s, %s).\n", lzo_version_string(), lzo_version_date()); - printf("Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer\nAll Rights Reserved.\n\n"); + printf("Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer\nAll Rights Reserved.\n\n"); progname = argv[0]; if (i < argc && argv[i][0] == '-') diff --git a/examples/portab.h b/examples/portab.h index d8217ed..93db56a 100644 --- a/examples/portab.h +++ b/examples/portab.h @@ -2,7 +2,7 @@ This file is part of the LZO real-time data compression library. - Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer + Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer All Rights Reserved. The LZO library is free software; you can redistribute it and/or @@ -26,7 +26,7 @@ */ -#include "lzo/lzoconf.h" +#include <lzo/lzoconf.h> #if (LZO_CC_MSC && (_MSC_VER >= 1000 && _MSC_VER < 1200)) /* avoid '-W4' warnings in system header files */ @@ -39,7 +39,9 @@ # pragma warning(disable: 4710 4711) #endif /* disable silly warnings about using "deprecated" POSIX functions like "fopen" */ -#if (LZO_CC_INTELC_MSC && (__INTEL_COMPILER >= 1100)) +#if (LZO_CC_CLANG_MSC && LZO_CC_CLANG >= 0x030500) +# pragma clang diagnostic ignored "-Wdeprecated-declarations" +#elif (LZO_CC_INTELC_MSC && (__INTEL_COMPILER >= 1100)) # pragma warning(disable: 1786) #elif (LZO_CC_INTELC_MSC && (__INTEL_COMPILER >= 1000)) # pragma warning(disable: 1478) @@ -131,6 +133,7 @@ static lzo_voidp xmalloc(lzo_uint len) if (len >= align && __lzo_align_gap(p, align) != 0) { printf("%s: C library problem: malloc() returned misaligned pointer!\n", progname); + lzo_free(p); exit(1); } return p; diff --git a/examples/portab_a.h b/examples/portab_a.h index a3fbec9..6484197 100644 --- a/examples/portab_a.h +++ b/examples/portab_a.h @@ -2,7 +2,7 @@ This file is part of the LZO real-time data compression library. - Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer + Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer All Rights Reserved. The LZO library is free software; you can redistribute it and/or diff --git a/examples/precomp.c b/examples/precomp.c index 01b1e77..e61b0c1 100644 --- a/examples/precomp.c +++ b/examples/precomp.c @@ -2,7 +2,7 @@ This file is part of the LZO real-time data compression library. - Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer + Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer All Rights Reserved. The LZO library is free software; you can redistribute it and/or @@ -35,9 +35,9 @@ // the algorithm that achieves the best compression ratio. **************************************************************************/ -#include "lzo/lzoconf.h" -#include "lzo/lzo1x.h" -#include "lzo/lzo1y.h" +#include <lzo/lzoconf.h> +#include <lzo/lzo1x.h> +#include <lzo/lzo1y.h> #define USE_LZO1X 1 #define USE_LZO1Y 1 @@ -89,7 +89,7 @@ int __lzo_cdecl_main main(int argc, char *argv[]) printf("\nLZO real-time data compression library (v%s, %s).\n", lzo_version_string(), lzo_version_date()); - printf("Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer\nAll Rights Reserved.\n\n"); + printf("Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer\nAll Rights Reserved.\n\n"); progname = argv[0]; if (argc < 2 || argc > 3) diff --git a/examples/precomp2.c b/examples/precomp2.c index 93dd8b5..3216cd9 100644 --- a/examples/precomp2.c +++ b/examples/precomp2.c @@ -2,7 +2,7 @@ This file is part of the LZO real-time data compression library. - Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer + Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer All Rights Reserved. The LZO library is free software; you can redistribute it and/or @@ -38,9 +38,9 @@ // NOTE: this program can be quite slow for highly redundant files **************************************************************************/ -#include "lzo/lzoconf.h" -#include "lzo/lzo1x.h" -#include "lzo/lzo1y.h" +#include <lzo/lzoconf.h> +#include <lzo/lzo1x.h> +#include <lzo/lzo1y.h> LZO_EXTERN(int) lzo1x_999_compress_internal ( const lzo_bytep in , lzo_uint in_len, @@ -123,7 +123,7 @@ int __lzo_cdecl_main main(int argc, char *argv[]) printf("\nLZO real-time data compression library (v%s, %s).\n", lzo_version_string(), lzo_version_date()); - printf("Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer\nAll Rights Reserved.\n\n"); + printf("Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer\nAll Rights Reserved.\n\n"); progname = argv[0]; if (argc < 2 || argc > 3) diff --git a/examples/simple.c b/examples/simple.c index 42f814a..5757e0c 100644 --- a/examples/simple.c +++ b/examples/simple.c @@ -2,7 +2,7 @@ This file is part of the LZO real-time data compression library. - Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer + Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer All Rights Reserved. The LZO library is free software; you can redistribute it and/or @@ -34,11 +34,11 @@ **************************************************************************/ /* We will be using the LZO1X-1 algorithm, so we have - * to include <lzo1x.h> + * to include <lzo/lzo1x.h> */ -#include "lzo/lzoconf.h" -#include "lzo/lzo1x.h" +#include <lzo/lzoconf.h> +#include <lzo/lzo1x.h> /* portability layer */ static const char *progname = NULL; @@ -78,7 +78,7 @@ int __lzo_cdecl_main main(int argc, char *argv[]) printf("\nLZO real-time data compression library (v%s, %s).\n", lzo_version_string(), lzo_version_date()); - printf("Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer\nAll Rights Reserved.\n\n"); + printf("Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer\nAll Rights Reserved.\n\n"); /* * Step 1: initialize the LZO library |