(deps/zlib) Cleanups

This commit is contained in:
twinaphex 2015-08-28 21:25:17 +02:00
parent 0cd3a9ec63
commit e361207cd3
3 changed files with 0 additions and 29 deletions

15
deps/zlib/gzlib.c vendored
View File

@ -264,19 +264,16 @@ local gzFile gz_open(const void *path, int fd, const char *mode)
return (gzFile)state;
}
/* -- see zlib.h -- */
gzFile ZEXPORT gzopen(const char *path, const char *mode)
{
return gz_open(path, -1, mode);
}
/* -- see zlib.h -- */
gzFile ZEXPORT gzopen64(const char *path, const char *mode)
{
return gz_open(path, -1, mode);
}
/* -- see zlib.h -- */
gzFile ZEXPORT gzdopen(int fd, const char *mode)
{
char *path; /* identifier for error messages */
@ -294,7 +291,6 @@ gzFile ZEXPORT gzdopen(int fd, const char *mode)
return gz;
}
/* -- see zlib.h -- */
#ifdef _WIN32
gzFile ZEXPORT gzopen_w(const wchar_t *path, const char *mode)
{
@ -302,7 +298,6 @@ gzFile ZEXPORT gzopen_w(const wchar_t *path, const char *mode)
}
#endif
/* -- see zlib.h -- */
int ZEXPORT gzbuffer(gzFile file, unsigned size)
{
gz_statep state;
@ -325,7 +320,6 @@ int ZEXPORT gzbuffer(gzFile file, unsigned size)
return 0;
}
/* -- see zlib.h -- */
int ZEXPORT gzrewind(gzFile file)
{
gz_statep state;
@ -347,7 +341,6 @@ int ZEXPORT gzrewind(gzFile file)
return 0;
}
/* -- see zlib.h -- */
z_off64_t ZEXPORT gzseek64(gzFile file, z_off64_t offset, int whence)
{
unsigned n;
@ -421,7 +414,6 @@ z_off64_t ZEXPORT gzseek64(gzFile file, z_off64_t offset, int whence)
return state->x.pos + offset;
}
/* -- see zlib.h -- */
z_off_t ZEXPORT gzseek(gzFile file, z_off_t offset, int whence)
{
z_off64_t ret;
@ -430,7 +422,6 @@ z_off_t ZEXPORT gzseek(gzFile file, z_off_t offset, int whence)
return ret == (z_off_t)ret ? (z_off_t)ret : -1;
}
/* -- see zlib.h -- */
z_off64_t ZEXPORT gztell64(gzFile file)
{
gz_statep state;
@ -446,7 +437,6 @@ z_off64_t ZEXPORT gztell64(gzFile file)
return state->x.pos + (state->seek ? state->skip : 0);
}
/* -- see zlib.h -- */
z_off_t ZEXPORT gztell(gzFile file)
{
z_off64_t ret;
@ -455,7 +445,6 @@ z_off_t ZEXPORT gztell(gzFile file)
return ret == (z_off_t)ret ? (z_off_t)ret : -1;
}
/* -- see zlib.h -- */
z_off64_t ZEXPORT gzoffset64(gzFile file)
{
z_off64_t offset;
@ -477,14 +466,12 @@ z_off64_t ZEXPORT gzoffset64(gzFile file)
return offset;
}
/* -- see zlib.h -- */
z_off_t ZEXPORT gzoffset(gzFile file)
{
z_off64_t ret = gzoffset64(file);
return ret == (z_off_t)ret ? (z_off_t)ret : -1;
}
/* -- see zlib.h -- */
int ZEXPORT gzeof(gzFile file)
{
gz_statep state;
@ -500,7 +487,6 @@ int ZEXPORT gzeof(gzFile file)
return state->mode == GZ_READ ? state->past : 0;
}
/* -- see zlib.h -- */
const char * ZEXPORT gzerror(gzFile file, int *errnum)
{
gz_statep state;
@ -519,7 +505,6 @@ const char * ZEXPORT gzerror(gzFile file, int *errnum)
(state->msg == NULL ? "" : state->msg);
}
/* -- see zlib.h -- */
void ZEXPORT gzclearerr(gzFile file)
{
gz_statep state;

6
deps/zlib/gzread.c vendored
View File

@ -276,7 +276,6 @@ local int gz_skip(gz_statep state, z_off64_t len)
return 0;
}
/* -- see zlib.h -- */
int ZEXPORT gzread(gzFile file, voidp buf, unsigned len)
{
unsigned got, n;
@ -368,7 +367,6 @@ int ZEXPORT gzread(gzFile file, voidp buf, unsigned len)
return (int)got;
}
/* -- see zlib.h -- */
#ifdef Z_PREFIX_SET
# undef z_gzgetc
#else
@ -407,7 +405,6 @@ int ZEXPORT gzgetc_(gzFile file)
return gzgetc(file);
}
/* -- see zlib.h -- */
int ZEXPORT gzungetc(int c, gzFile file)
{
gz_statep state;
@ -465,7 +462,6 @@ int ZEXPORT gzungetc(int c, gzFile file)
return c;
}
/* -- see zlib.h -- */
char * ZEXPORT gzgets(gzFile file, char *buf, int len)
{
unsigned left, n;
@ -526,7 +522,6 @@ char * ZEXPORT gzgets(gzFile file, char *buf, int len)
return str;
}
/* -- see zlib.h -- */
int ZEXPORT gzdirect(gzFile file)
{
gz_statep state;
@ -545,7 +540,6 @@ int ZEXPORT gzdirect(gzFile file)
return state->direct;
}
/* -- see zlib.h -- */
int gzclose_r(gzFile file)
{
int ret, err;

8
deps/zlib/gzwrite.c vendored
View File

@ -158,7 +158,6 @@ local int gz_zero(gz_statep state, z_off64_t len)
return 0;
}
/* -- see zlib.h -- */
int ZEXPORT gzwrite(gzFile file, voidpc buf, unsigned len)
{
unsigned put = len;
@ -235,7 +234,6 @@ int ZEXPORT gzwrite(gzFile file, voidpc buf, unsigned len)
return (int)put;
}
/* -- see zlib.h -- */
int ZEXPORT gzputc(gzFile file, int c)
{
unsigned have;
@ -281,7 +279,6 @@ int ZEXPORT gzputc(gzFile file, int c)
return c & 0xff;
}
/* -- see zlib.h -- */
int ZEXPORT gzputs(gzFile file, const char *str)
{
int ret;
@ -296,7 +293,6 @@ int ZEXPORT gzputs(gzFile file, const char *str)
#if defined(STDC) || defined(Z_HAVE_STDARG_H)
#include <stdarg.h>
/* -- see zlib.h -- */
int ZEXPORTVA gzvprintf(gzFile file, const char *format, va_list va)
{
int size, len;
@ -372,7 +368,6 @@ int ZEXPORTVA gzprintf(gzFile file, const char *format, ...)
#else /* !STDC && !Z_HAVE_STDARG_H */
/* -- see zlib.h -- */
int ZEXPORTVA gzprintf (gzFile file, const char *format, int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9, int a10,
int a11, int a12, int a13, int a14, int a15, int a16, int a17, int a18, int a19, int a20)
{
@ -447,7 +442,6 @@ int ZEXPORTVA gzprintf (gzFile file, const char *format, int a1, int a2, int a3,
#endif
/* -- see zlib.h -- */
int ZEXPORT gzflush(gzFile file, int flush)
{
gz_statep state;
@ -477,7 +471,6 @@ int ZEXPORT gzflush(gzFile file, int flush)
return state->err;
}
/* -- see zlib.h -- */
int ZEXPORT gzsetparams(gzFile file, int level, int strategy)
{
gz_statep state;
@ -516,7 +509,6 @@ int ZEXPORT gzsetparams(gzFile file, int level, int strategy)
return Z_OK;
}
/* -- see zlib.h -- */
int gzclose_w(gzFile file)
{
int ret = Z_OK;