Ignore:
Timestamp:
Oct 24, 2012, 7:56:20 PM (13 years ago)
Author:
Silvan Scherrer
Message:

SMplayer: update vendor to 0.8.1

Location:
smplayer/vendor/current/zlib
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • smplayer/vendor/current/zlib/zlib.h

    r121 r133  
    11/* zlib.h -- interface of the 'zlib' general purpose compression library
    2   version 1.2.6, January 29th, 2012
     2  version 1.2.7, May 2nd, 2012
    33
    44  Copyright (C) 1995-2012 Jean-loup Gailly and Mark Adler
     
    3838#endif
    3939
    40 #define ZLIB_VERSION "1.2.6"
    41 #define ZLIB_VERNUM 0x1260
     40#define ZLIB_VERSION "1.2.7"
     41#define ZLIB_VERNUM 0x1270
    4242#define ZLIB_VER_MAJOR 1
    4343#define ZLIB_VER_MINOR 2
    44 #define ZLIB_VER_REVISION 6
     44#define ZLIB_VER_REVISION 7
    4545#define ZLIB_VER_SUBREVISION 0
    4646
     
    453453  single call of inflate), the parameter flush should be set to Z_FINISH.  In
    454454  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.
    463466
    464467     In this implementation, inflate() always flushes as much output as
     
    12181221     "a" can be used instead of "w" to request that the gzip stream that will
    12191222   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.
    12211227
    12221228     These functions, as well as gzip, will read and decode a sequence of gzip
     
    15791585     Update a running CRC-32 with the bytes buf[0..len-1] and return the
    15801586   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.
    15841589
    15851590   Usage example:
     
    16511656    z_off64_t pos;
    16521657};
    1653 ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file));
    1654 #define gzgetc(g) \
    1655     ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : gzgetc_(g))
     1658ZEXTERN 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
    16561667
    16571668/* provide 64-bit offset functions if _LARGEFILE64_SOURCE defined, and/or
     
    16611672 * without large file support, _LFS64_LARGEFILE must also be true
    16621673 */
    1663 #if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0
     1674#ifdef Z_LARGE64
    16641675   ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
    16651676   ZEXTERN z_off64_t ZEXPORT gzseek64 OF((gzFile, z_off64_t, int));
     
    16701681#endif
    16711682
    1672 #if !defined(ZLIB_INTERNAL) && _FILE_OFFSET_BITS-0 == 64 && _LFS64_LARGEFILE-0
     1683#if !defined(ZLIB_INTERNAL) && defined(Z_WANT64)
    16731684#  ifdef Z_PREFIX_SET
    16741685#    define z_gzopen z_gzopen64
     
    16861697#    define crc32_combine crc32_combine64
    16871698#  endif
    1688 #  ifndef _LARGEFILE64_SOURCE
     1699#  ifndef Z_LARGE64
    16891700     ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
    16901701     ZEXTERN z_off_t ZEXPORT gzseek64 OF((gzFile, z_off_t, int));
     
    17181729ZEXTERN const char   * ZEXPORT zError           OF((int));
    17191730ZEXTERN int            ZEXPORT inflateSyncPoint OF((z_streamp));
    1720 ZEXTERN const uLongf * ZEXPORT get_crc_table    OF((void));
     1731ZEXTERN const z_crc_t FAR * ZEXPORT get_crc_table    OF((void));
    17211732ZEXTERN int            ZEXPORT inflateUndermine OF((z_streamp, int));
    17221733ZEXTERN int            ZEXPORT inflateResetKeep OF((z_streamp));
    17231734ZEXTERN 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)
     1736ZEXTERN gzFile         ZEXPORT gzopen_w OF((const wchar_t *path,
     1737                                            const char *mode));
    17261738#endif
    17271739
Note: See TracChangeset for help on using the changeset viewer.