diff options
Diffstat (limited to 'lzotest')
-rw-r--r-- | lzotest/asm.h | 4 | ||||
-rw-r--r-- | lzotest/db.h | 6 | ||||
-rw-r--r-- | lzotest/lzotest.c | 54 | ||||
-rw-r--r-- | lzotest/wrap.h | 9 | ||||
-rw-r--r-- | lzotest/wrapmisc.h | 2 |
5 files changed, 21 insertions, 54 deletions
diff --git a/lzotest/asm.h b/lzotest/asm.h index f0f99ca..3648bbe 100644 --- a/lzotest/asm.h +++ b/lzotest/asm.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 @@ -31,7 +31,7 @@ **************************************************************************/ #if defined(LZO_USE_ASM) -# include "lzo/lzo_asm.h" +# include <lzo/lzo_asm.h> #else # define lzo1c_decompress_asm 0 # define lzo1c_decompress_asm_safe 0 diff --git a/lzotest/db.h b/lzotest/db.h index 6cade01..d702341 100644 --- a/lzotest/db.h +++ b/lzotest/db.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 @@ -473,9 +473,5 @@ zlib_crc32_x_compress, 0, 0, 0, 0, 0, 0, 0 }, #endif -#if defined(__LZO_PROFESSIONAL__) -# include "lzopro/t_db.ch" -#endif - /* vim:set ts=4 sw=4 et: */ diff --git a/lzotest/lzotest.c b/lzotest/lzotest.c index 02d5787..41fd726 100644 --- a/lzotest/lzotest.c +++ b/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-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> /************************************************************************* @@ -90,43 +90,34 @@ /* LZO algorithms */ #if defined(HAVE_LZO1_H) -# include "lzo/lzo1.h" +# include <lzo/lzo1.h> #endif #if defined(HAVE_LZO1A_H) -# include "lzo/lzo1a.h" +# include <lzo/lzo1a.h> #endif #if defined(HAVE_LZO1B_H) -# include "lzo/lzo1b.h" +# include <lzo/lzo1b.h> #endif #if defined(HAVE_LZO1C_H) -# include "lzo/lzo1c.h" +# include <lzo/lzo1c.h> #endif #if defined(HAVE_LZO1F_H) -# include "lzo/lzo1f.h" +# include <lzo/lzo1f.h> #endif #if defined(HAVE_LZO1X_H) -# include "lzo/lzo1x.h" -# if defined(__LZO_PROFESSIONAL__) -# include "lzo/lzopro/lzo1x.h" -# endif +# include <lzo/lzo1x.h> #endif #if defined(HAVE_LZO1Y_H) -# include "lzo/lzo1y.h" -# if defined(__LZO_PROFESSIONAL__) -# include "lzo/lzopro/lzo1y.h" -# endif +# include <lzo/lzo1y.h> #endif #if defined(HAVE_LZO1Z_H) -# include "lzo/lzo1z.h" +# include <lzo/lzo1z.h> #endif #if defined(HAVE_LZO2A_H) -# include "lzo/lzo2a.h" +# include <lzo/lzo2a.h> #endif #if defined(HAVE_LZO2B_H) -# include "lzo/lzo2b.h" -#endif -#if defined(__LZO_PROFESSIONAL__) -# include "lzopro/t_config.ch" +# include <lzo/lzo2b.h> #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 }; @@ -1469,7 +1456,7 @@ void usage ( const char *name, int exit_code, lzo_bool show_methods ) if (c->decompress_asm_fast_safe) { fprintf(fp, "%s%s", sep, "fastasm+safe"); sep = ", "; } if (c->optimize) - { fprintf(fp, "%s%s", sep, "optimize"); sep = ", "; } + { fprintf(fp, "%s%s", sep, "optimize"); /*sep = ", ";*/ } fprintf(fp, "\n"); } } @@ -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); @@ -1646,9 +1629,6 @@ static void parse_methods(const char *p) 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)); else @@ -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-2017 Markus Franz Xaver Johannes Oberhumer\nAll Rights Reserved.\n\n"); /* diff --git a/lzotest/wrap.h b/lzotest/wrap.h index 772dbe0..815ce04 100644 --- a/lzotest/wrap.h +++ b/lzotest/wrap.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 @@ -238,6 +238,7 @@ adler32_x_compress ( const lzo_bytep src, lzo_uint src_len, lzo_uint32_t adler; adler = lzo_adler32(0, NULL, 0); adler = lzo_adler32(adler, dst, src_len); + LZO_UNUSED_RESULT(adler); *dst_len = src_len; LZO_UNUSED(src); LZO_UNUSED(wrkmem); return 0; @@ -252,15 +253,11 @@ crc32_x_compress ( const lzo_bytep src, lzo_uint src_len, lzo_uint32_t crc; crc = lzo_crc32(0, NULL, 0); crc = lzo_crc32(crc, dst, src_len); + LZO_UNUSED_RESULT(crc); *dst_len = src_len; LZO_UNUSED(src); LZO_UNUSED(wrkmem); return 0; } -#if defined(__LZO_PROFESSIONAL__) -# include "lzopro/t_wrap.ch" -#endif - - /* vim:set ts=4 sw=4 et: */ diff --git a/lzotest/wrapmisc.h b/lzotest/wrapmisc.h index 8fb65b6..50e73b6 100644 --- a/lzotest/wrapmisc.h +++ b/lzotest/wrapmisc.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 |