From 98399ed51045871f8d73599322b6947d6b2b80d0 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Mon, 10 Aug 2015 13:51:40 +0200 Subject: Update lzo to 2.09 --- main/lzo/lzotest/lzotest.c | 61 ++++++++++++---------------------------------- 1 file changed, 16 insertions(+), 45 deletions(-) (limited to 'main/lzo/lzotest/lzotest.c') diff --git a/main/lzo/lzotest/lzotest.c b/main/lzo/lzotest/lzotest.c index e4359d3e..e4bae0f8 100644 --- a/main/lzo/lzotest/lzotest.c +++ b/main/lzo/lzotest/lzotest.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-2015 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 /************************************************************************* @@ -90,43 +90,34 @@ /* LZO algorithms */ #if defined(HAVE_LZO1_H) -# include "lzo/lzo1.h" +# include #endif #if defined(HAVE_LZO1A_H) -# include "lzo/lzo1a.h" +# include #endif #if defined(HAVE_LZO1B_H) -# include "lzo/lzo1b.h" +# include #endif #if defined(HAVE_LZO1C_H) -# include "lzo/lzo1c.h" +# include #endif #if defined(HAVE_LZO1F_H) -# include "lzo/lzo1f.h" +# include #endif #if defined(HAVE_LZO1X_H) -# include "lzo/lzo1x.h" -# if defined(__LZO_PROFESSIONAL__) -# include "lzo/lzopro/lzo1x.h" -# endif +# include #endif #if defined(HAVE_LZO1Y_H) -# include "lzo/lzo1y.h" -# if defined(__LZO_PROFESSIONAL__) -# include "lzo/lzopro/lzo1y.h" -# endif +# include #endif #if defined(HAVE_LZO1Z_H) -# include "lzo/lzo1z.h" +# include #endif #if defined(HAVE_LZO2A_H) -# include "lzo/lzo2a.h" +# include #endif #if defined(HAVE_LZO2B_H) -# include "lzo/lzo2b.h" -#endif -#if defined(__LZO_PROFESSIONAL__) -# include "lzopro/t_config.ch" +# include #endif /* other compressors */ #if defined(HAVE_ZLIB_H) @@ -207,10 +198,6 @@ enum { M_Z_CRC32 = 6012, #endif -#if defined(__LZO_PROFESSIONAL__) -# include "lzopro/m_enum.ch" -#endif - M_UNUSED }; @@ -619,7 +606,7 @@ lzo_bool is_compressor ( const compress_t *c ) // check that memory gets accessed within bounds **************************************************************************/ -static void memchecker_init ( mblock_t *mb, lzo_xint l, unsigned char random_byte ) +static void memchecker_init ( mblock_t *mb, lzo_uint l, unsigned char random_byte ) { lzo_uint i; lzo_uint len = (lzo_uint) l; @@ -645,7 +632,7 @@ static void memchecker_init ( mblock_t *mb, lzo_xint l, unsigned char random_byt } -static int memchecker_check ( mblock_t *mb, lzo_xint l, unsigned char random_byte ) +static int memchecker_check ( mblock_t *mb, lzo_uint l, unsigned char random_byte ) { lzo_uint i; lzo_uint len = (lzo_uint) l; @@ -1495,9 +1482,6 @@ void license(void) fp = stdout; fflush(stdout); fflush(stderr); -#if defined(__LZO_PROFESSIONAL__) -# include "lzopro/license.ch" -#else fprintf(fp, " The LZO library is free software; you can redistribute it and/or\n" " modify it under the terms of the GNU General Public License as\n" @@ -1521,7 +1505,6 @@ fprintf(fp, " http://www.oberhumer.com/opensource/lzo/\n" "\n" ); -#endif fflush(fp); exit(EXIT_OK); @@ -1645,9 +1628,6 @@ static void parse_methods(const char *p) #if defined(ALG_BZIP2) else if (m_strcmp(p,"bzip2") == 0) add_all_methods(M_BZIP2_1,M_BZIP2_9); -#endif -#if defined(__LZO_PROFESSIONAL__) -# include "lzopro/t_opt_m.ch" #endif else if (m_strisdigit(p)) add_method(atoi(p)); @@ -1922,15 +1902,9 @@ int __lzo_cdecl_main main(int argc, char *argv[]) if ((*s == '/' || *s == '\\') && s[1]) progname = s + 1; -#if defined(__LZO_PROFESSIONAL__) - printf("\nLZO Professional 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"); -#else 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"); -#endif + printf("Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer\nAll Rights Reserved.\n\n"); /* @@ -2089,7 +2063,4 @@ int __lzo_cdecl_main main(int argc, char *argv[]) } -/* -vi:ts=4:et -*/ - +/* vim:set ts=4 sw=4 et: */ -- cgit v1.2.3