Files
harbour-core/harbour/external/zlib/gzclose.c
Viktor Szakats ef31d353f5 2010-04-09 14:43 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* external/zlib/Makefile
  * external/zlib/zlib.dif
    * Forcing C mode for zlib to avoid lots of local patches
      making it compile in C++ mode.

  * external/zlib/deflate.c
  * external/zlib/zutil.c
  + external/zlib/gzlib.c
  - external/zlib/gzio.c
  * external/zlib/deflate.h
  + external/zlib/gzread.c
  * external/zlib/zutil.h
  * external/zlib/crc32.c
  * external/zlib/trees.c
  * external/zlib/zconf.h
  * external/zlib/inffast.c
  * external/zlib/compress.c
  + external/zlib/gzwrite.c
  * external/zlib/Makefile
  * external/zlib/zlib.h
  + external/zlib/gzclose.c
  * external/zlib/inftrees.c
  * external/zlib/inflate.c
  * external/zlib/uncompr.c
  * external/zlib/inftrees.h
  * external/zlib/inflate.h
  + external/zlib/gzguts.h
  * external/zlib/adler32.c
  * external/zlib/infback.c
    + Updated to 1.2.4 (from 1.2.3)

  * external/zlib/zlib.dif
    * Updated. Pls double check me, it's possible I've missed
      some patches while manually repatching new sources.
2010-04-09 12:44:20 +00:00

26 lines
678 B
C

/* gzclose.c -- zlib gzclose() function
* Copyright (C) 2004, 2010 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
#include "gzguts.h"
/* gzclose() is in a separate file so that it is linked in only if it is used.
That way the other gzclose functions can be used instead to avoid linking in
unneeded compression or decompression routines. */
int ZEXPORT gzclose(file)
gzFile file;
{
#ifndef NO_GZCOMPRESS
gz_statep state;
if (file == NULL)
return Z_STREAM_ERROR;
state = (gz_statep)file;
return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file);
#else
return gzclose_r(file);
#endif
}