mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-22 16:31:38 +00:00
Merge remote-tracking branch 'origin/master' into polybackend
This commit is contained in:
commit
e6f6f10e81
2222 changed files with 13762 additions and 5901 deletions
|
@ -155,7 +155,7 @@ target_architecture(ZDOOM_TARGET_ARCH)
|
||||||
|
|
||||||
if( ${ZDOOM_TARGET_ARCH} MATCHES "x86_64" )
|
if( ${ZDOOM_TARGET_ARCH} MATCHES "x86_64" )
|
||||||
set( HAVE_VM_JIT ON )
|
set( HAVE_VM_JIT ON )
|
||||||
set( HAVE_VULKAN ON )
|
option (HAVE_VULKAN "Enable Vulkan support" ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# no, we're not using external asmjit for now, we made too many modifications to our's.
|
# no, we're not using external asmjit for now, we made too many modifications to our's.
|
||||||
|
@ -219,7 +219,7 @@ if( MSVC )
|
||||||
set( DEB_C_FLAGS "/D _CRTDBG_MAP_ALLOC /MTd" )
|
set( DEB_C_FLAGS "/D _CRTDBG_MAP_ALLOC /MTd" )
|
||||||
|
|
||||||
# Disable warnings for unsecure CRT functions from VC8+
|
# Disable warnings for unsecure CRT functions from VC8+
|
||||||
set( ALL_C_FLAGS "${ALL_C_FLAGS} /wd4996 /DUNICODE /D_UNICODE" )
|
set( ALL_C_FLAGS "${ALL_C_FLAGS} /wd4996 /DUNICODE /D_UNICODE /D_WIN32_WINNT=0x0600" )
|
||||||
|
|
||||||
# The CMake configurations set /GR and /MD by default, which conflict with our settings.
|
# The CMake configurations set /GR and /MD by default, which conflict with our settings.
|
||||||
string(REPLACE "/MD " " " CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE} )
|
string(REPLACE "/MD " " " CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE} )
|
||||||
|
@ -300,9 +300,9 @@ option(FORCE_INTERNAL_ASMJIT "Use internal asmjit" ON)
|
||||||
mark_as_advanced( FORCE_INTERNAL_ASMJIT )
|
mark_as_advanced( FORCE_INTERNAL_ASMJIT )
|
||||||
|
|
||||||
if (HAVE_VULKAN)
|
if (HAVE_VULKAN)
|
||||||
add_subdirectory( glslang/glslang)
|
add_subdirectory( libraries/glslang/glslang)
|
||||||
add_subdirectory( glslang/spirv )
|
add_subdirectory( libraries/glslang/spirv )
|
||||||
add_subdirectory( glslang/OGLCompilersDLL )
|
add_subdirectory( libraries/glslang/OGLCompilersDLL )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Fast math flags, required by some subprojects
|
# Fast math flags, required by some subprojects
|
||||||
|
@ -318,8 +318,8 @@ if( ZLIB_FOUND AND NOT FORCE_INTERNAL_ZLIB )
|
||||||
else()
|
else()
|
||||||
message( STATUS "Using internal zlib" )
|
message( STATUS "Using internal zlib" )
|
||||||
set( SKIP_INSTALL_ALL TRUE ) # Avoid installing zlib alongside zdoom
|
set( SKIP_INSTALL_ALL TRUE ) # Avoid installing zlib alongside zdoom
|
||||||
add_subdirectory( zlib )
|
add_subdirectory( libraries/zlib )
|
||||||
set( ZLIB_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/zlib )
|
set( ZLIB_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/libraries/zlib )
|
||||||
set( ZLIB_LIBRARIES z )
|
set( ZLIB_LIBRARIES z )
|
||||||
set( ZLIB_LIBRARY z )
|
set( ZLIB_LIBRARY z )
|
||||||
endif()
|
endif()
|
||||||
|
@ -343,8 +343,8 @@ if( ${HAVE_VM_JIT} )
|
||||||
else()
|
else()
|
||||||
message( STATUS "Using internal asmjit" )
|
message( STATUS "Using internal asmjit" )
|
||||||
set( SKIP_INSTALL_ALL TRUE ) # Avoid installing asmjit alongside zdoom
|
set( SKIP_INSTALL_ALL TRUE ) # Avoid installing asmjit alongside zdoom
|
||||||
add_subdirectory( asmjit )
|
add_subdirectory( libraries/asmjit )
|
||||||
set( ASMJIT_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/asmjit )
|
set( ASMJIT_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/libraries/asmjit )
|
||||||
set( ASMJIT_LIBRARIES asmjit )
|
set( ASMJIT_LIBRARIES asmjit )
|
||||||
set( ASMJIT_LIBRARY asmjit )
|
set( ASMJIT_LIBRARY asmjit )
|
||||||
endif()
|
endif()
|
||||||
|
@ -354,8 +354,8 @@ if( JPEG_FOUND AND NOT FORCE_INTERNAL_JPEG )
|
||||||
message( STATUS "Using system jpeg library, includes found at ${JPEG_INCLUDE_DIR}" )
|
message( STATUS "Using system jpeg library, includes found at ${JPEG_INCLUDE_DIR}" )
|
||||||
else()
|
else()
|
||||||
message( STATUS "Using internal jpeg library" )
|
message( STATUS "Using internal jpeg library" )
|
||||||
add_subdirectory( jpeg )
|
add_subdirectory( libraries/jpeg )
|
||||||
set( JPEG_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/jpeg )
|
set( JPEG_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/libraries/jpeg )
|
||||||
set( JPEG_LIBRARIES jpeg )
|
set( JPEG_LIBRARIES jpeg )
|
||||||
set( JPEG_LIBRARY jpeg )
|
set( JPEG_LIBRARY jpeg )
|
||||||
endif()
|
endif()
|
||||||
|
@ -364,8 +364,8 @@ if( BZIP2_FOUND AND NOT FORCE_INTERNAL_BZIP2 )
|
||||||
message( STATUS "Using system bzip2 library, includes found at ${BZIP2_INCLUDE_DIR}" )
|
message( STATUS "Using system bzip2 library, includes found at ${BZIP2_INCLUDE_DIR}" )
|
||||||
else()
|
else()
|
||||||
message( STATUS "Using internal bzip2 library" )
|
message( STATUS "Using internal bzip2 library" )
|
||||||
add_subdirectory( bzip2 )
|
add_subdirectory( libraries/bzip2 )
|
||||||
set( BZIP2_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/bzip2" )
|
set( BZIP2_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/libraries/bzip2" )
|
||||||
set( BZIP2_LIBRARIES bz2 )
|
set( BZIP2_LIBRARIES bz2 )
|
||||||
set( BZIP2_LIBRARY bz2 )
|
set( BZIP2_LIBRARY bz2 )
|
||||||
endif()
|
endif()
|
||||||
|
@ -377,12 +377,12 @@ else()
|
||||||
# Use MAME as it's balanced emulator: well-accurate, but doesn't eats lot of CPU
|
# Use MAME as it's balanced emulator: well-accurate, but doesn't eats lot of CPU
|
||||||
# Nuked OPN2 is very accurate emulator, but it eats too much CPU for the workflow
|
# Nuked OPN2 is very accurate emulator, but it eats too much CPU for the workflow
|
||||||
set( GME_YM2612_EMU "MAME" )
|
set( GME_YM2612_EMU "MAME" )
|
||||||
add_subdirectory( game-music-emu )
|
add_subdirectory( libraries/game-music-emu )
|
||||||
set( GME_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/game-music-emu" )
|
set( GME_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/libraries/game-music-emu" )
|
||||||
set( GME_LIBRARIES gme )
|
set( GME_LIBRARIES gme )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set( LZMA_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/lzma/C" )
|
set( LZMA_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/libraries/lzma/C" )
|
||||||
|
|
||||||
if( NOT CMAKE_CROSSCOMPILING )
|
if( NOT CMAKE_CROSSCOMPILING )
|
||||||
if( NOT CROSS_EXPORTS )
|
if( NOT CROSS_EXPORTS )
|
||||||
|
@ -400,10 +400,10 @@ install(DIRECTORY docs/
|
||||||
DESTINATION ${INSTALL_DOCS_PATH}
|
DESTINATION ${INSTALL_DOCS_PATH}
|
||||||
COMPONENT "Documentation")
|
COMPONENT "Documentation")
|
||||||
|
|
||||||
add_subdirectory( lzma )
|
add_subdirectory( libraries/lzma )
|
||||||
add_subdirectory( tools )
|
add_subdirectory( tools )
|
||||||
add_subdirectory( dumb )
|
add_subdirectory( libraries/dumb )
|
||||||
add_subdirectory( gdtoa )
|
add_subdirectory( libraries/gdtoa )
|
||||||
add_subdirectory( wadsrc )
|
add_subdirectory( wadsrc )
|
||||||
add_subdirectory( wadsrc_bm )
|
add_subdirectory( wadsrc_bm )
|
||||||
add_subdirectory( wadsrc_lights )
|
add_subdirectory( wadsrc_lights )
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
This file is part of bzip2/libbzip2, a program and library for
|
This file is part of bzip2/libbzip2, a program and library for
|
||||||
lossless, block-sorting data compression.
|
lossless, block-sorting data compression.
|
||||||
|
|
||||||
bzip2/libbzip2 version 1.0.6 of 6 September 2010
|
bzip2/libbzip2 version 1.0.7 of 27 June 2019
|
||||||
Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org>
|
Copyright (C) 1996-2010 Julian Seward <jseward@acm.org>
|
||||||
|
|
||||||
Please read the WARNING, DISCLAIMER and PATENTS sections in the
|
Please read the WARNING, DISCLAIMER and PATENTS sections in the
|
||||||
README file.
|
README file.
|
||||||
|
@ -325,3 +325,16 @@ Security fix only. Fixes CERT-FI 20469 as it applies to bzip2.
|
||||||
Izdebski.
|
Izdebski.
|
||||||
|
|
||||||
* Make the documentation build on Ubuntu 10.04
|
* Make the documentation build on Ubuntu 10.04
|
||||||
|
|
||||||
|
1.0.7 (27 Jun 19)
|
||||||
|
~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
* Fix undefined behavior in the macros SET_BH, CLEAR_BH, & ISSET_BH
|
||||||
|
|
||||||
|
* bzip2: Fix return value when combining --test,-t and -q.
|
||||||
|
|
||||||
|
* bzip2recover: Fix buffer overflow for large argv[0]
|
||||||
|
|
||||||
|
* bzip2recover: Fix use after free issue with outFile (CVE-2016-3189)
|
||||||
|
|
||||||
|
* Make sure nSelectors is not out of range (CVE-2019-12900)
|
|
@ -36,7 +36,7 @@ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
Julian Seward, jseward@bzip.org
|
Julian Seward, jseward@acm.org
|
||||||
bzip2/libbzip2 version 1.0.6 of 6 September 2010
|
bzip2/libbzip2 version 1.0.7 of 27 June 2019
|
||||||
|
|
||||||
--------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
|
@ -6,8 +6,8 @@ This version is fully compatible with the previous public releases.
|
||||||
This file is part of bzip2/libbzip2, a program and library for
|
This file is part of bzip2/libbzip2, a program and library for
|
||||||
lossless, block-sorting data compression.
|
lossless, block-sorting data compression.
|
||||||
|
|
||||||
bzip2/libbzip2 version 1.0.6 of 6 September 2010
|
bzip2/libbzip2 version 1.0.7 of 27 June 2019
|
||||||
Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org>
|
Copyright (C) 1996-2010 Julian Seward <jseward@acm.org>
|
||||||
|
|
||||||
Please read the WARNING, DISCLAIMER and PATENTS sections in this file.
|
Please read the WARNING, DISCLAIMER and PATENTS sections in this file.
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ HOW TO BUILD -- Windows 95, NT, DOS, Mac, etc.
|
||||||
|
|
||||||
It's difficult for me to support compilation on all these platforms.
|
It's difficult for me to support compilation on all these platforms.
|
||||||
My approach is to collect binaries for these platforms, and put them
|
My approach is to collect binaries for these platforms, and put them
|
||||||
on the master web site (http://www.bzip.org). Look there. However
|
on the master web site (https://sourceware.org/bzip2/). Look there. However
|
||||||
(FWIW), bzip2-1.0.X is very standard ANSI C and should compile
|
(FWIW), bzip2-1.0.X is very standard ANSI C and should compile
|
||||||
unmodified with MS Visual C. If you have difficulties building, you
|
unmodified with MS Visual C. If you have difficulties building, you
|
||||||
might want to read README.COMPILATION.PROBLEMS.
|
might want to read README.COMPILATION.PROBLEMS.
|
||||||
|
@ -161,43 +161,22 @@ WHAT'S NEW IN 0.9.5 ?
|
||||||
* Many small improvements in file and flag handling.
|
* Many small improvements in file and flag handling.
|
||||||
* A Y2K statement.
|
* A Y2K statement.
|
||||||
|
|
||||||
WHAT'S NEW IN 1.0.0 ?
|
WHAT'S NEW IN 1.0.x ?
|
||||||
|
|
||||||
See the CHANGES file.
|
See the CHANGES file.
|
||||||
|
|
||||||
WHAT'S NEW IN 1.0.2 ?
|
|
||||||
|
|
||||||
See the CHANGES file.
|
|
||||||
|
|
||||||
WHAT'S NEW IN 1.0.3 ?
|
|
||||||
|
|
||||||
See the CHANGES file.
|
|
||||||
|
|
||||||
WHAT'S NEW IN 1.0.4 ?
|
|
||||||
|
|
||||||
See the CHANGES file.
|
|
||||||
|
|
||||||
WHAT'S NEW IN 1.0.5 ?
|
|
||||||
|
|
||||||
See the CHANGES file.
|
|
||||||
|
|
||||||
WHAT'S NEW IN 1.0.6 ?
|
|
||||||
|
|
||||||
See the CHANGES file.
|
|
||||||
|
|
||||||
|
|
||||||
I hope you find bzip2 useful. Feel free to contact me at
|
I hope you find bzip2 useful. Feel free to contact me at
|
||||||
jseward@bzip.org
|
jseward@acm.org
|
||||||
if you have any suggestions or queries. Many people mailed me with
|
if you have any suggestions or queries. Many people mailed me with
|
||||||
comments, suggestions and patches after the releases of bzip-0.15,
|
comments, suggestions and patches after the releases of bzip-0.15,
|
||||||
bzip-0.21, and bzip2 versions 0.1pl2, 0.9.0, 0.9.5, 1.0.0, 1.0.1,
|
bzip-0.21, and bzip2 versions 0.1pl2, 0.9.0, 0.9.5, 1.0.0, 1.0.1,
|
||||||
1.0.2 and 1.0.3, and the changes in bzip2 are largely a result of this
|
1.0.2 and 1.0.3, and the changes in bzip2 are largely a result of this
|
||||||
feedback. I thank you for your comments.
|
feedback. I thank you for your comments.
|
||||||
|
|
||||||
bzip2's "home" is http://www.bzip.org/
|
bzip2's "home" is https://sourceware.org/bzip2/
|
||||||
|
|
||||||
Julian Seward
|
Julian Seward
|
||||||
jseward@bzip.org
|
jseward@acm.org
|
||||||
Cambridge, UK.
|
Cambridge, UK.
|
||||||
|
|
||||||
18 July 1996 (version 0.15)
|
18 July 1996 (version 0.15)
|
||||||
|
@ -213,3 +192,4 @@ Cambridge, UK.
|
||||||
20 December 2006 (bzip2, version 1.0.4)
|
20 December 2006 (bzip2, version 1.0.4)
|
||||||
10 December 2007 (bzip2, version 1.0.5)
|
10 December 2007 (bzip2, version 1.0.5)
|
||||||
6 Sept 2010 (bzip2, version 1.0.6)
|
6 Sept 2010 (bzip2, version 1.0.6)
|
||||||
|
27 June 2019 (bzip2, version 1.0.7)
|
|
@ -8,8 +8,8 @@
|
||||||
This file is part of bzip2/libbzip2, a program and library for
|
This file is part of bzip2/libbzip2, a program and library for
|
||||||
lossless, block-sorting data compression.
|
lossless, block-sorting data compression.
|
||||||
|
|
||||||
bzip2/libbzip2 version 1.0.6 of 6 September 2010
|
bzip2/libbzip2 version 1.0.7 of 27 June 2019
|
||||||
Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org>
|
Copyright (C) 1996-2010 Julian Seward <jseward@acm.org>
|
||||||
|
|
||||||
Please read the WARNING, DISCLAIMER and PATENTS sections in the
|
Please read the WARNING, DISCLAIMER and PATENTS sections in the
|
||||||
README file.
|
README file.
|
||||||
|
@ -202,9 +202,9 @@ void fallbackQSort3 ( UInt32* fmap,
|
||||||
bhtab [ 0 .. 2+(nblock/32) ] destroyed
|
bhtab [ 0 .. 2+(nblock/32) ] destroyed
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define SET_BH(zz) bhtab[(zz) >> 5] |= (1 << ((zz) & 31))
|
#define SET_BH(zz) bhtab[(zz) >> 5] |= ((UInt32)1 << ((zz) & 31))
|
||||||
#define CLEAR_BH(zz) bhtab[(zz) >> 5] &= ~(1 << ((zz) & 31))
|
#define CLEAR_BH(zz) bhtab[(zz) >> 5] &= ~((UInt32)1 << ((zz) & 31))
|
||||||
#define ISSET_BH(zz) (bhtab[(zz) >> 5] & (1 << ((zz) & 31)))
|
#define ISSET_BH(zz) (bhtab[(zz) >> 5] & ((UInt32)1 << ((zz) & 31)))
|
||||||
#define WORD_BH(zz) bhtab[(zz) >> 5]
|
#define WORD_BH(zz) bhtab[(zz) >> 5]
|
||||||
#define UNALIGNED_BH(zz) ((zz) & 0x01f)
|
#define UNALIGNED_BH(zz) ((zz) & 0x01f)
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
This file is part of bzip2/libbzip2, a program and library for
|
This file is part of bzip2/libbzip2, a program and library for
|
||||||
lossless, block-sorting data compression.
|
lossless, block-sorting data compression.
|
||||||
|
|
||||||
bzip2/libbzip2 version 1.0.6 of 6 September 2010
|
bzip2/libbzip2 version 1.0.7 of 27 June 2019
|
||||||
Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org>
|
Copyright (C) 1996-2010 Julian Seward <jseward@acm.org>
|
||||||
|
|
||||||
Please read the WARNING, DISCLAIMER and PATENTS sections in the
|
Please read the WARNING, DISCLAIMER and PATENTS sections in the
|
||||||
README file.
|
README file.
|
||||||
|
@ -43,7 +43,7 @@ void BZ2_bz__AssertH__fail ( int errcode )
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"\n\nbzip2/libbzip2: internal error number %d.\n"
|
"\n\nbzip2/libbzip2: internal error number %d.\n"
|
||||||
"This is a bug in bzip2/libbzip2, %s.\n"
|
"This is a bug in bzip2/libbzip2, %s.\n"
|
||||||
"Please report it to me at: jseward@bzip.org. If this happened\n"
|
"Please report it to me at: jseward@acm.org. If this happened\n"
|
||||||
"when you were using some program which uses libbzip2 as a\n"
|
"when you were using some program which uses libbzip2 as a\n"
|
||||||
"component, you should also report this bug to the author(s)\n"
|
"component, you should also report this bug to the author(s)\n"
|
||||||
"of that program. Please make an effort to report this bug;\n"
|
"of that program. Please make an effort to report this bug;\n"
|
||||||
|
@ -1234,7 +1234,7 @@ void BZ_API(BZ2_bzReadGetUnused)
|
||||||
|
|
||||||
BZ_SETERR(BZ_OK);
|
BZ_SETERR(BZ_OK);
|
||||||
*nUnused = bzf->strm.avail_in;
|
*nUnused = bzf->strm.avail_in;
|
||||||
*unused = (void **)bzf->strm.next_in;
|
*unused = bzf->strm.next_in;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1247,7 +1247,7 @@ void BZ_API(BZ2_bzReadGetUnused)
|
||||||
int BZ_API(BZ2_bzBuffToBuffCompress)
|
int BZ_API(BZ2_bzBuffToBuffCompress)
|
||||||
( char* dest,
|
( char* dest,
|
||||||
unsigned int* destLen,
|
unsigned int* destLen,
|
||||||
const char* source,
|
char* source,
|
||||||
unsigned int sourceLen,
|
unsigned int sourceLen,
|
||||||
int blockSize100k,
|
int blockSize100k,
|
||||||
int verbosity,
|
int verbosity,
|
||||||
|
@ -1299,7 +1299,7 @@ int BZ_API(BZ2_bzBuffToBuffCompress)
|
||||||
int BZ_API(BZ2_bzBuffToBuffDecompress)
|
int BZ_API(BZ2_bzBuffToBuffDecompress)
|
||||||
( char* dest,
|
( char* dest,
|
||||||
unsigned int* destLen,
|
unsigned int* destLen,
|
||||||
const char* source,
|
char* source,
|
||||||
unsigned int sourceLen,
|
unsigned int sourceLen,
|
||||||
int small,
|
int small,
|
||||||
int verbosity )
|
int verbosity )
|
|
@ -8,8 +8,8 @@
|
||||||
This file is part of bzip2/libbzip2, a program and library for
|
This file is part of bzip2/libbzip2, a program and library for
|
||||||
lossless, block-sorting data compression.
|
lossless, block-sorting data compression.
|
||||||
|
|
||||||
bzip2/libbzip2 version 1.0.6 of 6 September 2010
|
bzip2/libbzip2 version 1.0.7 of 27 June 2019
|
||||||
Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org>
|
Copyright (C) 1996-2010 Julian Seward <jseward@acm.org>
|
||||||
|
|
||||||
Please read the WARNING, DISCLAIMER and PATENTS sections in the
|
Please read the WARNING, DISCLAIMER and PATENTS sections in the
|
||||||
README file.
|
README file.
|
||||||
|
@ -47,7 +47,7 @@ extern "C" {
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
const char *next_in;
|
char *next_in;
|
||||||
unsigned int avail_in;
|
unsigned int avail_in;
|
||||||
unsigned int total_in_lo32;
|
unsigned int total_in_lo32;
|
||||||
unsigned int total_in_hi32;
|
unsigned int total_in_hi32;
|
||||||
|
@ -75,8 +75,24 @@ typedef
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define BZ_API(func) func
|
#ifdef _WIN32
|
||||||
#define BZ_EXTERN extern
|
# include <windows.h>
|
||||||
|
# ifdef small
|
||||||
|
/* windows.h define small to char */
|
||||||
|
# undef small
|
||||||
|
# endif
|
||||||
|
# ifdef BZ_EXPORT
|
||||||
|
# define BZ_API(func) WINAPI func
|
||||||
|
# define BZ_EXTERN extern
|
||||||
|
# else
|
||||||
|
/* import windows dll dynamically */
|
||||||
|
# define BZ_API(func) (WINAPI * func)
|
||||||
|
# define BZ_EXTERN
|
||||||
|
# endif
|
||||||
|
#else
|
||||||
|
# define BZ_API(func) func
|
||||||
|
# define BZ_EXTERN extern
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/*-- Core (low-level) library functions --*/
|
/*-- Core (low-level) library functions --*/
|
||||||
|
@ -100,7 +116,7 @@ BZ_EXTERN int BZ_API(BZ2_bzCompressEnd) (
|
||||||
BZ_EXTERN int BZ_API(BZ2_bzDecompressInit) (
|
BZ_EXTERN int BZ_API(BZ2_bzDecompressInit) (
|
||||||
bz_stream *strm,
|
bz_stream *strm,
|
||||||
int verbosity,
|
int verbosity,
|
||||||
int lowmem
|
int small
|
||||||
);
|
);
|
||||||
|
|
||||||
BZ_EXTERN int BZ_API(BZ2_bzDecompress) (
|
BZ_EXTERN int BZ_API(BZ2_bzDecompress) (
|
||||||
|
@ -124,7 +140,7 @@ BZ_EXTERN BZFILE* BZ_API(BZ2_bzReadOpen) (
|
||||||
int* bzerror,
|
int* bzerror,
|
||||||
FILE* f,
|
FILE* f,
|
||||||
int verbosity,
|
int verbosity,
|
||||||
int lowmem,
|
int small,
|
||||||
void* unused,
|
void* unused,
|
||||||
int nUnused
|
int nUnused
|
||||||
);
|
);
|
||||||
|
@ -188,7 +204,7 @@ BZ_EXTERN void BZ_API(BZ2_bzWriteClose64) (
|
||||||
BZ_EXTERN int BZ_API(BZ2_bzBuffToBuffCompress) (
|
BZ_EXTERN int BZ_API(BZ2_bzBuffToBuffCompress) (
|
||||||
char* dest,
|
char* dest,
|
||||||
unsigned int* destLen,
|
unsigned int* destLen,
|
||||||
const char* source,
|
char* source,
|
||||||
unsigned int sourceLen,
|
unsigned int sourceLen,
|
||||||
int blockSize100k,
|
int blockSize100k,
|
||||||
int verbosity,
|
int verbosity,
|
||||||
|
@ -198,9 +214,9 @@ BZ_EXTERN int BZ_API(BZ2_bzBuffToBuffCompress) (
|
||||||
BZ_EXTERN int BZ_API(BZ2_bzBuffToBuffDecompress) (
|
BZ_EXTERN int BZ_API(BZ2_bzBuffToBuffDecompress) (
|
||||||
char* dest,
|
char* dest,
|
||||||
unsigned int* destLen,
|
unsigned int* destLen,
|
||||||
const char* source,
|
char* source,
|
||||||
unsigned int sourceLen,
|
unsigned int sourceLen,
|
||||||
int lowmem,
|
int small,
|
||||||
int verbosity
|
int verbosity
|
||||||
);
|
);
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
This file is part of bzip2/libbzip2, a program and library for
|
This file is part of bzip2/libbzip2, a program and library for
|
||||||
lossless, block-sorting data compression.
|
lossless, block-sorting data compression.
|
||||||
|
|
||||||
bzip2/libbzip2 version 1.0.6 of 6 September 2010
|
bzip2/libbzip2 version 1.0.7 of 27 June 2019
|
||||||
Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org>
|
Copyright (C) 1996-2010 Julian Seward <jseward@acm.org>
|
||||||
|
|
||||||
Please read the WARNING, DISCLAIMER and PATENTS sections in the
|
Please read the WARNING, DISCLAIMER and PATENTS sections in the
|
||||||
README file.
|
README file.
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
/*-- General stuff. --*/
|
/*-- General stuff. --*/
|
||||||
|
|
||||||
#define BZ_VERSION "1.0.6, 6-Sept-2010"
|
#define BZ_VERSION "1.0.7, 27-Jun-2019"
|
||||||
|
|
||||||
typedef char Char;
|
typedef char Char;
|
||||||
typedef unsigned char Bool;
|
typedef unsigned char Bool;
|
|
@ -8,8 +8,8 @@
|
||||||
This file is part of bzip2/libbzip2, a program and library for
|
This file is part of bzip2/libbzip2, a program and library for
|
||||||
lossless, block-sorting data compression.
|
lossless, block-sorting data compression.
|
||||||
|
|
||||||
bzip2/libbzip2 version 1.0.6 of 6 September 2010
|
bzip2/libbzip2 version 1.0.7 of 27 June 2019
|
||||||
Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org>
|
Copyright (C) 1996-2010 Julian Seward <jseward@acm.org>
|
||||||
|
|
||||||
Please read the WARNING, DISCLAIMER and PATENTS sections in the
|
Please read the WARNING, DISCLAIMER and PATENTS sections in the
|
||||||
README file.
|
README file.
|
||||||
|
@ -202,7 +202,7 @@ void generateMTFValues ( EState* s )
|
||||||
*ryy_j = rtmp2;
|
*ryy_j = rtmp2;
|
||||||
};
|
};
|
||||||
yy[0] = rtmp;
|
yy[0] = rtmp;
|
||||||
j = (Int32)(ryy_j - &(yy[0]));
|
j = ryy_j - &(yy[0]);
|
||||||
mtfv[wr] = j+1; wr++; s->mtfFreq[j+1]++;
|
mtfv[wr] = j+1; wr++; s->mtfFreq[j+1]++;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
This file is part of bzip2/libbzip2, a program and library for
|
This file is part of bzip2/libbzip2, a program and library for
|
||||||
lossless, block-sorting data compression.
|
lossless, block-sorting data compression.
|
||||||
|
|
||||||
bzip2/libbzip2 version 1.0.6 of 6 September 2010
|
bzip2/libbzip2 version 1.0.7 of 27 June 2019
|
||||||
Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org>
|
Copyright (C) 1996-2010 Julian Seward <jseward@acm.org>
|
||||||
|
|
||||||
Please read the WARNING, DISCLAIMER and PATENTS sections in the
|
Please read the WARNING, DISCLAIMER and PATENTS sections in the
|
||||||
README file.
|
README file.
|
|
@ -8,8 +8,8 @@
|
||||||
This file is part of bzip2/libbzip2, a program and library for
|
This file is part of bzip2/libbzip2, a program and library for
|
||||||
lossless, block-sorting data compression.
|
lossless, block-sorting data compression.
|
||||||
|
|
||||||
bzip2/libbzip2 version 1.0.6 of 6 September 2010
|
bzip2/libbzip2 version 1.0.7 of 27 June 2019
|
||||||
Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org>
|
Copyright (C) 1996-2010 Julian Seward <jseward@acm.org>
|
||||||
|
|
||||||
Please read the WARNING, DISCLAIMER and PATENTS sections in the
|
Please read the WARNING, DISCLAIMER and PATENTS sections in the
|
||||||
README file.
|
README file.
|
||||||
|
@ -285,9 +285,9 @@ Int32 BZ2_decompress ( DState* s )
|
||||||
|
|
||||||
/*--- Now the selectors ---*/
|
/*--- Now the selectors ---*/
|
||||||
GET_BITS(BZ_X_SELECTOR_1, nGroups, 3);
|
GET_BITS(BZ_X_SELECTOR_1, nGroups, 3);
|
||||||
if (nGroups < 2 || nGroups > 6) RETURN(BZ_DATA_ERROR);
|
if (nGroups < 2 || nGroups > BZ_N_GROUPS) RETURN(BZ_DATA_ERROR);
|
||||||
GET_BITS(BZ_X_SELECTOR_2, nSelectors, 15);
|
GET_BITS(BZ_X_SELECTOR_2, nSelectors, 15);
|
||||||
if (nSelectors < 1) RETURN(BZ_DATA_ERROR);
|
if (nSelectors < 1 || nSelectors > BZ_MAX_SELECTORS) RETURN(BZ_DATA_ERROR);
|
||||||
for (i = 0; i < nSelectors; i++) {
|
for (i = 0; i < nSelectors; i++) {
|
||||||
j = 0;
|
j = 0;
|
||||||
while (True) {
|
while (True) {
|
|
@ -8,8 +8,8 @@
|
||||||
This file is part of bzip2/libbzip2, a program and library for
|
This file is part of bzip2/libbzip2, a program and library for
|
||||||
lossless, block-sorting data compression.
|
lossless, block-sorting data compression.
|
||||||
|
|
||||||
bzip2/libbzip2 version 1.0.6 of 6 September 2010
|
bzip2/libbzip2 version 1.0.7 of 27 June 2019
|
||||||
Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org>
|
Copyright (C) 1996-2010 Julian Seward <jseward@acm.org>
|
||||||
|
|
||||||
Please read the WARNING, DISCLAIMER and PATENTS sections in the
|
Please read the WARNING, DISCLAIMER and PATENTS sections in the
|
||||||
README file.
|
README file.
|
|
@ -8,8 +8,8 @@
|
||||||
This file is part of bzip2/libbzip2, a program and library for
|
This file is part of bzip2/libbzip2, a program and library for
|
||||||
lossless, block-sorting data compression.
|
lossless, block-sorting data compression.
|
||||||
|
|
||||||
bzip2/libbzip2 version 1.0.6 of 6 September 2010
|
bzip2/libbzip2 version 1.0.7 of 27 June 2019
|
||||||
Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org>
|
Copyright (C) 1996-2010 Julian Seward <jseward@acm.org>
|
||||||
|
|
||||||
Please read the WARNING, DISCLAIMER and PATENTS sections in the
|
Please read the WARNING, DISCLAIMER and PATENTS sections in the
|
||||||
README file.
|
README file.
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue