git/git-zlib.c

/*
 * zlib wrappers to make sure we don't silently miss errors
 * at init time.
 */
#include "git-compat-util.h"
#include "git-zlib.h"

static const char *zerr_to_string(int status)
{}

/*
 * avail_in and avail_out in zlib are counted in uInt, which typically
 * limits the size of the buffer we can use to 4GB when interacting
 * with zlib in a single call to inflate/deflate.
 */
/* #define ZLIB_BUF_MAX ((uInt)-1) */
#define ZLIB_BUF_MAX
static inline uInt zlib_buf_cap(unsigned long len)
{}

static void zlib_pre_call(git_zstream *s)
{}

static void zlib_post_call(git_zstream *s)
{}

void git_inflate_init(git_zstream *strm)
{}

void git_inflate_init_gzip_only(git_zstream *strm)
{}

void git_inflate_end(git_zstream *strm)
{}

int git_inflate(git_zstream *strm, int flush)
{}

#if defined(NO_DEFLATE_BOUND) || ZLIB_VERNUM < 0x1200
#define deflateBound
#endif

unsigned long git_deflate_bound(git_zstream *strm, unsigned long size)
{}

void git_deflate_init(git_zstream *strm, int level)
{}

static void do_git_deflate_init(git_zstream *strm, int level, int windowBits)
{}

void git_deflate_init_gzip(git_zstream *strm, int level)
{}

void git_deflate_init_raw(git_zstream *strm, int level)
{}

int git_deflate_abort(git_zstream *strm)
{}

void git_deflate_end(git_zstream *strm)
{}

int git_deflate_end_gently(git_zstream *strm)
{}

int git_deflate(git_zstream *strm, int flush)
{}