1. 07 6月, 2022 1 次提交
  2. 01 1月, 2017 1 次提交
    • M
      Avoid the need for ssize_t. · cca27e95
      Mark Adler 提交于
      Limit read() and write() requests to sizes that fit in an int.
      This allows storing the return value in an int, and avoiding the
      need to use or construct an ssize_t type. This is required for
      Microsoft C, whose _read and _write functions take an unsigned
      request and return an int.
      cca27e95
  3. 31 12月, 2016 1 次提交
  4. 05 12月, 2016 1 次提交
  5. 04 12月, 2016 2 次提交
  6. 12 10月, 2016 1 次提交
  7. 03 8月, 2015 1 次提交
    • M
      Allow building zlib outside of the source directory. · 55d98b4c
      Mark Adler 提交于
      To build, simply run configure from the source directory by
      specifying its path.  That path will be used to find the source
      files.  The source directory will not be touched.  All new and
      modified files will be made in the current directory.  Discovered
      in the process that not all makes understand % or $<, and not all
      compilers understand -include or -I-.  This required a larger
      Makefile.in with explicit dependencies.
      55d98b4c
  8. 24 3月, 2013 2 次提交
  9. 13 8月, 2012 1 次提交
    • M
      Clean up the usage of z_const and respect const usage within zlib. · 62d6112a
      Mark Adler 提交于
      This patch allows zlib to compile cleanly with the -Wcast-qual gcc
      warning enabled, but only if ZLIB_CONST is defined, which adds
      const to next_in and msg in z_stream and in the in_func prototype.
      A --const option is added to ./configure which adds -DZLIB_CONST
      to the compile flags, and adds -Wcast-qual to the compile flags
      when ZLIBGCCWARN is set in the environment.
      62d6112a
  10. 10 6月, 2012 4 次提交
  11. 02 5月, 2012 1 次提交
  12. 30 4月, 2012 2 次提交
    • M
      dbcdbf8c
    • M
      Fix type mismatch between get_crc_table() and crc_table. · 6c9bd474
      Mark Adler 提交于
      crc_table is made using a four-byte integer (when that can be
      determined).  However get_crc_table() returned a pointer to an
      unsigned long, which could be eight bytes.  This fixes that by
      creating a new z_crc_t type for the crc_table.
      
      This type is also used for the BYFOUR crc calculations that depend
      on a four-byte type.  The four-byte type can now be determined by
      ./configure, which also solves a problem where ./configure --solo
      would never use BYFOUR.  No the Z_U4 #define indicates that four-
      byte integer was found either by ./configure or by zconf.h.
      6c9bd474
  13. 23 4月, 2012 2 次提交
  14. 01 4月, 2012 1 次提交
  15. 15 3月, 2012 1 次提交
  16. 03 3月, 2012 1 次提交
  17. 20 2月, 2012 1 次提交
  18. 19 2月, 2012 1 次提交
    • M
      Test for existence of strerror. · 6838df92
      Mark Adler 提交于
      SunOS 4.1 claims that it is __STDC__, but it does not have strerror
      in string.h.  Instead of using __STDC__, this puts a direct test
      for strerror in configure, and uses that information in gzguts.h.
      6838df92
  19. 05 2月, 2012 1 次提交
    • M
      Use name in GCC_CLASSIC as C compiler for coverage testing, if set. · 2dadd2fa
      Mark Adler 提交于
      Apple removed support for gcov in the default gcc compiler chain,
      when they moved to llvm.  This can be circumvented in XCode 4.2 by
      using the gcc chain with gcc-4.2.  This patch allows setting
      GCC_CLASSIC to the name of a real gcc executable (e.g. "gcc-4.2")
      to allow coverage testing.
      2dadd2fa
  20. 30 1月, 2012 1 次提交
  21. 29 1月, 2012 1 次提交
  22. 17 1月, 2012 1 次提交
    • M
      Have ./configure use the compiler return code for error indication. · 2d55657c
      Mark Adler 提交于
      Previously ./configure would use any output on stderr as an indication
      that the compilation failed.  However if some compiler wrapper uses
      stderr for some other purpose, e.g. distcc for nodes going down, then
      ./configure would not properly configure the build.  This problem was
      noted by Mike Frysinger.  For backwards compatibility, ./configure
      will revert to the old way, i.e. checking for anything on stderr, if
      when it deliberately runs the compiler with an error, a zero exit
      status is returned.
      2d55657c
  23. 14 11月, 2011 1 次提交
  24. 10 10月, 2011 1 次提交
    • M
      Add --cover option to ./configure for gcc coverage testing. · d66a3079
      Mark Adler 提交于
      This adds the -fprofile-arcs and -ftest-coverage options when compiling
      the source code for the static library.  Those same options must then be
      used when linking the static library into an executable.  This updates
      Makefile.in to remove and .gitignore to ignore the files generated when
      testing coverage.
      d66a3079
  25. 07 10月, 2011 1 次提交
    • M
      Add a ./config --solo option to make zlib subset with no libary use · f442c1e8
      Mark Adler 提交于
      A common request has been the ability to compile zlib to require no
      other libraries.  This --solo option provides that ability.  The price
      is that the gz*, compress*, and uncompress functions are eliminated,
      and that the user must provide memory allocation and free routines to
      deflate and inflate when initializing.
      f442c1e8
  26. 12 9月, 2011 1 次提交
  27. 10 9月, 2011 7 次提交