Changeset 133 for smplayer/vendor/current/zlib
- Timestamp:
- Oct 24, 2012, 7:56:20 PM (13 years ago)
- Location:
- smplayer/vendor/current/zlib
- Files:
-
- 2 added
- 1 deleted
- 49 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
smplayer/vendor/current/zlib/CMakeLists.txt
r121 r133 4 4 project(zlib C) 5 5 6 if(NOT DEFINED BUILD_SHARED_LIBS) 7 option(BUILD_SHARED_LIBS "Build a shared library form of zlib" ON) 8 endif() 6 set(VERSION "1.2.7") 7 8 set(INSTALL_BIN_DIR "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH "Installation directory for executables") 9 set(INSTALL_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib" CACHE PATH "Installation directory for libraries") 10 set(INSTALL_INC_DIR "${CMAKE_INSTALL_PREFIX}/include" CACHE PATH "Installation directory for headers") 11 set(INSTALL_MAN_DIR "${CMAKE_INSTALL_PREFIX}/share/man" CACHE PATH "Installation directory for manual pages") 12 set(INSTALL_PKGCONFIG_DIR "${CMAKE_INSTALL_PREFIX}/share/pkgconfig" CACHE PATH "Installation directory for pkgconfig (.pc) files") 9 13 10 14 include(CheckTypeSize) … … 57 61 add_definitions(-D_CRT_SECURE_NO_DEPRECATE) 58 62 add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE) 63 include_directories(${CMAKE_CURRENT_SOURCE_DIR}) 59 64 endif() 60 65 … … 63 68 # in their source tree... 64 69 if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/zconf.h) 65 message( FATAL_ERROR66 "You must remove ${CMAKE_CURRENT_SOURCE_DIR}/zconf.h "67 "from the source tree. This file is included with zlib "68 "but CMake generates this file for you automatically "69 "in the build directory.")70 message(STATUS "Renaming") 71 message(STATUS " ${CMAKE_CURRENT_SOURCE_DIR}/zconf.h") 72 message(STATUS "to 'zconf.h.included' because this file is included with zlib") 73 message(STATUS "but CMake generates it automatically in the build directory.") 74 file(RENAME ${CMAKE_CURRENT_SOURCE_DIR}/zconf.h ${CMAKE_CURRENT_SOURCE_DIR}/zconf.h.included) 70 75 endif() 71 76 endif() 72 77 73 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/zconf.h.cmakein 74 ${CMAKE_CURRENT_BINARY_DIR}/zconf.h @ONLY) 75 include_directories(${CMAKE_CURRENT_BINARY_DIR}) 78 set(ZLIB_PC ${CMAKE_CURRENT_BINARY_DIR}/zlib.pc) 79 configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/zlib.pc.cmakein 80 ${ZLIB_PC} @ONLY) 81 configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/zconf.h.cmakein 82 ${CMAKE_CURRENT_BINARY_DIR}/zconf.h @ONLY) 83 include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_SOURCE_DIR}) 76 84 77 85 … … 121 129 # parse the full version number from zlib.h and include in ZLIB_FULL_VERSION 122 130 file(READ ${CMAKE_CURRENT_SOURCE_DIR}/zlib.h _zlib_h_contents) 123 string(REGEX REPLACE ".*#define[ \t]+ZLIB_VERSION[ \t]+\"([ 0-9A-Za-z.]+)\".*"131 string(REGEX REPLACE ".*#define[ \t]+ZLIB_VERSION[ \t]+\"([-0-9A-Za-z.]+)\".*" 124 132 "\\1" ZLIB_FULL_VERSION ${_zlib_h_contents}) 125 133 … … 140 148 endif(MINGW) 141 149 142 add_library(zlib ${ZLIB_SRCS} ${ZLIB_PUBLIC_HDRS} ${ZLIB_PRIVATE_HDRS}) 150 add_library(zlib SHARED ${ZLIB_SRCS} ${ZLIB_PUBLIC_HDRS} ${ZLIB_PRIVATE_HDRS}) 151 add_library(zlibstatic STATIC ${ZLIB_SRCS} ${ZLIB_PUBLIC_HDRS} ${ZLIB_PRIVATE_HDRS}) 143 152 set_target_properties(zlib PROPERTIES DEFINE_SYMBOL ZLIB_DLL) 144 145 153 set_target_properties(zlib PROPERTIES SOVERSION 1) 146 154 … … 158 166 if(UNIX) 159 167 # On unix-like platforms the library is almost always called libz 160 set_target_properties(zlib PROPERTIES OUTPUT_NAME z) 168 set_target_properties(zlib zlibstatic PROPERTIES OUTPUT_NAME z) 169 set_target_properties(zlib PROPERTIES LINK_FLAGS "-Wl,--version-script,${CMAKE_CURRENT_SOURCE_DIR}/zlib.map") 161 170 elseif(BUILD_SHARED_LIBS AND WIN32) 162 171 # Creates zlib1.dll when building shared library version … … 165 174 166 175 if(NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL ) 167 install(TARGETS zlib 168 RUNTIME DESTINATION bin169 ARCHIVE DESTINATION lib170 LIBRARY DESTINATION lib)176 install(TARGETS zlib zlibstatic 177 RUNTIME DESTINATION "${INSTALL_BIN_DIR}" 178 ARCHIVE DESTINATION "${INSTALL_LIB_DIR}" 179 LIBRARY DESTINATION "${INSTALL_LIB_DIR}" ) 171 180 endif() 172 181 if(NOT SKIP_INSTALL_HEADERS AND NOT SKIP_INSTALL_ALL ) 173 install(FILES ${ZLIB_PUBLIC_HDRS} DESTINATION include)182 install(FILES ${ZLIB_PUBLIC_HDRS} DESTINATION "${INSTALL_INC_DIR}") 174 183 endif() 175 184 if(NOT SKIP_INSTALL_FILES AND NOT SKIP_INSTALL_ALL ) 176 install(FILES zlib.3 DESTINATION share/man/man3) 185 install(FILES zlib.3 DESTINATION "${INSTALL_MAN_DIR}/man3") 186 endif() 187 if(NOT SKIP_INSTALL_FILES AND NOT SKIP_INSTALL_ALL ) 188 install(FILES ${ZLIB_PC} DESTINATION "${INSTALL_PKGCONFIG_DIR}") 177 189 endif() 178 190 -
smplayer/vendor/current/zlib/ChangeLog
r121 r133 1 1 2 2 ChangeLog file for zlib 3 4 Changes in 1.2.7 (2 May 2012) 5 - Replace use of memmove() with a simple copy for portability 6 - Test for existence of strerror 7 - Restore gzgetc_ for backward compatibility with 1.2.6 8 - Fix build with non-GNU make on Solaris 9 - Require gcc 4.0 or later on Mac OS X to use the hidden attribute 10 - Include unistd.h for Watcom C 11 - Use __WATCOMC__ instead of __WATCOM__ 12 - Do not use the visibility attribute if NO_VIZ defined 13 - Improve the detection of no hidden visibility attribute 14 - Avoid using __int64 for gcc or solo compilation 15 - Cast to char * in gzprintf to avoid warnings [Zinser] 16 - Fix make_vms.com for VAX [Zinser] 17 - Don't use library or built-in byte swaps 18 - Simplify test and use of gcc hidden attribute 19 - Fix bug in gzclose_w() when gzwrite() fails to allocate memory 20 - Add "x" (O_EXCL) and "e" (O_CLOEXEC) modes support to gzopen() 21 - Fix bug in test/minigzip.c for configure --solo 22 - Fix contrib/vstudio project link errors [Mohanathas] 23 - Add ability to choose the builder in make_vms.com [Schweda] 24 - Add DESTDIR support to mingw32 win32/Makefile.gcc 25 - Fix comments in win32/Makefile.gcc for proper usage 26 - Allow overriding the default install locations for cmake 27 - Generate and install the pkg-config file with cmake 28 - Build both a static and a shared version of zlib with cmake 29 - Include version symbols for cmake builds 30 - If using cmake with MSVC, add the source directory to the includes 31 - Remove unneeded EXTRA_CFLAGS from win32/Makefile.gcc [Truta] 32 - Move obsolete emx makefile to old [Truta] 33 - Allow the use of -Wundef when compiling or using zlib 34 - Avoid the use of the -u option with mktemp 35 - Improve inflate() documentation on the use of Z_FINISH 36 - Recognize clang as gcc 37 - Add gzopen_w() in Windows for wide character path names 38 - Rename zconf.h in CMakeLists.txt to move it out of the way 39 - Add source directory in CMakeLists.txt for building examples 40 - Look in build directory for zlib.pc in CMakeLists.txt 41 - Remove gzflags from zlibvc.def in vc9 and vc10 42 - Fix contrib/minizip compilation in the MinGW environment 43 - Update ./configure for Solaris, support --64 [Mooney] 44 - Remove -R. from Solaris shared build (possible security issue) 45 - Avoid race condition for parallel make (-j) running example 46 - Fix type mismatch between get_crc_table() and crc_table 47 - Fix parsing of version with "-" in CMakeLists.txt [Snider, Ziegler] 48 - Fix the path to zlib.map in CMakeLists.txt 49 - Force the native libtool in Mac OS X to avoid GNU libtool [Beebe] 50 - Add instructions to win32/Makefile.gcc for shared install [Torri] 51 52 Changes in 1.2.6.1 (12 Feb 2012) 53 - Avoid the use of the Objective-C reserved name "id" 54 - Include io.h in gzguts.h for Microsoft compilers 55 - Fix problem with ./configure --prefix and gzgetc macro 56 - Include gz_header definition when compiling zlib solo 57 - Put gzflags() functionality back in zutil.c 58 - Avoid library header include in crc32.c for Z_SOLO 59 - Use name in GCC_CLASSIC as C compiler for coverage testing, if set 60 - Minor cleanup in contrib/minizip/zip.c [Vollant] 61 - Update make_vms.com [Zinser] 62 - Remove unnecessary gzgetc_ function 63 - Use optimized byte swap operations for Microsoft and GNU [Snyder] 64 - Fix minor typo in zlib.h comments [Rzesniowiecki] 3 65 4 66 Changes in 1.2.6 (29 Jan 2012) -
smplayer/vendor/current/zlib/INDEX
r121 r133 18 18 zlib.map Linux symbol information 19 19 zlib.pc.in Template for pkg-config descriptor 20 zlib.pc.cmakein zlib.pc template for cmake 20 21 zlib2ansi perl script to convert source files for C++ compilation 21 22 -
smplayer/vendor/current/zlib/Makefile.in
r121 r133 33 33 STATICLIB=libz.a 34 34 SHAREDLIB=libz.so 35 SHAREDLIBV=libz.so.1.2. 635 SHAREDLIBV=libz.so.1.2.7 36 36 SHAREDLIBM=libz.so.1 37 37 LIBS=$(STATICLIB) $(SHAREDLIBV) … … 54 54 man3dir = ${mandir}/man3 55 55 pkgconfigdir = ${libdir}/pkgconfig 56 tempfile := $(shell mktemp -u __XXXXXX)57 56 58 57 OBJZ = adler32.o crc32.o deflate.o infback.o inffast.o inflate.o inftrees.o trees.o zutil.o … … 85 84 86 85 teststatic: static 87 @if echo hello world | ./minigzip | ./minigzip -d && ./example; then \ 86 @TMPST=`mktemp fooXXXXXX`; \ 87 if echo hello world | ./minigzip | ./minigzip -d && ./example $$TMPST ; then \ 88 88 echo ' *** zlib test OK ***'; \ 89 89 else \ 90 90 echo ' *** zlib test FAILED ***'; false; \ 91 fi 92 -@rm -f foo.gz91 fi; \ 92 rm -f $$TMPST 93 93 94 94 testshared: shared … … 97 97 DYLD_LIBRARY_PATH=`pwd`:$(DYLD_LIBRARY_PATH) ; export DYLD_LIBRARY_PATH; \ 98 98 SHLIB_PATH=`pwd`:$(SHLIB_PATH) ; export SHLIB_PATH; \ 99 if echo hello world | ./minigzipsh | ./minigzipsh -d && ./examplesh; then \ 99 TMPSH=`mktemp fooXXXXXX`; \ 100 if echo hello world | ./minigzipsh | ./minigzipsh -d && ./examplesh $$TMPSH; then \ 100 101 echo ' *** zlib shared test OK ***'; \ 101 102 else \ 102 103 echo ' *** zlib shared test FAILED ***'; false; \ 103 fi 104 -@rm -f foo.gz104 fi; \ 105 rm -f $$TMPSH 105 106 106 107 test64: all64 107 @if echo hello world | ./minigzip64 | ./minigzip64 -d && ./example64; then \ 108 @TMP64=`mktemp fooXXXXXX`; \ 109 if echo hello world | ./minigzip64 | ./minigzip64 -d && ./example64 $$TMP64; then \ 108 110 echo ' *** zlib 64-bit test OK ***'; \ 109 111 else \ 110 112 echo ' *** zlib 64-bit test FAILED ***'; false; \ 111 fi 112 -@rm -f foo.gz113 fi; \ 114 rm -f $$TMP64 113 115 114 116 infcover.o: test/infcover.c zlib.h zconf.h … … 229 231 230 232 zconf.h.cmakein: zconf.h.in 231 -@echo "/#define ZCONF_H/ a\\\\\n#cmakedefine Z_PREFIX\\\\\n#cmakedefine Z_HAVE_UNISTD_H\n" > $(tempfile) 232 -@sed -f $(tempfile) zconf.h.in > zconf.h.cmakein 233 -@touch -r zconf.h.in zconf.h.cmakein 234 -@rm $(tempfile) 233 -@ TEMPFILE=`mktemp __XXXXXX`; \ 234 echo "/#define ZCONF_H/ a\\\\\n#cmakedefine Z_PREFIX\\\\\n#cmakedefine Z_HAVE_UNISTD_H\n" >> $$TEMPFILE &&\ 235 sed -f $$TEMPFILE zconf.h.in > zconf.h.cmakein &&\ 236 touch -r zconf.h.in zconf.h.cmakein &&\ 237 rm $$TEMPFILE 235 238 236 239 zconf: zconf.h.in -
smplayer/vendor/current/zlib/README
r121 r133 1 1 ZLIB DATA COMPRESSION LIBRARY 2 2 3 zlib 1.2. 6is a general purpose data compression library. All the code is3 zlib 1.2.7 is a general purpose data compression library. All the code is 4 4 thread safe. The data format used by the zlib library is described by RFCs 5 5 (Request for Comments) 1950 to 1952 in the files … … 32 32 http://marknelson.us/1997/01/01/zlib-engine/ . 33 33 34 The changes made in version 1.2. 6are documented in the file ChangeLog.34 The changes made in version 1.2.7 are documented in the file ChangeLog. 35 35 36 36 Unsupported third party contributions are provided in directory contrib/ . -
smplayer/vendor/current/zlib/as400/bndsrc
r121 r133 196 196 197 197 EXPORT SYMBOL("gzgetc_") 198 EXPORT SYMBOL("gzflags")199 198 200 199 /********************************************************************/ -
smplayer/vendor/current/zlib/as400/compile.clp
r121 r133 106 106 &MODLIB/ZUTIL) + 107 107 SRCFILE(&SRCLIB/&CTLFILE) SRCMBR(BNDSRC) + 108 TEXT('ZLIB 1.2. 6') TGTRLS(&TGTRLS)108 TEXT('ZLIB 1.2.7') TGTRLS(&TGTRLS) 109 109 110 110 ENDPGM -
smplayer/vendor/current/zlib/as400/readme.txt
r121 r133 1 ZLIB version 1.2. 6for AS400 installation instructions1 ZLIB version 1.2.7 for AS400 installation instructions 2 2 3 3 I) From an AS400 *SAVF file: -
smplayer/vendor/current/zlib/as400/zlib.inc
r121 r133 2 2 * 3 3 * ILE RPG400 version by Patrick Monnerat, DATASPHERE. 4 * Version 1.2. 64 * Version 1.2.7 5 5 * 6 6 * … … 23 23 * Versioning information. 24 24 * 25 D ZLIB_VERSION C '1.2. 6'26 D ZLIB_VERNUM C X'12 60'25 D ZLIB_VERSION C '1.2.7' 26 D ZLIB_VERNUM C X'1270' 27 27 D ZLIB_VER_MAJOR C 1 28 28 D ZLIB_VER_MINOR C 2 29 29 D ZLIB_VER_REVISION... 30 D C 630 D C 7 31 31 D ZLIB_VER_SUBREVISION... 32 32 D C 0 … … 443 443 D strm like(z_stream) Expansion stream 444 444 * 445 D gzflags PR 10U 0 extproc('gzflags')446 *447 445 /endif -
smplayer/vendor/current/zlib/configure
r121 r133 14 14 # an error. 15 15 16 # start off configure.log 16 17 echo -------------------- >> configure.log 17 18 echo $0 $* >> configure.log 18 19 date >> configure.log 19 20 21 # set command prefix for cross-compilation 20 22 if [ -n "${CHOST}" ]; then 21 23 uname="`echo "${CHOST}" | sed -e 's/^[^-]*-\([^-]*\)$/\1/' -e 's/^[^-]*-[^-]*-\([^-]*\)$/\1/' -e 's/^[^-]*-[^-]*-\([^-]*\)-.*$/\1/'`" … … 23 25 fi 24 26 27 # destination name for static library 25 28 STATICLIB=libz.a 29 30 # extract zlib version numbers from zlib.h 26 31 VER=`sed -n -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h` 27 32 VER3=`sed -n -e '/VERSION "/s/.*"\([0-9]*\\.[0-9]*\\.[0-9]*\).*/\1/p' < zlib.h` 28 33 VER2=`sed -n -e '/VERSION "/s/.*"\([0-9]*\\.[0-9]*\)\\..*/\1/p' < zlib.h` 29 34 VER1=`sed -n -e '/VERSION "/s/.*"\([0-9]*\)\\..*/\1/p' < zlib.h` 35 36 # establish commands for library building 30 37 if "${CROSS_PREFIX}ar" --version >/dev/null 2>/dev/null || test $? -lt 126; then 31 38 AR=${AR-"${CROSS_PREFIX}ar"} … … 48 55 NM=${NM-"nm"} 49 56 fi 57 58 # set defaults before processing command line options 50 59 LDCONFIG=${LDCONFIG-"ldconfig"} 51 60 LDSHAREDLIBC="${LDSHAREDLIBC--lc}" … … 69 78 PIC_OBJC='$(PIC_OBJZ) $(PIC_OBJG)' 70 79 80 # process command line options 71 81 while test $# -ge 1 72 82 do … … 101 111 done 102 112 113 # define functions for testing compiler and library characteristics and logging the results 103 114 test=ztest$$ 104 115 … … 137 148 fi 138 149 139 echo >> configure.log 140 150 tryboth() 151 { 152 show $* 153 got=`( $* ) 2>&1` 154 ret=$? 155 printf %s "$got" >> configure.log 156 if test $ret -ne 0; then 157 return $ret 158 fi 159 test "$got" = "" 160 } 161 162 echo >> configure.log 163 164 # check for gcc vs. cc and set compile and link flags based on the system identified by uname 141 165 cat > $test.c <<EOF 142 166 extern int getchar(); … … 150 174 case "$cc" in 151 175 *gcc*) gcc=1 ;; 176 *clang*) gcc=1 ;; 152 177 esac 153 178 case `$cc -v 2>&1` in … … 207 232 SHAREDLIBM=libz.$VER1$shared_ext 208 233 LDSHARED=${LDSHARED-"$cc -dynamiclib -install_name $libdir/$SHAREDLIBM -compatibility_version $VER1 -current_version $VER3"} 209 AR=" libtool"234 AR="/usr/bin/libtool" 210 235 ARFLAGS="-o" ;; 211 236 *) LDSHARED=${LDSHARED-"$cc -shared"} ;; … … 252 277 LDSHARED=${LDSHARED-"cc -dy -KPIC -G"} ;; 253 278 SunOS\ 5* | solaris*) 254 LDSHARED=${LDSHARED-"cc -G"} 255 case `(uname -m || echo unknown) 2>/dev/null` in 256 i86*) 257 SFLAGS=${CFLAGS-"-xpentium -fast -KPIC -R."} 258 CFLAGS=${CFLAGS-"-xpentium -fast"} ;; 259 *) 260 SFLAGS=${CFLAGS-"-fast -xcg92 -KPIC -R."} 261 CFLAGS=${CFLAGS-"-fast -xcg92"} ;; 262 esac ;; 279 LDSHARED=${LDSHARED-"cc -G -h libz$shared_ext.$VER1"} 280 SFLAGS=${CFLAGS-"-fast -KPIC"} 281 CFLAGS=${CFLAGS-"-fast"} 282 if test $build64 -eq 1; then 283 # old versions of SunPRO/Workshop/Studio don't support -m64, 284 # but newer ones do. Check for it. 285 flag64=`$CC -flags | egrep -- '^-m64'` 286 if test x"$flag64" != x"" ; then 287 CFLAGS="${CFLAGS} -m64" 288 SFLAGS="${SFLAGS} -m64" 289 else 290 case `(uname -m || echo unknown) 2>/dev/null` in 291 i86*) 292 SFLAGS="$SFLAGS -xarch=amd64" 293 CFLAGS="$CFLAGS -xarch=amd64" ;; 294 *) 295 SFLAGS="$SFLAGS -xarch=v9" 296 CFLAGS="$CFLAGS -xarch=v9" ;; 297 esac 298 fi 299 fi 300 ;; 263 301 SunOS\ 4*) SFLAGS=${CFLAGS-"-O2 -PIC"} 264 302 CFLAGS=${CFLAGS-"-O2"} … … 290 328 fi 291 329 330 # destination names for shared library if not defined above 292 331 SHAREDLIB=${SHAREDLIB-"libz$shared_ext"} 293 332 SHAREDLIBV=${SHAREDLIBV-"libz$shared_ext.$VER"} … … 296 335 echo >> configure.log 297 336 337 # see if shared library build supported 298 338 if test $shared -eq 1; then 299 339 echo Checking for shared library support... | tee -a configure.log … … 323 363 fi 324 364 365 echo >> configure.log 366 367 # check for underscores in external names for use by assembler code 325 368 CPP=${CPP-"$CC -E"} 326 369 case $CFLAGS in … … 338 381 echo >> configure.log 339 382 383 # check for large file support, and if none, check for fseeko() 340 384 cat > $test.c <<EOF 341 385 #include <sys/types.h> … … 368 412 fi 369 413 414 echo >> configure.log 415 416 # check for strerror() for use by gz* functions 417 cat > $test.c <<EOF 418 #include <string.h> 419 #include <errno.h> 420 int main() { return strlen(strerror(errno)); } 421 EOF 422 if try $CC $CFLAGS -o $test $test.c; then 423 echo "Checking for strerror... Yes." | tee -a configure.log 424 else 425 CFLAGS="${CFLAGS} -DNO_STRERROR" 426 SFLAGS="${SFLAGS} -DNO_STRERROR" 427 echo "Checking for strerror... No." | tee -a configure.log 428 fi 429 430 # copy clean zconf.h for subsequent edits 370 431 cp -p zconf.h.in zconf.h 371 432 372 433 echo >> configure.log 373 434 435 # check for unistd.h and save result in zconf.h 374 436 cat > $test.c <<EOF 375 437 #include <unistd.h> … … 386 448 echo >> configure.log 387 449 450 # check for stdarg.h and save result in zconf.h 388 451 cat > $test.c <<EOF 389 452 #include <stdarg.h> … … 398 461 fi 399 462 463 # if the z_ prefix was requested, save that in zconf.h 400 464 if test $zprefix -eq 1; then 401 465 sed < zconf.h "/#ifdef Z_PREFIX.* may be/s/def Z_PREFIX\(.*\) may be/ 1\1 was/" > zconf.temp.h … … 405 469 fi 406 470 471 # if --solo compilation was requested, save that in zconf.h and remove gz stuff from object lists 407 472 if test $solo -eq 1; then 408 473 sed '/#define ZCONF_H/a\ … … 415 480 fi 416 481 482 # if code coverage testing was requested, use older gcc if defined, e.g. "gcc-4.2" on Mac OS X 417 483 if test $cover -eq 1; then 418 484 CFLAGS="${CFLAGS} -fprofile-arcs -ftest-coverage" 419 fi 420 421 echo >> configure.log 422 485 if test -n "$GCC_CLASSIC"; then 486 CC=$GCC_CLASSIC 487 fi 488 fi 489 490 echo >> configure.log 491 492 # conduct a series of tests to resolve eight possible cases of using "vs" or "s" printf functions 493 # (using stdarg or not), with or without "n" (proving size of buffer), and with or without a 494 # return value. The most secure result is vsnprintf() with a return value. snprintf() with a 495 # return value is secure as well, but then gzprintf() will be limited to 20 arguments. 423 496 cat > $test.c <<EOF 424 497 #include <stdio.h> … … 433 506 } 434 507 EOF 435 436 508 if try $CC -c $CFLAGS $test.c; then 437 509 echo "Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf()." | tee -a configure.log … … 607 679 fi 608 680 681 # see if we can hide zlib internal symbols that are linked between separate source files 609 682 if test "$gcc" -eq 1; then 610 683 echo >> configure.log 611 684 cat > $test.c <<EOF 612 #if ((__GNUC__-0) * 10 + __GNUC_MINOR__-0 >= 33) 613 # define ZLIB_INTERNAL __attribute__((visibility ("hidden"))) 614 #else 615 # define ZLIB_INTERNAL 616 #endif 685 #define ZLIB_INTERNAL __attribute__((visibility ("hidden"))) 617 686 int ZLIB_INTERNAL foo; 618 687 int main() … … 621 690 } 622 691 EOF 623 if try $CC -c $CFLAGS $test.c; then 692 if tryboth $CC -c $CFLAGS $test.c; then 693 CFLAGS="$CFLAGS -DHAVE_HIDDEN" 694 SFLAGS="$SFLAGS -DHAVE_HIDDEN" 624 695 echo "Checking for attribute(visibility) support... Yes." | tee -a configure.log 625 696 else 626 CFLAGS="$CFLAGS -DNO_VIZ"627 SFLAGS="$SFLAGS -DNO_VIZ"628 697 echo "Checking for attribute(visibility) support... No." | tee -a configure.log 629 698 fi 630 699 fi 631 700 701 echo >> configure.log 702 703 # find a four-byte unsiged integer type for crc calculations 704 cat > $test.c <<EOF 705 #include <stdio.h> 706 #define is32(n,t) for(n=1,k=0;n;n<<=1,k++);if(k==32){puts(t);return 0;} 707 int main() { 708 int k; 709 unsigned i; 710 unsigned long l; 711 unsigned short s; 712 is32(i, "unsigned") 713 is32(l, "unsigned long") 714 is32(s, "unsigned short") 715 return 1; 716 } 717 EOF 718 Z_U4="" 719 if try $CC $CFLAGS $test.c -o $test && Z_U4=`./$test` && test -n "$Z_U4"; then 720 sed < zconf.h "/#define Z_U4/s/\/\* \.\/configure may/#define Z_U4 $Z_U4 \/* .\/configure put the/" > zconf.temp.h 721 mv zconf.temp.h zconf.h 722 echo "Looking for a four-byte integer type... Found." | tee -a configure.log 723 else 724 echo "Looking for a four-byte integer type... Not found." | tee -a configure.log 725 fi 726 727 # clean up files produced by running the compiler and linker 632 728 rm -f $test.[co] $test $test$shared_ext $test.gcno 633 729 … … 655 751 echo TEST = $TEST >> configure.log 656 752 echo VER = $VER >> configure.log 753 echo Z_U4 = $Z_U4 >> configure.log 657 754 echo exec_prefix = $exec_prefix >> configure.log 658 755 echo includedir = $includedir >> configure.log … … 666 763 echo >> configure.log 667 764 668 # udpate Makefile 765 # udpate Makefile with the configure results 669 766 sed < Makefile.in " 670 767 /^CC *=/s#=.*#=$CC# … … 696 793 " > Makefile 697 794 795 # create zlib.pc with the configure results 698 796 sed < zlib.pc.in " 699 797 /^CC *=/s#=.*#=$CC# -
smplayer/vendor/current/zlib/contrib/delphi/ZLib.pas
r121 r133 153 153 154 154 const 155 zlib_version = '1.2. 6';155 zlib_version = '1.2.7'; 156 156 157 157 type -
smplayer/vendor/current/zlib/contrib/dotzlib/DotZLib/UnitTests.cs
r121 r133 157 157 { 158 158 Info info = new Info(); 159 Assert.AreEqual("1.2. 6", Info.Version);159 Assert.AreEqual("1.2.7", Info.Version); 160 160 Assert.AreEqual(32, info.SizeOfUInt); 161 161 Assert.AreEqual(32, info.SizeOfULong); -
smplayer/vendor/current/zlib/contrib/infback9/inftree9.c
r121 r133 10 10 11 11 const char inflate9_copyright[] = 12 " inflate9 1.2. 6Copyright 1995-2012 Mark Adler ";12 " inflate9 1.2.7 Copyright 1995-2012 Mark Adler "; 13 13 /* 14 14 If you use the zlib library in a product, an acknowledgment is welcome … … 65 65 128, 128, 128, 128, 128, 128, 128, 128, 129, 129, 129, 129, 66 66 130, 130, 130, 130, 131, 131, 131, 131, 132, 132, 132, 132, 67 133, 133, 133, 133, 144, 203, 69};67 133, 133, 133, 133, 144, 78, 68}; 68 68 static const unsigned short dbase[32] = { /* Distance codes 0..31 base */ 69 69 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, -
smplayer/vendor/current/zlib/contrib/minizip/Makefile.am
r121 r133 11 11 AM_LDFLAGS = -L$(zlib_top_builddir) 12 12 13 if WIN32 14 iowin32_src = iowin32.c 15 iowin32_h = iowin32.h 16 endif 17 13 18 libminizip_la_SOURCES = \ 14 19 ioapi.c \ 15 20 mztools.c \ 16 21 unzip.c \ 17 zip.c 22 zip.c \ 23 ${iowin32_src} 18 24 19 25 libminizip_la_LDFLAGS = $(AM_LDFLAGS) -version-info 1:0:0 -lz … … 25 31 mztools.h \ 26 32 unzip.h \ 27 zip.h 33 zip.h \ 34 ${iowin32_h} 28 35 29 36 pkgconfigdir = $(libdir)/pkgconfig -
smplayer/vendor/current/zlib/contrib/minizip/configure.ac
r121 r133 2 2 # Process this file with autoconf to produce a configure script. 3 3 4 AC_INIT([minizip], [1.2. 6], [bugzilla.redhat.com])4 AC_INIT([minizip], [1.2.7], [bugzilla.redhat.com]) 5 5 AC_CONFIG_SRCDIR([minizip.c]) 6 6 AM_INIT_AUTOMAKE([foreign]) … … 17 17 fi 18 18 19 case "${host}" in 20 *-mingw* | mingw*) 21 WIN32="yes" 22 ;; 23 *) 24 ;; 25 esac 26 AM_CONDITIONAL([WIN32], [test "${WIN32}" = "yes"]) 27 28 19 29 AC_SUBST([HAVE_UNISTD_H], [0]) 20 30 AC_CHECK_HEADER([unistd.h], [HAVE_UNISTD_H=1], []) -
smplayer/vendor/current/zlib/contrib/minizip/zip.c
r121 r133 1116 1116 if ((level==8) || (level==9)) 1117 1117 zi->ci.flag |= 2; 1118 if ( (level==2))1118 if (level==2) 1119 1119 zi->ci.flag |= 4; 1120 if ( (level==1))1120 if (level==1) 1121 1121 zi->ci.flag |= 6; 1122 1122 if (password != NULL) -
smplayer/vendor/current/zlib/contrib/pascal/zlibpas.pas
r121 r133 11 11 12 12 const 13 ZLIB_VERSION = '1.2. 6';14 ZLIB_VERNUM = $12 60;13 ZLIB_VERSION = '1.2.7'; 14 ZLIB_VERNUM = $1270; 15 15 16 16 type -
smplayer/vendor/current/zlib/contrib/vstudio/readme.txt
r121 r133 1 Building instructions for the DLL versions of Zlib 1.2. 41 Building instructions for the DLL versions of Zlib 1.2.7 2 2 ======================================================== 3 3 4 4 This directory contains projects that build zlib and minizip using 5 Microsoft Visual C++ 9.0/10.0 , and Visual C++.5 Microsoft Visual C++ 9.0/10.0. 6 6 7 7 You don't need to build these projects yourself. You can download the … … 11 11 More information can be found at this site. 12 12 13 first compile assembly code by running14 bld_ml64.bat in contrib\masmx6415 bld_ml32.bat in contrib\masmx8616 13 17 14 … … 21 18 -------------------------------------------------------------- 22 19 - Uncompress current zlib, including all contrib/* files 23 - Open contrib\vstudio\vc9\zlibvc.sln with Microsoft Visual C++ 2008.0 20 - Compile assembly code (with Visual Studio Command Prompt) by running: 21 bld_ml64.bat (in contrib\masmx64) 22 bld_ml32.bat (in contrib\masmx86) 23 - Open contrib\vstudio\vc9\zlibvc.sln with Microsoft Visual C++ 2008 24 24 - Or run: vcbuild /rebuild contrib\vstudio\vc9\zlibvc.sln "Release|Win32" 25 25 … … 27 27 -------------------------------------------------------------- 28 28 - Uncompress current zlib, including all contrib/* files 29 - Open contrib\vstudio\vc10\zlibvc.sln with Microsoft Visual C++ 2010 .029 - Open contrib\vstudio\vc10\zlibvc.sln with Microsoft Visual C++ 2010 30 30 31 31 -
smplayer/vendor/current/zlib/contrib/vstudio/vc10/testzlibdll.vcxproj
r121 r133 140 140 <Link> 141 141 <AdditionalDependencies>x86\ZlibDllDebug\zlibwapi.lib;%(AdditionalDependencies)</AdditionalDependencies> 142 <OutputFile>$(OutDir)testzlib .exe</OutputFile>142 <OutputFile>$(OutDir)testzlibdll.exe</OutputFile> 143 143 <GenerateDebugInformation>true</GenerateDebugInformation> 144 144 <ProgramDatabaseFile>$(OutDir)testzlib.pdb</ProgramDatabaseFile> … … 170 170 <Link> 171 171 <AdditionalDependencies>x86\ZlibDllRelease\zlibwapi.lib;%(AdditionalDependencies)</AdditionalDependencies> 172 <OutputFile>$(OutDir)testzlib .exe</OutputFile>172 <OutputFile>$(OutDir)testzlibdll.exe</OutputFile> 173 173 <GenerateDebugInformation>true</GenerateDebugInformation> 174 174 <SubSystem>Console</SubSystem> … … 201 201 <Link> 202 202 <AdditionalDependencies>x64\ZlibDllDebug\zlibwapi.lib;%(AdditionalDependencies)</AdditionalDependencies> 203 <OutputFile>$(OutDir)testzlib .exe</OutputFile>203 <OutputFile>$(OutDir)testzlibdll.exe</OutputFile> 204 204 <GenerateDebugInformation>true</GenerateDebugInformation> 205 205 <ProgramDatabaseFile>$(OutDir)testzlib.pdb</ProgramDatabaseFile> … … 228 228 <Link> 229 229 <AdditionalDependencies>ia64\ZlibDllDebug\zlibwapi.lib;%(AdditionalDependencies)</AdditionalDependencies> 230 <OutputFile>$(OutDir)testzlib .exe</OutputFile>230 <OutputFile>$(OutDir)testzlibdll.exe</OutputFile> 231 231 <GenerateDebugInformation>true</GenerateDebugInformation> 232 232 <ProgramDatabaseFile>$(OutDir)testzlib.pdb</ProgramDatabaseFile> … … 258 258 <Link> 259 259 <AdditionalDependencies>x64\ZlibDllRelease\zlibwapi.lib;%(AdditionalDependencies)</AdditionalDependencies> 260 <OutputFile>$(OutDir)testzlib .exe</OutputFile>260 <OutputFile>$(OutDir)testzlibdll.exe</OutputFile> 261 261 <GenerateDebugInformation>true</GenerateDebugInformation> 262 262 <SubSystem>Console</SubSystem> … … 289 289 <Link> 290 290 <AdditionalDependencies>ia64\ZlibDllRelease\zlibwapi.lib;%(AdditionalDependencies)</AdditionalDependencies> 291 <OutputFile>$(OutDir)testzlib .exe</OutputFile>291 <OutputFile>$(OutDir)testzlibdll.exe</OutputFile> 292 292 <GenerateDebugInformation>true</GenerateDebugInformation> 293 293 <SubSystem>Console</SubSystem> -
smplayer/vendor/current/zlib/contrib/vstudio/vc10/zlib.rc
r121 r133 3 3 #define IDR_VERSION1 1 4 4 IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 5 FILEVERSION 1.2. 6,16 PRODUCTVERSION 1.2. 6,15 FILEVERSION 1.2.7,0 6 PRODUCTVERSION 1.2.7,0 7 7 FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 8 8 FILEFLAGS 0 … … 18 18 BEGIN 19 19 VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0" 20 VALUE "FileVersion", "1.2. 6\0"20 VALUE "FileVersion", "1.2.7\0" 21 21 VALUE "InternalName", "zlib\0" 22 22 VALUE "OriginalFilename", "zlib.dll\0" -
smplayer/vendor/current/zlib/contrib/vstudio/vc10/zlibvc.def
r121 r133 2 2 ; zlib data compression and ZIP file I/O library 3 3 4 VERSION 1.2 44 VERSION 1.2.7 5 5 6 6 EXPORTS … … 133 133 ; zlib1 v1.2.6 added: 134 134 gzgetc_ @161 135 gzflags @162136 135 inflateResetKeep @163 137 deflateResetKeep @164 136 deflateResetKeep @164 137 138 ; zlib1 v1.2.7 added: 139 gzopen_w @165 -
smplayer/vendor/current/zlib/contrib/vstudio/vc10/zlibvc.vcxproj
r121 r133 181 181 <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|x64'" /> 182 182 <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|x64'" /> 183 <TargetName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">zlibwapi</TargetName> 184 <TargetName Condition="'$(Configuration)|$(Platform)'=='ReleaseWithoutAsm|Win32'">zlibwapi</TargetName> 185 <TargetName Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">zlibwapi</TargetName> 186 <TargetName Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">zlibwapi</TargetName> 187 <TargetName Condition="'$(Configuration)|$(Platform)'=='ReleaseWithoutAsm|x64'">zlibwapi</TargetName> 188 <TargetName Condition="'$(Configuration)|$(Platform)'=='Release|x64'">zlibwapi</TargetName> 183 189 </PropertyGroup> 184 190 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> … … 228 234 <ImportLibrary>$(OutDir)zlibwapi.lib</ImportLibrary> 229 235 </Link> 236 <PreBuildEvent> 237 <Command>cd ..\..\masmx86 238 bld_ml32.bat</Command> 239 </PreBuildEvent> 230 240 </ItemDefinitionGroup> 231 241 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseWithoutAsm|Win32'"> … … 325 335 <ImportLibrary>$(OutDir)zlibwapi.lib</ImportLibrary> 326 336 </Link> 337 <PreBuildEvent> 338 <Command>cd ..\..\masmx86 339 bld_ml32.bat</Command> 340 </PreBuildEvent> 327 341 </ItemDefinitionGroup> 328 342 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> … … 369 383 <TargetMachine>MachineX64</TargetMachine> 370 384 </Link> 385 <PreBuildEvent> 386 <Command>cd ..\..\contrib\masmx64 387 bld_ml64.bat</Command> 388 </PreBuildEvent> 371 389 </ItemDefinitionGroup> 372 390 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Itanium'"> … … 548 566 <TargetMachine>MachineX64</TargetMachine> 549 567 </Link> 568 <PreBuildEvent> 569 <Command>cd ..\..\masmx64 570 bld_ml64.bat</Command> 571 </PreBuildEvent> 550 572 </ItemDefinitionGroup> 551 573 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Itanium'"> -
smplayer/vendor/current/zlib/contrib/vstudio/vc9/zlib.rc
r121 r133 3 3 #define IDR_VERSION1 1 4 4 IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 5 FILEVERSION 1.2. 6,16 PRODUCTVERSION 1.2. 6,15 FILEVERSION 1.2.7,0 6 PRODUCTVERSION 1.2.7,0 7 7 FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 8 8 FILEFLAGS 0 … … 18 18 BEGIN 19 19 VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0" 20 VALUE "FileVersion", "1.2. 6\0"20 VALUE "FileVersion", "1.2.7\0" 21 21 VALUE "InternalName", "zlib\0" 22 22 VALUE "OriginalFilename", "zlib.dll\0" -
smplayer/vendor/current/zlib/contrib/vstudio/vc9/zlibvc.def
r121 r133 2 2 ; zlib data compression and ZIP file I/O library 3 3 4 VERSION 1.2 44 VERSION 1.2.7 5 5 6 6 EXPORTS … … 133 133 ; zlib1 v1.2.6 added: 134 134 gzgetc_ @161 135 gzflags @162136 135 inflateResetKeep @163 137 deflateResetKeep @164 136 deflateResetKeep @164 137 138 ; zlib1 v1.2.7 added: 139 gzopen_w @165 -
smplayer/vendor/current/zlib/crc32.c
r121 r133 1 1 /* crc32.c -- compute the CRC-32 of a data stream 2 * Copyright (C) 1995-2006, 2010, 2011 Mark Adler2 * Copyright (C) 1995-2006, 2010, 2011, 2012 Mark Adler 3 3 * For conditions of distribution and use, see copyright notice in zlib.h 4 4 * … … 33 33 #define local static 34 34 35 /* Find a four-byte integer type for crc32_little() and crc32_big(). */36 #ifndef NOBYFOUR37 # ifdef STDC /* need ANSI C limits.h to determine sizes */38 # include <limits.h>39 # define BYFOUR40 # if (UINT_MAX == 0xffffffffUL)41 typedef unsigned int u4;42 # else43 # if (ULONG_MAX == 0xffffffffUL)44 typedef unsigned long u4;45 # else46 # if (USHRT_MAX == 0xffffffffUL)47 typedef unsigned short u4;48 # else49 # undef BYFOUR /* can't find a four-byte integer type! */50 # endif51 # endif52 # endif53 # endif /* STDC */54 #endif /* !NOBYFOUR */55 56 35 /* Definitions for doing the crc four data bytes at a time. */ 36 #if !defined(NOBYFOUR) && defined(Z_U4) 37 # define BYFOUR 38 #endif 57 39 #ifdef BYFOUR 58 typedef u4 crc_table_t;59 # define REV(w) ((((w)>>24)&0xff)+(((w)>>8)&0xff00)+ \60 (((w)&0xff00)<<8)+(((w)&0xff)<<24))61 40 local unsigned long crc32_little OF((unsigned long, 62 41 const unsigned char FAR *, unsigned)); … … 65 44 # define TBLS 8 66 45 #else 67 typedef unsigned long crc_table_t;68 46 # define TBLS 1 69 47 #endif /* BYFOUR */ … … 79 57 80 58 local volatile int crc_table_empty = 1; 81 local crc_table_t FAR crc_table[TBLS][256];59 local z_crc_t FAR crc_table[TBLS][256]; 82 60 local void make_crc_table OF((void)); 83 61 #ifdef MAKECRCH 84 local void write_table OF((FILE *, const crc_table_t FAR *));62 local void write_table OF((FILE *, const z_crc_t FAR *)); 85 63 #endif /* MAKECRCH */ 86 64 /* … … 112 90 local void make_crc_table() 113 91 { 114 crc_table_t c;92 z_crc_t c; 115 93 int n, k; 116 crc_table_t poly;/* polynomial exclusive-or pattern */94 z_crc_t poly; /* polynomial exclusive-or pattern */ 117 95 /* terms of polynomial defining this crc (except x^32): */ 118 96 static volatile int first = 1; /* flag to limit concurrent making */ … … 128 106 poly = 0; 129 107 for (n = 0; n < (int)(sizeof(p)/sizeof(unsigned char)); n++) 130 poly |= ( crc_table_t)1 << (31 - p[n]);108 poly |= (z_crc_t)1 << (31 - p[n]); 131 109 132 110 /* generate a crc for every 8-bit value */ 133 111 for (n = 0; n < 256; n++) { 134 c = ( crc_table_t)n;112 c = (z_crc_t)n; 135 113 for (k = 0; k < 8; k++) 136 114 c = c & 1 ? poly ^ (c >> 1) : c >> 1; … … 143 121 for (n = 0; n < 256; n++) { 144 122 c = crc_table[0][n]; 145 crc_table[4][n] = REV(c);123 crc_table[4][n] = ZSWAP32(c); 146 124 for (k = 1; k < 4; k++) { 147 125 c = crc_table[0][c & 0xff] ^ (c >> 8); 148 126 crc_table[k][n] = c; 149 crc_table[k + 4][n] = REV(c);127 crc_table[k + 4][n] = ZSWAP32(c); 150 128 } 151 129 } … … 169 147 fprintf(out, "/* crc32.h -- tables for rapid CRC calculation\n"); 170 148 fprintf(out, " * Generated automatically by crc32.c\n */\n\n"); 171 fprintf(out, "local const crc_table_t FAR ");149 fprintf(out, "local const z_crc_t FAR "); 172 150 fprintf(out, "crc_table[TBLS][256] =\n{\n {\n"); 173 151 write_table(out, crc_table[0]); … … 189 167 local void write_table(out, table) 190 168 FILE *out; 191 const crc_table_t FAR *table;169 const z_crc_t FAR *table; 192 170 { 193 171 int n; … … 210 188 * This function can be used by asm versions of crc32() 211 189 */ 212 const unsigned longFAR * ZEXPORT get_crc_table()190 const z_crc_t FAR * ZEXPORT get_crc_table() 213 191 { 214 192 #ifdef DYNAMIC_CRC_TABLE … … 216 194 make_crc_table(); 217 195 #endif /* DYNAMIC_CRC_TABLE */ 218 return (const unsigned longFAR *)crc_table;196 return (const z_crc_t FAR *)crc_table; 219 197 } 220 198 … … 238 216 #ifdef BYFOUR 239 217 if (sizeof(void *) == sizeof(ptrdiff_t)) { 240 u4endian;218 z_crc_t endian; 241 219 242 220 endian = 1; … … 272 250 unsigned len; 273 251 { 274 register u4c;275 register const u4FAR *buf4;276 277 c = ( u4)crc;252 register z_crc_t c; 253 register const z_crc_t FAR *buf4; 254 255 c = (z_crc_t)crc; 278 256 c = ~c; 279 257 while (len && ((ptrdiff_t)buf & 3)) { … … 282 260 } 283 261 284 buf4 = (const u4FAR *)(const void FAR *)buf;262 buf4 = (const z_crc_t FAR *)(const void FAR *)buf; 285 263 while (len >= 32) { 286 264 DOLIT32; … … 312 290 unsigned len; 313 291 { 314 register u4c;315 register const u4FAR *buf4;316 317 c = REV((u4)crc);292 register z_crc_t c; 293 register const z_crc_t FAR *buf4; 294 295 c = ZSWAP32((z_crc_t)crc); 318 296 c = ~c; 319 297 while (len && ((ptrdiff_t)buf & 3)) { … … 322 300 } 323 301 324 buf4 = (const u4FAR *)(const void FAR *)buf;302 buf4 = (const z_crc_t FAR *)(const void FAR *)buf; 325 303 buf4--; 326 304 while (len >= 32) { … … 339 317 } while (--len); 340 318 c = ~c; 341 return (unsigned long)( REV(c));319 return (unsigned long)(ZSWAP32(c)); 342 320 } 343 321 -
smplayer/vendor/current/zlib/crc32.h
r121 r133 3 3 */ 4 4 5 local const crc_table_t FAR crc_table[TBLS][256] =5 local const z_crc_t FAR crc_table[TBLS][256] = 6 6 { 7 7 { -
smplayer/vendor/current/zlib/deflate.c
r121 r133 53 53 54 54 const char deflate_copyright[] = 55 " deflate 1.2. 6Copyright 1995-2012 Jean-loup Gailly and Mark Adler ";55 " deflate 1.2.7 Copyright 1995-2012 Jean-loup Gailly and Mark Adler "; 56 56 /* 57 57 If you use the zlib library in a product, an acknowledgment is welcome -
smplayer/vendor/current/zlib/gzguts.h
r121 r133 13 13 #endif 14 14 15 #if ((__GNUC__-0) * 10 + __GNUC_MINOR__-0 >= 33) && !defined(NO_VIZ)15 #ifdef HAVE_HIDDEN 16 16 # define ZLIB_INTERNAL __attribute__((visibility ("hidden"))) 17 17 #else … … 28 28 #include <fcntl.h> 29 29 30 #ifdef __TURBOC__ 30 #ifdef _WIN32 31 # include <stddef.h> 32 #endif 33 34 #if defined(__TURBOC__) || defined(_MSC_VER) || defined(_WIN32) 31 35 # include <io.h> 32 36 #endif … … 67 71 # if !defined(vsnprintf) && !defined(NO_vsnprintf) 68 72 # if !defined(_MSC_VER) || ( defined(_MSC_VER) && _MSC_VER < 1500 ) 69 # include <io.h>70 73 # define vsnprintf _vsnprintf 71 74 # endif … … 102 105 # define zstrerror() gz_strwinerror((DWORD)GetLastError()) 103 106 #else 104 # if def STDC107 # ifndef NO_STRERROR 105 108 # include <errno.h> 106 109 # define zstrerror() strerror(errno) -
smplayer/vendor/current/zlib/gzlib.c
r121 r133 1 1 /* gzlib.c -- zlib functions common to reading and writing gzip files 2 * Copyright (C) 2004, 2010, 2011 Mark Adler2 * Copyright (C) 2004, 2010, 2011, 2012 Mark Adler 3 3 * For conditions of distribution and use, see copyright notice in zlib.h 4 4 */ … … 18 18 /* Local functions */ 19 19 local void gz_reset OF((gz_statep)); 20 local gzFile gz_open OF((const char*, int, const char *));20 local gzFile gz_open OF((const void *, int, const char *)); 21 21 22 22 #if defined UNDER_CE … … 90 90 /* Open a gzip file either by name or file descriptor. */ 91 91 local gzFile gz_open(path, fd, mode) 92 const char*path;92 const void *path; 93 93 int fd; 94 94 const char *mode; 95 95 { 96 96 gz_statep state; 97 size_t len; 98 int oflag; 99 #ifdef O_CLOEXEC 100 int cloexec = 0; 101 #endif 102 #ifdef O_EXCL 103 int exclusive = 0; 104 #endif 97 105 98 106 /* check input */ … … 134 142 case 'b': /* ignore -- will request binary anyway */ 135 143 break; 144 #ifdef O_CLOEXEC 145 case 'e': 146 cloexec = 1; 147 break; 148 #endif 149 #ifdef O_EXCL 150 case 'x': 151 exclusive = 1; 152 break; 153 #endif 136 154 case 'f': 137 155 state->strategy = Z_FILTERED; … … 169 187 170 188 /* save the path name for error messages */ 171 state->path = malloc(strlen(path) + 1); 189 #ifdef _WIN32 190 if (fd == -2) { 191 len = wcstombs(NULL, path, 0); 192 if (len == (size_t)-1) 193 len = 0; 194 } 195 else 196 #endif 197 len = strlen(path); 198 state->path = malloc(len + 1); 172 199 if (state->path == NULL) { 173 200 free(state); 174 201 return NULL; 175 202 } 176 strcpy(state->path, path); 177 178 /* open the file with the appropriate mode (or just use fd) */ 179 state->fd = fd != -1 ? fd : 180 open(path, 203 #ifdef _WIN32 204 if (fd == -2) 205 if (len) 206 wcstombs(state->path, path, len + 1); 207 else 208 *(state->path) = 0; 209 else 210 #endif 211 strcpy(state->path, path); 212 213 /* compute the flags for open() */ 214 oflag = 181 215 #ifdef O_LARGEFILE 182 216 O_LARGEFILE | 183 217 #endif 184 218 #ifdef O_BINARY 185 O_BINARY | 186 #endif 187 (state->mode == GZ_READ ? 188 O_RDONLY : 189 (O_WRONLY | O_CREAT | ( 190 state->mode == GZ_WRITE ? 191 O_TRUNC : 192 O_APPEND))), 193 0666); 219 O_BINARY | 220 #endif 221 #ifdef O_CLOEXEC 222 (cloexec ? O_CLOEXEC : 0) | 223 #endif 224 (state->mode == GZ_READ ? 225 O_RDONLY : 226 (O_WRONLY | O_CREAT | 227 #ifdef O_EXCL 228 (exclusive ? O_EXCL : 0) | 229 #endif 230 (state->mode == GZ_WRITE ? 231 O_TRUNC : 232 O_APPEND))); 233 234 /* open the file with the appropriate flags (or just use fd) */ 235 state->fd = fd > -1 ? fd : ( 236 #ifdef _WIN32 237 fd == -2 ? _wopen(path, oflag, 0666) : 238 #endif 239 open(path, oflag, 0666)); 194 240 if (state->fd == -1) { 195 241 free(state->path); … … 244 290 return gz; 245 291 } 292 293 /* -- see zlib.h -- */ 294 #ifdef _WIN32 295 gzFile ZEXPORT gzopen_w(path, mode) 296 const wchar_t *path; 297 const char *mode; 298 { 299 return gz_open(path, -2, mode); 300 } 301 #endif 246 302 247 303 /* -- see zlib.h -- */ -
smplayer/vendor/current/zlib/gzread.c
r121 r133 1 1 /* gzread.c -- zlib functions for reading gzip files 2 * Copyright (C) 2004, 2005, 2010, 2011 Mark Adler2 * Copyright (C) 2004, 2005, 2010, 2011, 2012 Mark Adler 3 3 * For conditions of distribution and use, see copyright notice in zlib.h 4 4 */ … … 58 58 return -1; 59 59 if (state->eof == 0) { 60 if (strm->avail_in) 61 memmove(state->in, strm->next_in, strm->avail_in); 60 if (strm->avail_in) { /* copy what's there to the start */ 61 unsigned char *p = state->in, *q = strm->next_in; 62 unsigned n = strm->avail_in; 63 do { 64 *p++ = *q++; 65 } while (--n); 66 } 62 67 if (gz_load(state, state->in + strm->avail_in, 63 68 state->size - strm->avail_in, &got) == -1) … … 341 346 if (gz_fetch(state) == -1) 342 347 return -1; 343 continue; /* no progress yet -- go back to memcpy()above */348 continue; /* no progress yet -- go back to copy above */ 344 349 /* the copy above assures that we will leave with space in the 345 350 output buffer, allowing at least one gzungetc() to succeed */ … … 374 379 375 380 /* -- see zlib.h -- */ 376 int ZEXPORT gzgetc_(file) 381 #undef gzgetc 382 int ZEXPORT gzgetc(file) 377 383 gzFile file; 378 384 { … … 403 409 } 404 410 405 #undef gzgetc 406 int ZEXPORT gzgetc(file) 411 int ZEXPORT gzgetc_(file) 407 412 gzFile file; 408 413 { 409 return gzgetc _(file);410 } 414 return gzgetc(file); 415 } 411 416 412 417 /* -- see zlib.h -- */ -
smplayer/vendor/current/zlib/gzwrite.c
r121 r133 339 339 #ifdef NO_vsnprintf 340 340 # ifdef HAS_vsprintf_void 341 (void)vsprintf( state->in, format, va);341 (void)vsprintf((char *)(state->in), format, va); 342 342 va_end(va); 343 343 for (len = 0; len < size; len++) 344 344 if (state->in[len] == 0) break; 345 345 # else 346 len = vsprintf( state->in, format, va);346 len = vsprintf((char *)(state->in), format, va); 347 347 va_end(va); 348 348 # endif 349 349 #else 350 350 # ifdef HAS_vsnprintf_void 351 (void)vsnprintf( state->in, size, format, va);351 (void)vsnprintf((char *)(state->in), size, format, va); 352 352 va_end(va); 353 len = strlen( state->in);353 len = strlen((char *)(state->in)); 354 354 # else 355 355 len = vsnprintf((char *)(state->in), size, format, va); … … 417 417 #ifdef NO_snprintf 418 418 # ifdef HAS_sprintf_void 419 sprintf( state->in, format, a1, a2, a3, a4, a5, a6, a7, a8,419 sprintf((char *)(state->in), format, a1, a2, a3, a4, a5, a6, a7, a8, 420 420 a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20); 421 421 for (len = 0; len < size; len++) 422 422 if (state->in[len] == 0) break; 423 423 # else 424 len = sprintf( state->in, format, a1, a2, a3, a4, a5, a6, a7, a8,425 a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20);424 len = sprintf((char *)(state->in), format, a1, a2, a3, a4, a5, a6, a7, a8, 425 a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20); 426 426 # endif 427 427 #else 428 428 # ifdef HAS_snprintf_void 429 snprintf( state->in, size, format, a1, a2, a3, a4, a5, a6, a7, a8,429 snprintf((char *)(state->in), size, format, a1, a2, a3, a4, a5, a6, a7, a8, 430 430 a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20); 431 len = strlen( state->in);431 len = strlen((char *)(state->in)); 432 432 # else 433 len = snprintf(state->in, size, format, a1, a2, a3, a4, a5, a6, a7, a8, 434 a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20); 433 len = snprintf((char *)(state->in), size, format, a1, a2, a3, a4, a5, a6, 434 a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, 435 a19, a20); 435 436 # endif 436 437 #endif … … 547 548 548 549 /* flush, free memory, and close file */ 549 if (gz_comp(state, Z_FINISH) == -1) 550 ret = state->err; 551 if (!state->direct) { 552 (void)deflateEnd(&(state->strm)); 553 free(state->out); 554 } 555 free(state->in); 550 if (state->size) { 551 if (gz_comp(state, Z_FINISH) == -1) 552 ret = state->err; 553 if (!state->direct) { 554 (void)deflateEnd(&(state->strm)); 555 free(state->out); 556 } 557 free(state->in); 558 } 556 559 gz_error(state, Z_OK, NULL); 557 560 free(state->path); … … 561 564 return ret; 562 565 } 563 564 /* used by zlibVersion() to get the vsnprintf story from the horse's mouth */565 unsigned long ZEXPORT gzflags()566 {567 unsigned long flags = 0;568 #if defined(STDC) || defined(Z_HAVE_STDARG_H)569 # ifdef NO_vsnprintf570 flags += 1L << 25;571 # ifdef HAS_vsprintf_void572 flags += 1L << 26;573 # endif574 # else575 # ifdef HAS_vsnprintf_void576 flags += 1L << 26;577 # endif578 # endif579 #else580 flags += 1L << 24;581 # ifdef NO_snprintf582 flags += 1L << 25;583 # ifdef HAS_sprintf_void584 flags += 1L << 26;585 # endif586 # else587 # ifdef HAS_snprintf_void588 flags += 1L << 26;589 # endif590 # endif591 #endif592 return flags;593 } -
smplayer/vendor/current/zlib/inflate.c
r121 r133 1 1 /* inflate.c -- zlib decompression 2 * Copyright (C) 1995-201 1Mark Adler2 * Copyright (C) 1995-2012 Mark Adler 3 3 * For conditions of distribution and use, see copyright notice in zlib.h 4 4 */ … … 520 520 } while (0) 521 521 522 /* Reverse the bytes in a 32-bit value */523 #define REVERSE(q) \524 ((((q) >> 24) & 0xff) + (((q) >> 8) & 0xff00) + \525 (((q) & 0xff00) << 8) + (((q) & 0xff) << 24))526 527 522 /* 528 523 inflate() uses a state machine to process as much input data and generate as … … 818 813 case DICTID: 819 814 NEEDBITS(32); 820 strm->adler = state->check = REVERSE(hold);815 strm->adler = state->check = ZSWAP32(hold); 821 816 INITBITS(); 822 817 state->mode = DICT; … … 1190 1185 state->flags ? hold : 1191 1186 #endif 1192 REVERSE(hold)) != state->check) {1187 ZSWAP32(hold)) != state->check) { 1193 1188 strm->msg = (char *)"incorrect data check"; 1194 1189 state->mode = BAD; … … 1276 1271 { 1277 1272 struct inflate_state FAR *state; 1278 unsigned long id;1273 unsigned long dictid; 1279 1274 unsigned char *next; 1280 1275 unsigned avail; … … 1287 1282 return Z_STREAM_ERROR; 1288 1283 1289 /* check for correct dictionary id */1284 /* check for correct dictionary identifier */ 1290 1285 if (state->mode == DICT) { 1291 id = adler32(0L, Z_NULL, 0);1292 id = adler32(id, dictionary, dictLength);1293 if ( id != state->check)1286 dictid = adler32(0L, Z_NULL, 0); 1287 dictid = adler32(dictid, dictionary, dictLength); 1288 if (dictid != state->check) 1294 1289 return Z_DATA_ERROR; 1295 1290 } -
smplayer/vendor/current/zlib/inftrees.c
r121 r133 10 10 11 11 const char inflate_copyright[] = 12 " inflate 1.2. 6Copyright 1995-2012 Mark Adler ";12 " inflate 1.2.7 Copyright 1995-2012 Mark Adler "; 13 13 /* 14 14 If you use the zlib library in a product, an acknowledgment is welcome … … 63 63 static const unsigned short lext[31] = { /* Length codes 257..285 extra */ 64 64 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 65 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 203, 69};65 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 78, 68}; 66 66 static const unsigned short dbase[32] = { /* Distance codes 0..29 base */ 67 67 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, -
smplayer/vendor/current/zlib/make_vms.com
r121 r133 4 4 $! In case of problems with the install you might contact me at 5 5 $! zinser@zinser.no-ip.info(preferred) or 6 $! zinser@sysdev.deutsche-boerse.com (work)6 $! martin.zinser@eurexchange.com (work) 7 7 $! 8 8 $! Make procedure history for Zlib … … 15 15 $! 0.04 20100110 Add new gzclose, gzlib, gzread, gzwrite 16 16 $! 0.05 20100221 Exchange zlibdefs.h by zconf.h.in 17 $! 0.06 20120111 Fix missing amiss_err, update zconf_h.in, fix new exmples 18 $! subdir path, update module search in makefile.in 19 $! 0.07 20120115 Triggered by work done by Alexey Chupahin completly redesigned 20 $! shared image creation 21 $! 0.08 20120219 Make it work on VAX again, pre-load missing symbols to shared 22 $! image 23 $! 0.09 20120305 SMS. P1 sets builder ("MMK", "MMS", " " (built-in)). 24 $! "" -> automatic, preference: MMK, MMS, built-in. 17 25 $! 18 26 $ on error then goto err_exit 19 $ set proc/parse=ext20 27 $! 21 28 $ true = 1 … … 33 40 $! Setup variables holding "config" information 34 41 $! 35 $ Make = " "42 $ Make = "''p1'" 36 43 $ name = "Zlib" 37 44 $ version = "?.?.?" 38 45 $ v_string = "ZLIB_VERSION" 39 46 $ v_file = "zlib.h" 40 $ ccopt = " "47 $ ccopt = "/include = []" 41 48 $ lopts = "" 42 49 $ dnsrl = "" 43 $ aconf_in_file = "zconf.h.in#zconf.h_in "50 $ aconf_in_file = "zconf.h.in#zconf.h_in#zconf_h.in" 44 51 $ conf_check_string = "" 45 52 $ linkonly = false 46 53 $ optfile = name + ".opt" 54 $ mapfile = name + ".map" 47 55 $ libdefs = "" 56 $ vax = f$getsyi("HW_MODEL").lt.1024 48 57 $ axp = f$getsyi("HW_MODEL").ge.1024 .and. f$getsyi("HW_MODEL").lt.4096 49 $! 50 $ whoami = f$parse(f$enviornment("Procedure"),,,,"NO_CONCEAL") 58 $ ia64 = f$getsyi("HW_MODEL").ge.4096 59 $! 60 $! 2012-03-05 SMS. 61 $! Why is this needed? And if it is needed, why not simply ".not. vax"? 62 $! 63 $!!! if axp .or. ia64 then set proc/parse=extended 64 $! 65 $ whoami = f$parse(f$environment("Procedure"),,,,"NO_CONCEAL") 51 66 $ mydef = F$parse(whoami,,,"DEVICE") 52 67 $ mydir = f$parse(whoami,,,"DIRECTORY") - "][" … … 55 70 $! Check for MMK/MMS 56 71 $! 57 $ If F$Search ("Sys$System:MMS.EXE") .nes. "" Then Make = "MMS" 58 $ If F$Type (MMK) .eqs. "STRING" Then Make = "MMK" 59 $! 72 $ if (Make .eqs. "") 73 $ then 74 $ If F$Search ("Sys$System:MMS.EXE") .nes. "" Then Make = "MMS" 75 $ If F$Type (MMK) .eqs. "STRING" Then Make = "MMK" 76 $ else 77 $ Make = f$edit( Make, "trim") 78 $ endif 60 79 $! 61 80 $ gosub find_version … … 70 89 $ gosub check_compiler 71 90 $ close topt 91 $ close optf 72 92 $! 73 93 $ if its_decc … … 83 103 $ define sys decc$library_include: 84 104 $ endif 105 $ endif 106 $! 107 $! 2012-03-05 SMS. 108 $! Why /NAMES = AS_IS? Why not simply ".not. vax"? And why not on VAX? 109 $! 110 $ if axp .or. ia64 111 $ then 112 $ ccopt = ccopt + "/name=as_is/opt=(inline=speed)" 113 $ s_case = true 85 114 $ endif 86 115 $ endif … … 123 152 $ goto aconf_loop 124 153 $ACONF_EXIT: 154 $ write aconf "" 155 $ write aconf "/* VMS specifics added by make_vms.com: */" 125 156 $ write aconf "#define VMS 1" 126 157 $ write aconf "#include <unistd.h>" 127 158 $ write aconf "#include <unixio.h>" 128 159 $ write aconf "#ifdef _LARGEFILE" 129 $ write aconf "#define off64_t __off64_t" 130 $ write aconf "#define fopen64 fopen" 131 $ write aconf "#define fseeko64 fseeko" 132 $ write aconf "#define lseek64 lseek" 133 $ write aconf "#define ftello64 ftell" 160 $ write aconf "# define off64_t __off64_t" 161 $ write aconf "# define fopen64 fopen" 162 $ write aconf "# define fseeko64 fseeko" 163 $ write aconf "# define lseek64 lseek" 164 $ write aconf "# define ftello64 ftell" 165 $ write aconf "#endif" 166 $ write aconf "#if !defined( __VAX) && (__CRTL_VER >= 70312000)" 167 $ write aconf "# define HAVE_VSNPRINTF" 134 168 $ write aconf "#endif" 135 169 $ close aconf_in … … 140 174 $ write sys$output "Compiling Zlib sources ..." 141 175 $ if make.eqs."" 142 $ then 143 $ dele example.obj;*,minigzip.obj;* 176 $ then 177 $ if (f$search( "example.obj;*") .nes. "") then delete example.obj;* 178 $ if (f$search( "minigzip.obj;*") .nes. "") then delete minigzip.obj;* 144 179 $ CALL MAKE adler32.OBJ "CC ''CCOPT' adler32" - 145 180 adler32.c zlib.h zconf.h … … 175 210 $ CALL MAKE libz.OLB "lib/crea libz.olb *.obj" *.OBJ 176 211 $ write sys$output "Building example..." 177 $ CALL MAKE example.OBJ "CC ''CCOPT' example" -178 test/example.c zlib.h zconf.h212 $ CALL MAKE example.OBJ "CC ''CCOPT' [.test]example" - 213 [.test]example.c zlib.h zconf.h 179 214 $ call make example.exe "LINK example,libz.olb/lib" example.obj libz.olb 180 $ if f$search("x11vms:xvmsutils.olb") .nes. "" 181 $ then 182 $ write sys$output "Building minigzip..." 183 $ CALL MAKE minigzip.OBJ "CC ''CCOPT' minigzip" - 184 test/minigzip.c zlib.h zconf.h 185 $ call make minigzip.exe - 186 "LINK minigzip,libz.olb/lib,x11vms:xvmsutils.olb/lib" - 187 minigzip.obj libz.olb 188 $ endif 189 $ else 215 $ write sys$output "Building minigzip..." 216 $ CALL MAKE minigzip.OBJ "CC ''CCOPT' [.test]minigzip" - 217 [.test]minigzip.c zlib.h zconf.h 218 $ call make minigzip.exe - 219 "LINK minigzip,libz.olb/lib" - 220 minigzip.obj libz.olb 221 $ else 190 222 $ gosub crea_mms 191 223 $ write sys$output "Make ''name' ''version' with ''Make' " 192 224 $ 'make' 193 $ endif 194 $! 195 $! Alpha gets a shareable image 196 $! 197 $ If axp 198 $ Then 199 $ gosub crea_olist 200 $ write sys$output "Creating libzshr.exe" 201 $ call anal_obj_axp modules.opt _link.opt 202 $ if s_case 203 $ then 204 $ open/append optf modules.opt 205 $ write optf "case_sensitive=YES" 206 $ close optf 207 $ endif 208 $ LINK_'lopts'/SHARE=libzshr.exe modules.opt/opt,_link.opt/opt 209 $ endif 225 $ endif 226 $! 227 $! Create shareable image 228 $! 229 $ gosub crea_olist 230 $ write sys$output "Creating libzshr.exe" 231 $ call map_2_shopt 'mapfile' 'optfile' 232 $ LINK_'lopts'/SHARE=libzshr.exe modules.opt/opt,'optfile'/opt 210 233 $ write sys$output "Zlib build completed" 234 $ delete/nolog tmp.opt;* 211 235 $ exit 236 $AMISS_ERR: 237 $ write sys$output "No source for config.hin found." 238 $ write sys$output "Tried any of ''aconf_in_file'" 239 $ goto err_exit 212 240 $CC_ERR: 213 241 $ write sys$output "C compiler required to build ''name'" … … 217 245 $ close/nolog optf 218 246 $ close/nolog topt 219 $ close/nolog conf_hin220 247 $ close/nolog aconf_in 221 248 $ close/nolog aconf … … 398 425 # descrip.mms: MMS description file for building zlib on VMS 399 426 # written by Martin P.J. Zinser 400 # <zinser@zinser.no-ip.info or zinser@sysdev.deutsche-boerse.com>427 # <zinser@zinser.no-ip.info or martin.zinser@eurexchange.com> 401 428 402 429 OBJS = adler32.obj, compress.obj, crc32.obj, gzclose.obj, gzlib.obj\ … … 408 435 $ write out "CFLAGS=", ccopt 409 436 $ write out "LOPTS=", lopts 437 $ write out "all : example.exe minigzip.exe libz.olb" 410 438 $ copy sys$input: out 411 439 $ deck 412 413 all : example.exe minigzip.exe libz.olb414 440 @ write sys$output " Example applications available" 415 441 … … 421 447 422 448 minigzip.exe : minigzip.obj libz.olb 423 link $(LOPTS) minigzip,libz.olb/lib ,x11vms:xvmsutils.olb/lib449 link $(LOPTS) minigzip,libz.olb/lib 424 450 425 451 clean : … … 432 458 crc32.obj : crc32.c zutil.h zlib.h zconf.h 433 459 deflate.obj : deflate.c deflate.h zutil.h zlib.h zconf.h 434 example.obj : test/example.c zlib.h zconf.h460 example.obj : [.test]example.c zlib.h zconf.h 435 461 gzclose.obj : gzclose.c zutil.h zlib.h zconf.h 436 462 gzlib.obj : gzlib.c zutil.h zlib.h zconf.h … … 440 466 inflate.obj : inflate.c zutil.h zlib.h zconf.h 441 467 inftrees.obj : inftrees.c zutil.h zlib.h zconf.h inftrees.h 442 minigzip.obj : test/minigzip.c zlib.h zconf.h468 minigzip.obj : [.test]minigzip.c zlib.h zconf.h 443 469 trees.obj : trees.c deflate.h zutil.h zlib.h zconf.h 444 470 uncompr.obj : uncompr.c zlib.h zconf.h … … 456 482 $ open/read min makefile.in 457 483 $ open/write mod modules.opt 458 $ src_check = "OBJC="484 $ src_check_list = "OBJZ =#OBJG =" 459 485 $MRLOOP: 460 486 $ read/end=mrdone min rec 461 $ if (f$extract(0,6,rec) .nes. src_check) then goto mrloop 487 $ i = 0 488 $SRC_CHECK_LOOP: 489 $ src_check = f$element(i, "#", src_check_list) 490 $ i = i+1 491 $ if src_check .eqs. "#" then goto mrloop 492 $ if (f$extract(0,6,rec) .nes. src_check) then goto src_check_loop 462 493 $ rec = rec - src_check 463 494 $ gosub extra_filnam 464 $ if (f$element(1,"\",rec) .eqs. "\") then goto mr done495 $ if (f$element(1,"\",rec) .eqs. "\") then goto mrloop 465 496 $MRSLOOP: 466 497 $ read/end=mrdone min rec … … 673 704 $!------------------------------------------------------------------------------ 674 705 $! 675 $! Analyze Object files for OpenVMS AXP to extract Procedure and Data676 $! information to build a symbol vector for a shareable image677 $! All the "brains" of this logic was suggested by Hartmut Becker678 $! (Hartmut.Becker@compaq.com). All the bugs were introduced by me679 $! (zinser@zinser.no-ip.info), so if you do have problem reports please do not680 $! bother Hartmut/HP, but get in touch with me681 $!682 $! Version history683 $! 0.01 20040406 Skip over shareable images in option file684 $! 0.02 20041109 Fix option file for shareable images with case_sensitive=YES685 $! 0.03 20050107 Skip over Identification labels in option file686 $! 0.04 20060117 Add uppercase alias to code compiled with /name=as_is687 $!688 $ ANAL_OBJ_AXP: Subroutine689 $ V = 'F$Verify(0)690 $ SAY := "WRITE_ SYS$OUTPUT"691 $692 $ IF F$SEARCH("''P1'") .EQS. ""693 $ THEN694 $ SAY "ANAL_OBJ_AXP-E-NOSUCHFILE: Error, inputfile ''p1' not available"695 $ goto exit_aa696 $ ENDIF697 $ IF "''P2'" .EQS. ""698 $ THEN699 $ SAY "ANAL_OBJ_AXP: Error, no output file provided"700 $ goto exit_aa701 $ ENDIF702 $703 $ open/read in 'p1704 $ create a.tmp705 $ open/append atmp a.tmp706 $ loop:707 $ read/end=end_loop in line708 $ if f$locate("/SHARE",f$edit(line,"upcase")) .lt. f$length(line)709 $ then710 $ write sys$output "ANAL_SKP_SHR-i-skipshare, ''line'"711 $ goto loop712 $ endif713 $ if f$locate("IDENTIFICATION=",f$edit(line,"upcase")) .lt. f$length(line)714 $ then715 $ write sys$output "ANAL_OBJ_AXP-i-ident: Identification ", -716 f$element(1,"=",line)717 $ goto loop718 $ endif719 $ f= f$search(line)720 $ if f .eqs. ""721 $ then722 $ write sys$output "ANAL_OBJ_AXP-w-nosuchfile, ''line'"723 $ goto loop724 $ endif725 $ define/user sys$output nl:726 $ define/user sys$error nl:727 $ anal/obj/gsd 'f /out=x.tmp728 $ open/read xtmp x.tmp729 $ XLOOP:730 $ read/end=end_xloop xtmp xline731 $ xline = f$edit(xline,"compress")732 $ write atmp xline733 $ goto xloop734 $ END_XLOOP:735 $ close xtmp736 $ goto loop737 $ end_loop:738 $ close in739 $ close atmp740 $ if f$search("a.tmp") .eqs. "" -741 then $ exit742 $ ! all global definitions743 $ search a.tmp "symbol:","EGSY$V_DEF 1","EGSY$V_NORM 1"/out=b.tmp744 $ ! all procedures745 $ search b.tmp "EGSY$V_NORM 1"/wind=(0,1) /out=c.tmp746 $ search c.tmp "symbol:"/out=d.tmp747 $ define/user sys$output nl:748 $ edito/edt/command=sys$input d.tmp749 sub/symbol: "/symbol_vector=(/whole750 sub/"/=PROCEDURE)/whole751 exit752 $ ! all data753 $ search b.tmp "EGSY$V_DEF 1"/wind=(0,1) /out=e.tmp754 $ search e.tmp "symbol:"/out=f.tmp755 $ define/user sys$output nl:756 $ edito/edt/command=sys$input f.tmp757 sub/symbol: "/symbol_vector=(/whole758 sub/"/=DATA)/whole759 exit760 $ sort/nodupl d.tmp,f.tmp g.tmp761 $ open/read raw_vector g.tmp762 $ open/write case_vector 'p2'763 $ RAWLOOP:764 $ read/end=end_rawloop raw_vector raw_element765 $ write case_vector raw_element766 $ if f$locate("=PROCEDURE)",raw_element) .lt. f$length(raw_element)767 $ then768 $ name = f$element(1,"=",raw_element) - "("769 $ if f$edit(name,"UPCASE") .nes. name then -770 write case_vector f$fao(" symbol_vector=(!AS/!AS=PROCEDURE)", -771 f$edit(name,"UPCASE"), name)772 $ endif773 $ if f$locate("=DATA)",raw_element) .lt. f$length(raw_element)774 $ then775 $ name = f$element(1,"=",raw_element) - "("776 $ if f$edit(name,"UPCASE") .nes. name then -777 write case_vector f$fao(" symbol_vector=(!AS/!AS=DATA)", -778 f$edit(name,"UPCASE"), name)779 $ endif780 $ goto rawloop781 $ END_RAWLOOP:782 $ close raw_vector783 $ close case_vector784 $ delete a.tmp;*,b.tmp;*,c.tmp;*,d.tmp;*,e.tmp;*,f.tmp;*,g.tmp;*785 $ if f$search("x.tmp") .nes. "" -786 then $ delete x.tmp;*787 $!788 $ EXIT_AA:789 $ if V then set verify790 $ endsubroutine791 $!------------------------------------------------------------------------------792 $!793 706 $! Write configuration to both permanent and temporary config file 794 707 $! … … 803 716 $ENDSUBROUTINE 804 717 $!------------------------------------------------------------------------------ 718 $! 719 $! Analyze the project map file and create the symbol vector for a shareable 720 $! image from it 721 $! 722 $! Version history 723 $! 0.01 20120128 First version 724 $! 0.02 20120226 Add pre-load logic 725 $! 726 $ MAP_2_SHOPT: Subroutine 727 $! 728 $ SAY := "WRITE_ SYS$OUTPUT" 729 $! 730 $ IF F$SEARCH("''P1'") .EQS. "" 731 $ THEN 732 $ SAY "MAP_2_SHOPT-E-NOSUCHFILE: Error, inputfile ''p1' not available" 733 $ goto exit_m2s 734 $ ENDIF 735 $ IF "''P2'" .EQS. "" 736 $ THEN 737 $ SAY "MAP_2_SHOPT: Error, no output file provided" 738 $ goto exit_m2s 739 $ ENDIF 740 $! 741 $ module1 = "deflate#deflateEnd#deflateInit_#deflateParams#deflateSetDictionary" 742 $ module2 = "gzclose#gzerror#gzgetc#gzgets#gzopen#gzprintf#gzputc#gzputs#gzread" 743 $ module3 = "gzseek#gztell#inflate#inflateEnd#inflateInit_#inflateSetDictionary" 744 $ module4 = "inflateSync#uncompress#zlibVersion#compress" 745 $ open/read map 'p1 746 $ if axp .or. ia64 747 $ then 748 $ open/write aopt a.opt 749 $ open/write bopt b.opt 750 $ write aopt " CASE_SENSITIVE=YES" 751 $ write bopt "SYMBOL_VECTOR= (-" 752 $ mod_sym_num = 1 753 $ MOD_SYM_LOOP: 754 $ if f$type(module'mod_sym_num') .nes. "" 755 $ then 756 $ mod_in = 0 757 $ MOD_SYM_IN: 758 $ shared_proc = f$element(mod_in, "#", module'mod_sym_num') 759 $ if shared_proc .nes. "#" 760 $ then 761 $ write aopt f$fao(" symbol_vector=(!AS/!AS=PROCEDURE)",- 762 f$edit(shared_proc,"upcase"),shared_proc) 763 $ write bopt f$fao("!AS=PROCEDURE,-",shared_proc) 764 $ mod_in = mod_in + 1 765 $ goto mod_sym_in 766 $ endif 767 $ mod_sym_num = mod_sym_num + 1 768 $ goto mod_sym_loop 769 $ endif 770 $MAP_LOOP: 771 $ read/end=map_end map line 772 $ if (f$locate("{",line).lt. f$length(line)) .or. - 773 (f$locate("global:", line) .lt. f$length(line)) 774 $ then 775 $ proc = true 776 $ goto map_loop 777 $ endif 778 $ if f$locate("}",line).lt. f$length(line) then proc = false 779 $ if f$locate("local:", line) .lt. f$length(line) then proc = false 780 $ if proc 781 $ then 782 $ shared_proc = f$edit(line,"collapse") 783 $ chop_semi = f$locate(";", shared_proc) 784 $ if chop_semi .lt. f$length(shared_proc) then - 785 shared_proc = f$extract(0, chop_semi, shared_proc) 786 $ write aopt f$fao(" symbol_vector=(!AS/!AS=PROCEDURE)",- 787 f$edit(shared_proc,"upcase"),shared_proc) 788 $ write bopt f$fao("!AS=PROCEDURE,-",shared_proc) 789 $ endif 790 $ goto map_loop 791 $MAP_END: 792 $ close/nolog aopt 793 $ close/nolog bopt 794 $ open/append libopt 'p2' 795 $ open/read aopt a.opt 796 $ open/read bopt b.opt 797 $ALOOP: 798 $ read/end=aloop_end aopt line 799 $ write libopt line 800 $ goto aloop 801 $ALOOP_END: 802 $ close/nolog aopt 803 $ sv = "" 804 $BLOOP: 805 $ read/end=bloop_end bopt svn 806 $ if (svn.nes."") 807 $ then 808 $ if (sv.nes."") then write libopt sv 809 $ sv = svn 810 $ endif 811 $ goto bloop 812 $BLOOP_END: 813 $ write libopt f$extract(0,f$length(sv)-2,sv), "-" 814 $ write libopt ")" 815 $ close/nolog bopt 816 $ delete/nolog/noconf a.opt;*,b.opt;* 817 $ else 818 $ if vax 819 $ then 820 $ open/append libopt 'p2' 821 $ mod_sym_num = 1 822 $ VMOD_SYM_LOOP: 823 $ if f$type(module'mod_sym_num') .nes. "" 824 $ then 825 $ mod_in = 0 826 $ VMOD_SYM_IN: 827 $ shared_proc = f$element(mod_in, "#", module'mod_sym_num') 828 $ if shared_proc .nes. "#" 829 $ then 830 $ write libopt f$fao("UNIVERSAL=!AS",- 831 f$edit(shared_proc,"upcase")) 832 $ mod_in = mod_in + 1 833 $ goto vmod_sym_in 834 $ endif 835 $ mod_sym_num = mod_sym_num + 1 836 $ goto vmod_sym_loop 837 $ endif 838 $VMAP_LOOP: 839 $ read/end=vmap_end map line 840 $ if (f$locate("{",line).lt. f$length(line)) .or. - 841 (f$locate("global:", line) .lt. f$length(line)) 842 $ then 843 $ proc = true 844 $ goto vmap_loop 845 $ endif 846 $ if f$locate("}",line).lt. f$length(line) then proc = false 847 $ if f$locate("local:", line) .lt. f$length(line) then proc = false 848 $ if proc 849 $ then 850 $ shared_proc = f$edit(line,"collapse") 851 $ chop_semi = f$locate(";", shared_proc) 852 $ if chop_semi .lt. f$length(shared_proc) then - 853 shared_proc = f$extract(0, chop_semi, shared_proc) 854 $ write libopt f$fao("UNIVERSAL=!AS",- 855 f$edit(shared_proc,"upcase")) 856 $ endif 857 $ goto vmap_loop 858 $VMAP_END: 859 $ else 860 $ write sys$output "Unknown Architecture (Not VAX, AXP, or IA64)" 861 $ write sys$output "No options file created" 862 $ endif 863 $ endif 864 $ EXIT_M2S: 865 $ close/nolog map 866 $ close/nolog libopt 867 $ endsubroutine -
smplayer/vendor/current/zlib/qnx/package.qpg
r121 r133 26 26 <QPG:Add file="../zconf.h" install="/opt/include/" user="root:sys" permission="644"/> 27 27 <QPG:Add file="../zlib.h" install="/opt/include/" user="root:sys" permission="644"/> 28 <QPG:Add file="../libz.so.1.2. 6" install="/opt/lib/" user="root:bin" permission="644"/>29 <QPG:Add file="libz.so" install="/opt/lib/" component="dev" filetype="symlink" linkto="libz.so.1.2. 6"/>30 <QPG:Add file="libz.so.1" install="/opt/lib/" filetype="symlink" linkto="libz.so.1.2. 6"/>31 <QPG:Add file="../libz.so.1.2. 6" install="/opt/lib/" component="slib"/>28 <QPG:Add file="../libz.so.1.2.7" install="/opt/lib/" user="root:bin" permission="644"/> 29 <QPG:Add file="libz.so" install="/opt/lib/" component="dev" filetype="symlink" linkto="libz.so.1.2.7"/> 30 <QPG:Add file="libz.so.1" install="/opt/lib/" filetype="symlink" linkto="libz.so.1.2.7"/> 31 <QPG:Add file="../libz.so.1.2.7" install="/opt/lib/" component="slib"/> 32 32 </QPG:Files> 33 33 … … 64 64 65 65 <QPM:ReleaseDescription> 66 <QPM:ReleaseVersion>1.2. 6</QPM:ReleaseVersion>66 <QPM:ReleaseVersion>1.2.7</QPM:ReleaseVersion> 67 67 <QPM:ReleaseUrgency>Medium</QPM:ReleaseUrgency> 68 68 <QPM:ReleaseStability>Stable</QPM:ReleaseStability> -
smplayer/vendor/current/zlib/test/minigzip.c
r121 r133 198 198 int ret; 199 199 200 gz = malloc(sizeof( gzFile));200 gz = malloc(sizeof(struct gzFile_s)); 201 201 if (gz == NULL) 202 202 return NULL; -
smplayer/vendor/current/zlib/treebuild.xml
r121 r133 1 1 <?xml version="1.0" ?> 2 <package name="zlib" version="1.2. 6">3 <library name="zlib" dlversion="1.2. 6" dlname="z">2 <package name="zlib" version="1.2.7"> 3 <library name="zlib" dlversion="1.2.7" dlname="z"> 4 4 <property name="description"> zip compression library </property> 5 5 <property name="include-target-dir" value="$(@PACKAGE/install-includedir)" /> -
smplayer/vendor/current/zlib/win32/Makefile.gcc
r121 r133 2 2 # Modified for mingw32 by C. Spieler, 6/16/98. 3 3 # Updated for zlib 1.2.x by Christian Spieler and Cosmin Truta, Mar-2003. 4 # Last updated: 1-Aug-2003.4 # Last updated: Mar 2012. 5 5 # Tested under Cygwin and MinGW. 6 6 … … 8 8 # For conditions of distribution and use, see copyright notice in zlib.h 9 9 10 # To compile, or to compile and test, type :10 # To compile, or to compile and test, type from the top level zlib directory: 11 11 # 12 # make -f makefile.gcc; make test testdll -fmakefile.gcc12 # make -fwin32/Makefile.gcc; make test testdll -fwin32/Makefile.gcc 13 13 # 14 14 # To use the asm code, type: 15 15 # cp contrib/asm?86/match.S ./match.S 16 # make LOC=-DASMV OBJA=match.o -f makefile.gcc16 # make LOC=-DASMV OBJA=match.o -fwin32/Makefile.gcc 17 17 # 18 18 # To install libz.a, zconf.h and zlib.h in the system directories, type: 19 19 # 20 # make install -fmakefile.gcc 20 # make install -fwin32/Makefile.gcc 21 # 22 # BINARY_PATH, INCLUDE_PATH and LIBRARY_PATH must be set. 23 # 24 # To install the shared lib, append SHARED_MODE=1 to the make command : 25 # 26 # make install -fwin32/Makefile.gcc SHARED_MODE=1 21 27 22 28 # Note: … … 39 45 CC = $(PREFIX)gcc 40 46 CFLAGS = $(LOC) -O3 -Wall 41 EXTRA_CFLAGS = -DNO_VIZ42 47 43 48 AS = $(CC) … … 58 63 # If GNU install is available, replace $(CP) with install. 59 64 INSTALL = $(CP) 60 # RM = rm -f65 # RM = rm -f 61 66 RM = del 62 67 … … 79 84 80 85 .c.o: 81 $(CC) $(CFLAGS) $(EXTRA_CFLAGS)-c -o $@ $<86 $(CC) $(CFLAGS) -c -o $@ $< 82 87 83 88 .S.o: … … 111 116 112 117 example.o: test/example.c zlib.h zconf.h 113 $(CC) $(CFLAGS) $(EXTRA_CFLAGS)-I. -c -o $@ test/example.c118 $(CC) $(CFLAGS) -I. -c -o $@ test/example.c 114 119 115 120 minigzip.o: test/minigzip.c zlib.h zconf.h 116 $(CC) $(CFLAGS) $(EXTRA_CFLAGS)-I. -c -o $@ test/minigzip.c121 $(CC) $(CFLAGS) -I. -c -o $@ test/minigzip.c 117 122 118 123 zlibrc.o: win32/zlib1.rc 119 124 $(RC) $(RCFLAGS) -o $@ win32/zlib1.rc 120 125 121 122 # BINARY_PATH, INCLUDE_PATH and LIBRARY_PATH must be set.123 124 126 .PHONY: install uninstall clean 125 127 126 128 install: zlib.h zconf.h $(STATICLIB) $(IMPLIB) 127 @if test -z "$( INCLUDE_PATH)" -o -z "$(LIBRARY_PATH)" -o -z "$(BINARY_PATH)"; then \129 @if test -z "$(DESTDIR)$(INCLUDE_PATH)" -o -z "$(DESTDIR)$(LIBRARY_PATH)" -o -z "$(DESTDIR)$(BINARY_PATH)"; then \ 128 130 echo INCLUDE_PATH, LIBRARY_PATH, and BINARY_PATH must be specified; \ 129 131 exit 1; \ 130 132 fi 131 -@mkdir -p $(INCLUDE_PATH)132 -@mkdir -p $(LIBRARY_PATH) $(LIBRARY_PATH)/pkgconfig133 -@mkdir -p '$(DESTDIR)$(INCLUDE_PATH)' 134 -@mkdir -p '$(DESTDIR)$(LIBRARY_PATH)' '$(DESTDIR)$(LIBRARY_PATH)'/pkgconfig 133 135 -if [ "$(SHARED_MODE)" = "1" ]; then \ 134 mkdir -p $(BINARY_PATH); \135 $(INSTALL) $(SHAREDLIB) $(BINARY_PATH); \136 $(INSTALL) $(IMPLIB) $(LIBRARY_PATH); \136 mkdir -p '$(DESTDIR)$(BINARY_PATH)'; \ 137 $(INSTALL) $(SHAREDLIB) '$(DESTDIR)$(BINARY_PATH)'; \ 138 $(INSTALL) $(IMPLIB) '$(DESTDIR)$(LIBRARY_PATH)'; \ 137 139 fi 138 -$(INSTALL) zlib.h $(INCLUDE_PATH)139 -$(INSTALL) zconf.h $(INCLUDE_PATH)140 -$(INSTALL) $(STATICLIB) $(LIBRARY_PATH)140 -$(INSTALL) zlib.h '$(DESTDIR)$(INCLUDE_PATH)' 141 -$(INSTALL) zconf.h '$(DESTDIR)$(INCLUDE_PATH)' 142 -$(INSTALL) $(STATICLIB) '$(DESTDIR)$(LIBRARY_PATH)' 141 143 sed \ 142 144 -e 's|@prefix@|${prefix}|g' \ … … 146 148 -e 's|@includedir@|$(INCLUDE_PATH)|g' \ 147 149 -e 's|@VERSION@|'`sed -n -e '/VERSION "/s/.*"\(.*\)".*/\1/p' zlib.h`'|g' \ 148 zlib.pc.in > $(LIBRARY_PATH)/pkgconfig/zlib.pc150 zlib.pc.in > '$(DESTDIR)$(LIBRARY_PATH)'/pkgconfig/zlib.pc 149 151 150 152 uninstall: 151 153 -if [ "$(SHARED_MODE)" = "1" ]; then \ 152 $(RM) $(BINARY_PATH)/$(SHAREDLIB); \153 $(RM) $(LIBRARY_PATH)/$(IMPLIB); \154 $(RM) '$(DESTDIR)$(BINARY_PATH)'/$(SHAREDLIB); \ 155 $(RM) '$(DESTDIR)$(LIBRARY_PATH)'/$(IMPLIB); \ 154 156 fi 155 -$(RM) $(INCLUDE_PATH)/zlib.h156 -$(RM) $(INCLUDE_PATH)/zconf.h157 -$(RM) $(LIBRARY_PATH)/$(STATICLIB)157 -$(RM) '$(DESTDIR)$(INCLUDE_PATH)'/zlib.h 158 -$(RM) '$(DESTDIR)$(INCLUDE_PATH)'/zconf.h 159 -$(RM) '$(DESTDIR)$(LIBRARY_PATH)'/$(STATICLIB) 158 160 159 161 clean: -
smplayer/vendor/current/zlib/win32/README-WIN32.txt
r121 r133 1 1 ZLIB DATA COMPRESSION LIBRARY 2 2 3 zlib 1.2. 4is a general purpose data compression library. All the code is3 zlib 1.2.7 is a general purpose data compression library. All the code is 4 4 thread safe. The data format used by the zlib library is described by RFCs 5 5 (Request for Comments) 1950 to 1952 in the files … … 23 23 Manifest: 24 24 25 The package zlib-1.2. 4-win32-x86.zip containsthe following files:25 The package zlib-1.2.7-win32-x86.zip will contain the following files: 26 26 27 27 README-WIN32.txt This document … … 59 59 All .pdb files above are entirely optional, but are very useful to a developer 60 60 attempting to diagnose program misbehavior or a crash. Many additional 61 important files for developers can be found in the zlib12 4.zip source package61 important files for developers can be found in the zlib127.zip source package 62 62 available from http://zlib.net/ - review that package's README file for details. 63 63 … … 73 73 Copyright notice: 74 74 75 (C) 1995-201 0Jean-loup Gailly and Mark Adler75 (C) 1995-2012 Jean-loup Gailly and Mark Adler 76 76 77 77 This software is provided 'as-is', without any express or implied -
smplayer/vendor/current/zlib/win32/zlib.def
r121 r133 75 75 inflateInit2_ 76 76 inflateBackInit_ 77 gzgetc_ 77 78 zError 78 79 inflateSyncPoint … … 81 82 inflateResetKeep 82 83 deflateResetKeep 83 gzgetc_ 84 gzflags 84 gzopen_w -
smplayer/vendor/current/zlib/zconf.h
r121 r133 1 1 /* zconf.h -- configuration of the zlib compression library 2 * Copyright (C) 1995-201 1Jean-loup Gailly.2 * Copyright (C) 1995-2012 Jean-loup Gailly. 3 3 * For conditions of distribution and use, see copyright notice in zlib.h 4 4 */ … … 66 66 # define gzeof z_gzeof 67 67 # define gzerror z_gzerror 68 # define gzflags z_gzflags69 68 # define gzflush z_gzflush 70 69 # define gzgetc z_gzgetc … … 75 74 # define gzopen z_gzopen 76 75 # define gzopen64 z_gzopen64 76 # ifdef _WIN32 77 # define gzopen_w z_gzopen_w 78 # endif 77 79 # define gzprintf z_gzprintf 78 80 # define gzputc z_gzputc … … 128 130 # ifndef Z_SOLO 129 131 # define gzFile z_gzFile 130 # define gz_header z_gz_header131 # define gz_headerp z_gz_headerp132 # endif132 # endif 133 # define gz_header z_gz_header 134 # define gz_headerp z_gz_headerp 133 135 # define in_func z_in_func 134 136 # define intf z_intf … … 143 145 144 146 /* all zlib structs in zlib.h and zconf.h */ 145 # ifndef Z_SOLO 146 # define gz_header_s z_gz_header_s 147 # endif 147 # define gz_header_s z_gz_header_s 148 148 # define internal_state z_internal_state 149 149 … … 389 389 #endif 390 390 391 /* ./configure may #define Z_U4 here */ 392 393 #if !defined(Z_U4) && !defined(Z_SOLO) && defined(STDC) 394 # include <limits.h> 395 # if (UINT_MAX == 0xffffffffUL) 396 # define Z_U4 unsigned 397 # else 398 # if (ULONG_MAX == 0xffffffffUL) 399 # define Z_U4 unsigned long 400 # else 401 # if (USHRT_MAX == 0xffffffffUL) 402 # define Z_U4 unsigned short 403 # endif 404 # endif 405 # endif 406 #endif 407 408 #ifdef Z_U4 409 typedef Z_U4 z_crc_t; 410 #else 411 typedef unsigned long z_crc_t; 412 #endif 413 391 414 #ifdef HAVE_UNISTD_H /* may be set to #if 1 by ./configure */ 392 415 # define Z_HAVE_UNISTD_H … … 401 424 # include <sys/types.h> /* for off_t */ 402 425 # endif 426 #endif 427 428 #ifdef _WIN32 429 # include <stddef.h> /* for wchar_t */ 403 430 #endif 404 431 … … 409 436 * equivalently requesting no 64-bit operations 410 437 */ 411 #if -_LARGEFILE64_SOURCE - -1 == 1438 #if defined(LARGEFILE64_SOURCE) && -_LARGEFILE64_SOURCE - -1 == 1 412 439 # undef _LARGEFILE64_SOURCE 413 440 #endif 414 441 415 #if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0 416 # define Z_LARGE 417 #endif 418 419 #if (defined(Z_HAVE_UNISTD_H) || defined(Z_LARGE)) && !defined(Z_SOLO) 420 # include <unistd.h> /* for SEEK_* and off_t */ 421 # ifdef VMS 422 # include <unixio.h> /* for off_t */ 423 # endif 424 # ifndef z_off_t 425 # define z_off_t off_t 426 # endif 442 #if defined(__WATCOMC__) && !defined(Z_HAVE_UNISTD_H) 443 # define Z_HAVE_UNISTD_H 444 #endif 445 #ifndef Z_SOLO 446 # if defined(Z_HAVE_UNISTD_H) || defined(LARGEFILE64_SOURCE) 447 # include <unistd.h> /* for SEEK_*, off_t, and _LFS64_LARGEFILE */ 448 # ifdef VMS 449 # include <unixio.h> /* for off_t */ 450 # endif 451 # ifndef z_off_t 452 # define z_off_t off_t 453 # endif 454 # endif 455 #endif 456 457 #if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE-0 458 # define Z_LFS64 459 #endif 460 461 #if defined(_LARGEFILE64_SOURCE) && defined(Z_LFS64) 462 # define Z_LARGE64 463 #endif 464 465 #if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS-0 == 64 && defined(Z_LFS64) 466 # define Z_WANT64 427 467 #endif 428 468 … … 437 477 #endif 438 478 439 #if !defined(_WIN32) && (defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0)479 #if !defined(_WIN32) && defined(Z_LARGE64) 440 480 # define z_off64_t off64_t 441 481 #else 442 # if defined(_WIN32) 482 # if defined(_WIN32) && !defined(__GNUC__) && !defined(Z_SOLO) 443 483 # define z_off64_t __int64 444 484 # else 445 # define z_off64_t z_off_t446 # endif485 # define z_off64_t z_off_t 486 # endif 447 487 #endif 448 488 -
smplayer/vendor/current/zlib/zconf.h.cmakein
r121 r133 1 1 /* zconf.h -- configuration of the zlib compression library 2 * Copyright (C) 1995-201 1Jean-loup Gailly.2 * Copyright (C) 1995-2012 Jean-loup Gailly. 3 3 * For conditions of distribution and use, see copyright notice in zlib.h 4 4 */ … … 68 68 # define gzeof z_gzeof 69 69 # define gzerror z_gzerror 70 # define gzflags z_gzflags71 70 # define gzflush z_gzflush 72 71 # define gzgetc z_gzgetc … … 77 76 # define gzopen z_gzopen 78 77 # define gzopen64 z_gzopen64 78 # ifdef _WIN32 79 # define gzopen_w z_gzopen_w 80 # endif 79 81 # define gzprintf z_gzprintf 80 82 # define gzputc z_gzputc … … 130 132 # ifndef Z_SOLO 131 133 # define gzFile z_gzFile 132 # define gz_header z_gz_header133 # define gz_headerp z_gz_headerp134 # endif134 # endif 135 # define gz_header z_gz_header 136 # define gz_headerp z_gz_headerp 135 137 # define in_func z_in_func 136 138 # define intf z_intf … … 145 147 146 148 /* all zlib structs in zlib.h and zconf.h */ 147 # ifndef Z_SOLO 148 # define gz_header_s z_gz_header_s 149 # endif 149 # define gz_header_s z_gz_header_s 150 150 # define internal_state z_internal_state 151 151 … … 391 391 #endif 392 392 393 /* ./configure may #define Z_U4 here */ 394 395 #if !defined(Z_U4) && !defined(Z_SOLO) && defined(STDC) 396 # include <limits.h> 397 # if (UINT_MAX == 0xffffffffUL) 398 # define Z_U4 unsigned 399 # else 400 # if (ULONG_MAX == 0xffffffffUL) 401 # define Z_U4 unsigned long 402 # else 403 # if (USHRT_MAX == 0xffffffffUL) 404 # define Z_U4 unsigned short 405 # endif 406 # endif 407 # endif 408 #endif 409 410 #ifdef Z_U4 411 typedef Z_U4 z_crc_t; 412 #else 413 typedef unsigned long z_crc_t; 414 #endif 415 393 416 #ifdef HAVE_UNISTD_H /* may be set to #if 1 by ./configure */ 394 417 # define Z_HAVE_UNISTD_H … … 403 426 # include <sys/types.h> /* for off_t */ 404 427 # endif 428 #endif 429 430 #ifdef _WIN32 431 # include <stddef.h> /* for wchar_t */ 405 432 #endif 406 433 … … 411 438 * equivalently requesting no 64-bit operations 412 439 */ 413 #if -_LARGEFILE64_SOURCE - -1 == 1440 #if defined(LARGEFILE64_SOURCE) && -_LARGEFILE64_SOURCE - -1 == 1 414 441 # undef _LARGEFILE64_SOURCE 415 442 #endif 416 443 417 #if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0 418 # define Z_LARGE 419 #endif 420 421 #if (defined(Z_HAVE_UNISTD_H) || defined(Z_LARGE)) && !defined(Z_SOLO) 422 # include <unistd.h> /* for SEEK_* and off_t */ 423 # ifdef VMS 424 # include <unixio.h> /* for off_t */ 425 # endif 426 # ifndef z_off_t 427 # define z_off_t off_t 428 # endif 444 #if defined(__WATCOMC__) && !defined(Z_HAVE_UNISTD_H) 445 # define Z_HAVE_UNISTD_H 446 #endif 447 #ifndef Z_SOLO 448 # if defined(Z_HAVE_UNISTD_H) || defined(LARGEFILE64_SOURCE) 449 # include <unistd.h> /* for SEEK_*, off_t, and _LFS64_LARGEFILE */ 450 # ifdef VMS 451 # include <unixio.h> /* for off_t */ 452 # endif 453 # ifndef z_off_t 454 # define z_off_t off_t 455 # endif 456 # endif 457 #endif 458 459 #if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE-0 460 # define Z_LFS64 461 #endif 462 463 #if defined(_LARGEFILE64_SOURCE) && defined(Z_LFS64) 464 # define Z_LARGE64 465 #endif 466 467 #if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS-0 == 64 && defined(Z_LFS64) 468 # define Z_WANT64 429 469 #endif 430 470 … … 439 479 #endif 440 480 441 #if !defined(_WIN32) && (defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0)481 #if !defined(_WIN32) && defined(Z_LARGE64) 442 482 # define z_off64_t off64_t 443 483 #else 444 # if defined(_WIN32) 484 # if defined(_WIN32) && !defined(__GNUC__) && !defined(Z_SOLO) 445 485 # define z_off64_t __int64 446 486 # else 447 # define z_off64_t z_off_t448 # endif487 # define z_off64_t z_off_t 488 # endif 449 489 #endif 450 490 -
smplayer/vendor/current/zlib/zconf.h.in
r121 r133 1 1 /* zconf.h -- configuration of the zlib compression library 2 * Copyright (C) 1995-201 1Jean-loup Gailly.2 * Copyright (C) 1995-2012 Jean-loup Gailly. 3 3 * For conditions of distribution and use, see copyright notice in zlib.h 4 4 */ … … 66 66 # define gzeof z_gzeof 67 67 # define gzerror z_gzerror 68 # define gzflags z_gzflags69 68 # define gzflush z_gzflush 70 69 # define gzgetc z_gzgetc … … 75 74 # define gzopen z_gzopen 76 75 # define gzopen64 z_gzopen64 76 # ifdef _WIN32 77 # define gzopen_w z_gzopen_w 78 # endif 77 79 # define gzprintf z_gzprintf 78 80 # define gzputc z_gzputc … … 128 130 # ifndef Z_SOLO 129 131 # define gzFile z_gzFile 130 # define gz_header z_gz_header131 # define gz_headerp z_gz_headerp132 # endif132 # endif 133 # define gz_header z_gz_header 134 # define gz_headerp z_gz_headerp 133 135 # define in_func z_in_func 134 136 # define intf z_intf … … 143 145 144 146 /* all zlib structs in zlib.h and zconf.h */ 145 # ifndef Z_SOLO 146 # define gz_header_s z_gz_header_s 147 # endif 147 # define gz_header_s z_gz_header_s 148 148 # define internal_state z_internal_state 149 149 … … 389 389 #endif 390 390 391 /* ./configure may #define Z_U4 here */ 392 393 #if !defined(Z_U4) && !defined(Z_SOLO) && defined(STDC) 394 # include <limits.h> 395 # if (UINT_MAX == 0xffffffffUL) 396 # define Z_U4 unsigned 397 # else 398 # if (ULONG_MAX == 0xffffffffUL) 399 # define Z_U4 unsigned long 400 # else 401 # if (USHRT_MAX == 0xffffffffUL) 402 # define Z_U4 unsigned short 403 # endif 404 # endif 405 # endif 406 #endif 407 408 #ifdef Z_U4 409 typedef Z_U4 z_crc_t; 410 #else 411 typedef unsigned long z_crc_t; 412 #endif 413 391 414 #ifdef HAVE_UNISTD_H /* may be set to #if 1 by ./configure */ 392 415 # define Z_HAVE_UNISTD_H … … 401 424 # include <sys/types.h> /* for off_t */ 402 425 # endif 426 #endif 427 428 #ifdef _WIN32 429 # include <stddef.h> /* for wchar_t */ 403 430 #endif 404 431 … … 409 436 * equivalently requesting no 64-bit operations 410 437 */ 411 #if -_LARGEFILE64_SOURCE - -1 == 1438 #if defined(LARGEFILE64_SOURCE) && -_LARGEFILE64_SOURCE - -1 == 1 412 439 # undef _LARGEFILE64_SOURCE 413 440 #endif 414 441 415 #if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0 416 # define Z_LARGE 417 #endif 418 419 #if (defined(Z_HAVE_UNISTD_H) || defined(Z_LARGE)) && !defined(Z_SOLO) 420 # include <unistd.h> /* for SEEK_* and off_t */ 421 # ifdef VMS 422 # include <unixio.h> /* for off_t */ 423 # endif 424 # ifndef z_off_t 425 # define z_off_t off_t 426 # endif 442 #if defined(__WATCOMC__) && !defined(Z_HAVE_UNISTD_H) 443 # define Z_HAVE_UNISTD_H 444 #endif 445 #ifndef Z_SOLO 446 # if defined(Z_HAVE_UNISTD_H) || defined(LARGEFILE64_SOURCE) 447 # include <unistd.h> /* for SEEK_*, off_t, and _LFS64_LARGEFILE */ 448 # ifdef VMS 449 # include <unixio.h> /* for off_t */ 450 # endif 451 # ifndef z_off_t 452 # define z_off_t off_t 453 # endif 454 # endif 455 #endif 456 457 #if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE-0 458 # define Z_LFS64 459 #endif 460 461 #if defined(_LARGEFILE64_SOURCE) && defined(Z_LFS64) 462 # define Z_LARGE64 463 #endif 464 465 #if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS-0 == 64 && defined(Z_LFS64) 466 # define Z_WANT64 427 467 #endif 428 468 … … 437 477 #endif 438 478 439 #if !defined(_WIN32) && (defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0)479 #if !defined(_WIN32) && defined(Z_LARGE64) 440 480 # define z_off64_t off64_t 441 481 #else 442 # if defined(_WIN32) 482 # if defined(_WIN32) && !defined(__GNUC__) && !defined(Z_SOLO) 443 483 # define z_off64_t __int64 444 484 # else 445 # define z_off64_t z_off_t446 # endif485 # define z_off64_t z_off_t 486 # endif 447 487 #endif 448 488 -
smplayer/vendor/current/zlib/zlib.3
r121 r133 1 .TH ZLIB 3 "2 9 Jan2012"1 .TH ZLIB 3 "2 May 2012" 2 2 .SH NAME 3 3 zlib \- compression/decompression library … … 126 126 or (for the Windows DLL version) to Gilles Vollant (info@winimage.com). 127 127 .SH AUTHORS 128 Version 1.2. 6128 Version 1.2.7 129 129 Copyright (C) 1995-2012 Jean-loup Gailly (jloup@gzip.org) 130 130 and Mark Adler (madler@alumni.caltech.edu). -
smplayer/vendor/current/zlib/zlib.h
r121 r133 1 1 /* zlib.h -- interface of the 'zlib' general purpose compression library 2 version 1.2. 6, January 29th, 20122 version 1.2.7, May 2nd, 2012 3 3 4 4 Copyright (C) 1995-2012 Jean-loup Gailly and Mark Adler … … 38 38 #endif 39 39 40 #define ZLIB_VERSION "1.2. 6"41 #define ZLIB_VERNUM 0x12 6040 #define ZLIB_VERSION "1.2.7" 41 #define ZLIB_VERNUM 0x1270 42 42 #define ZLIB_VER_MAJOR 1 43 43 #define ZLIB_VER_MINOR 2 44 #define ZLIB_VER_REVISION 644 #define ZLIB_VER_REVISION 7 45 45 #define ZLIB_VER_SUBREVISION 0 46 46 … … 453 453 single call of inflate), the parameter flush should be set to Z_FINISH. In 454 454 this case all pending input is processed and all pending output is flushed; 455 avail_out must be large enough to hold all the uncompressed data. (The size 456 of the uncompressed data may have been saved by the compressor for this 457 purpose.) The next operation on this stream must be inflateEnd to deallocate 458 the decompression state. The use of Z_FINISH is not required to perform an 459 inflation in one step. However it may be used to inform inflate that a 460 faster approach can be used for the single inflate() call. Z_FINISH also 461 informs inflate to not maintain a sliding window if the stream completes, 462 which reduces inflate's memory footprint. 455 avail_out must be large enough to hold all of the uncompressed data for the 456 operation to complete. (The size of the uncompressed data may have been 457 saved by the compressor for this purpose.) The use of Z_FINISH is not 458 required to perform an inflation in one step. However it may be used to 459 inform inflate that a faster approach can be used for the single inflate() 460 call. Z_FINISH also informs inflate to not maintain a sliding window if the 461 stream completes, which reduces inflate's memory footprint. If the stream 462 does not complete, either because not all of the stream is provided or not 463 enough output space is provided, then a sliding window will be allocated and 464 inflate() can be called again to continue the operation as if Z_NO_FLUSH had 465 been used. 463 466 464 467 In this implementation, inflate() always flushes as much output as … … 1218 1221 "a" can be used instead of "w" to request that the gzip stream that will 1219 1222 be written be appended to the file. "+" will result in an error, since 1220 reading and writing to the same gzip file is not supported. 1223 reading and writing to the same gzip file is not supported. The addition of 1224 "x" when writing will create the file exclusively, which fails if the file 1225 already exists. On systems that support it, the addition of "e" when 1226 reading or writing will set the flag to close the file on an execve() call. 1221 1227 1222 1228 These functions, as well as gzip, will read and decode a sequence of gzip … … 1579 1585 Update a running CRC-32 with the bytes buf[0..len-1] and return the 1580 1586 updated CRC-32. If buf is Z_NULL, this function returns the required 1581 initial value for the for the crc. Pre- and post-conditioning (one's 1582 complement) is performed within this function so it shouldn't be done by the 1583 application. 1587 initial value for the crc. Pre- and post-conditioning (one's complement) is 1588 performed within this function so it shouldn't be done by the application. 1584 1589 1585 1590 Usage example: … … 1651 1656 z_off64_t pos; 1652 1657 }; 1653 ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file)); 1654 #define gzgetc(g) \ 1655 ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : gzgetc_(g)) 1658 ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file)); /* backward compatibility */ 1659 #ifdef Z_PREFIX_SET 1660 # undef z_gzgetc 1661 # define z_gzgetc(g) \ 1662 ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : gzgetc(g)) 1663 #else 1664 # define gzgetc(g) \ 1665 ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : gzgetc(g)) 1666 #endif 1656 1667 1657 1668 /* provide 64-bit offset functions if _LARGEFILE64_SOURCE defined, and/or … … 1661 1672 * without large file support, _LFS64_LARGEFILE must also be true 1662 1673 */ 1663 #if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-01674 #ifdef Z_LARGE64 1664 1675 ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *)); 1665 1676 ZEXTERN z_off64_t ZEXPORT gzseek64 OF((gzFile, z_off64_t, int)); … … 1670 1681 #endif 1671 1682 1672 #if !defined(ZLIB_INTERNAL) && _FILE_OFFSET_BITS-0 == 64 && _LFS64_LARGEFILE-01683 #if !defined(ZLIB_INTERNAL) && defined(Z_WANT64) 1673 1684 # ifdef Z_PREFIX_SET 1674 1685 # define z_gzopen z_gzopen64 … … 1686 1697 # define crc32_combine crc32_combine64 1687 1698 # endif 1688 # ifndef _LARGEFILE64_SOURCE1699 # ifndef Z_LARGE64 1689 1700 ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *)); 1690 1701 ZEXTERN z_off_t ZEXPORT gzseek64 OF((gzFile, z_off_t, int)); … … 1718 1729 ZEXTERN const char * ZEXPORT zError OF((int)); 1719 1730 ZEXTERN int ZEXPORT inflateSyncPoint OF((z_streamp)); 1720 ZEXTERN const uLongf* ZEXPORT get_crc_table OF((void));1731 ZEXTERN const z_crc_t FAR * ZEXPORT get_crc_table OF((void)); 1721 1732 ZEXTERN int ZEXPORT inflateUndermine OF((z_streamp, int)); 1722 1733 ZEXTERN int ZEXPORT inflateResetKeep OF((z_streamp)); 1723 1734 ZEXTERN int ZEXPORT deflateResetKeep OF((z_streamp)); 1724 #ifndef Z_SOLO 1725 ZEXTERN unsigned long ZEXPORT gzflags OF((void)); 1735 #if defined(_WIN32) && !defined(Z_SOLO) 1736 ZEXTERN gzFile ZEXPORT gzopen_w OF((const wchar_t *path, 1737 const char *mode)); 1726 1738 #endif 1727 1739 -
smplayer/vendor/current/zlib/zlib.map
r127 r133 74 74 ZLIB_1.2.5.2 { 75 75 deflateResetKeep; 76 gzflags;77 76 gzgetc_; 78 77 inflateResetKeep; -
smplayer/vendor/current/zlib/zutil.c
r121 r133 1 1 /* zutil.c -- target dependent utility functions for the compression library 2 * Copyright (C) 1995-2005, 2010, 2011 Jean-loup Gailly.2 * Copyright (C) 1995-2005, 2010, 2011, 2012 Jean-loup Gailly. 3 3 * For conditions of distribution and use, see copyright notice in zlib.h 4 4 */ … … 7 7 8 8 #include "zutil.h" 9 #ifndef Z_SOLO 10 # include "gzguts.h" 11 #endif 9 12 10 13 #ifndef NO_DUMMY_DECL … … 86 89 flags += 1L << 21; 87 90 #endif 88 #ifdef Z_SOLO 91 #if defined(STDC) || defined(Z_HAVE_STDARG_H) 92 # ifdef NO_vsnprintf 93 flags += 1L << 25; 94 # ifdef HAS_vsprintf_void 95 flags += 1L << 26; 96 # endif 97 # else 98 # ifdef HAS_vsnprintf_void 99 flags += 1L << 26; 100 # endif 101 # endif 102 #else 103 flags += 1L << 24; 104 # ifdef NO_snprintf 105 flags += 1L << 25; 106 # ifdef HAS_sprintf_void 107 flags += 1L << 26; 108 # endif 109 # else 110 # ifdef HAS_snprintf_void 111 flags += 1L << 26; 112 # endif 113 # endif 114 #endif 89 115 return flags; 90 #else91 return flags + gzflags();92 #endif93 116 } 94 117 -
smplayer/vendor/current/zlib/zutil.h
r121 r133 1 1 /* zutil.h -- internal interface and configuration of the compression library 2 * Copyright (C) 1995-201 1Jean-loup Gailly.2 * Copyright (C) 1995-2012 Jean-loup Gailly. 3 3 * For conditions of distribution and use, see copyright notice in zlib.h 4 4 */ … … 14 14 #define ZUTIL_H 15 15 16 #if ((__GNUC__-0) * 10 + __GNUC_MINOR__-0 >= 33) && !defined(NO_VIZ)16 #ifdef HAVE_HIDDEN 17 17 # define ZLIB_INTERNAL __attribute__((visibility ("hidden"))) 18 18 #else … … 246 246 #define TRY_FREE(s, p) {if (p) ZFREE(s, p);} 247 247 248 /* Reverse the bytes in a 32-bit value */ 249 #define ZSWAP32(q) ((((q) >> 24) & 0xff) + (((q) >> 8) & 0xff00) + \ 250 (((q) & 0xff00) << 8) + (((q) & 0xff) << 24)) 251 248 252 #endif /* ZUTIL_H */
Note:
See TracChangeset
for help on using the changeset viewer.