gzguts.h (237691) | gzguts.h (254069) |
---|---|
1/* gzguts.h -- zlib internal header definitions for gz* operations | 1/* gzguts.h -- zlib internal header definitions for gz* operations |
2 * Copyright (C) 2004, 2005, 2010, 2011, 2012 Mark Adler | 2 * Copyright (C) 2004, 2005, 2010, 2011, 2012, 2013 Mark Adler |
3 * For conditions of distribution and use, see copyright notice in zlib.h 4 */ 5 6#ifdef _LARGEFILE64_SOURCE 7# ifndef _LARGEFILE_SOURCE 8# define _LARGEFILE_SOURCE 1 9# endif 10# ifdef _FILE_OFFSET_BITS --- 19 unchanged lines hidden (view full) --- 30#ifdef _WIN32 31# include <stddef.h> 32#endif 33 34#if defined(__TURBOC__) || defined(_MSC_VER) || defined(_WIN32) 35# include <io.h> 36#endif 37 | 3 * For conditions of distribution and use, see copyright notice in zlib.h 4 */ 5 6#ifdef _LARGEFILE64_SOURCE 7# ifndef _LARGEFILE_SOURCE 8# define _LARGEFILE_SOURCE 1 9# endif 10# ifdef _FILE_OFFSET_BITS --- 19 unchanged lines hidden (view full) --- 30#ifdef _WIN32 31# include <stddef.h> 32#endif 33 34#if defined(__TURBOC__) || defined(_MSC_VER) || defined(_WIN32) 35# include <io.h> 36#endif 37 |
38#ifdef WINAPI_FAMILY 39# define open _open 40# define read _read 41# define write _write 42# define close _close 43#endif 44 |
|
38#ifdef NO_DEFLATE /* for compatibility with old definition */ 39# define NO_GZCOMPRESS 40#endif 41 42#if defined(STDC99) || (defined(__TURBOC__) && __TURBOC__ >= 0x550) 43# ifndef HAVE_VSNPRINTF 44# define HAVE_VSNPRINTF 45# endif --- 9 unchanged lines hidden (view full) --- 55# ifndef HAVE_VSNPRINTF 56# define HAVE_VSNPRINTF 57# endif 58#endif 59 60#ifndef HAVE_VSNPRINTF 61# ifdef MSDOS 62/* vsnprintf may exist on some MS-DOS compilers (DJGPP?), | 45#ifdef NO_DEFLATE /* for compatibility with old definition */ 46# define NO_GZCOMPRESS 47#endif 48 49#if defined(STDC99) || (defined(__TURBOC__) && __TURBOC__ >= 0x550) 50# ifndef HAVE_VSNPRINTF 51# define HAVE_VSNPRINTF 52# endif --- 9 unchanged lines hidden (view full) --- 62# ifndef HAVE_VSNPRINTF 63# define HAVE_VSNPRINTF 64# endif 65#endif 66 67#ifndef HAVE_VSNPRINTF 68# ifdef MSDOS 69/* vsnprintf may exist on some MS-DOS compilers (DJGPP?), |
63 but for now we just assume it doesn't. */ | 70 but for now we just assume it doesn't. */ |
64# define NO_vsnprintf 65# endif 66# ifdef __TURBOC__ 67# define NO_vsnprintf 68# endif 69# ifdef WIN32 70/* In Win32, vsnprintf is available as the "non-ANSI" _vsnprintf. */ 71# if !defined(vsnprintf) && !defined(NO_vsnprintf) --- 11 unchanged lines hidden (view full) --- 83# ifdef __OS400__ 84# define NO_vsnprintf 85# endif 86# ifdef __MVS__ 87# define NO_vsnprintf 88# endif 89#endif 90 | 71# define NO_vsnprintf 72# endif 73# ifdef __TURBOC__ 74# define NO_vsnprintf 75# endif 76# ifdef WIN32 77/* In Win32, vsnprintf is available as the "non-ANSI" _vsnprintf. */ 78# if !defined(vsnprintf) && !defined(NO_vsnprintf) --- 11 unchanged lines hidden (view full) --- 90# ifdef __OS400__ 91# define NO_vsnprintf 92# endif 93# ifdef __MVS__ 94# define NO_vsnprintf 95# endif 96#endif 97 |
98/* unlike snprintf (which is required in C99, yet still not supported by 99 Microsoft more than a decade later!), _snprintf does not guarantee null 100 termination of the result -- however this is only used in gzlib.c where 101 the result is assured to fit in the space provided */ 102#ifdef _MSC_VER 103# define snprintf _snprintf 104#endif 105 |
|
91#ifndef local 92# define local static 93#endif 94/* compile with -Dlocal if your debugger can't find static symbols */ 95 96/* gz* functions always use library allocation functions */ 97#ifndef STDC 98 extern voidp malloc OF((uInt size)); --- 23 unchanged lines hidden (view full) --- 122 123/* default memLevel */ 124#if MAX_MEM_LEVEL >= 8 125# define DEF_MEM_LEVEL 8 126#else 127# define DEF_MEM_LEVEL MAX_MEM_LEVEL 128#endif 129 | 106#ifndef local 107# define local static 108#endif 109/* compile with -Dlocal if your debugger can't find static symbols */ 110 111/* gz* functions always use library allocation functions */ 112#ifndef STDC 113 extern voidp malloc OF((uInt size)); --- 23 unchanged lines hidden (view full) --- 137 138/* default memLevel */ 139#if MAX_MEM_LEVEL >= 8 140# define DEF_MEM_LEVEL 8 141#else 142# define DEF_MEM_LEVEL MAX_MEM_LEVEL 143#endif 144 |
130/* default i/o buffer size -- double this for output when reading */ | 145/* default i/o buffer size -- double this for output when reading (this and 146 twice this must be able to fit in an unsigned type) */ |
131#define GZBUFSIZE 8192 132 133/* gzip modes, also provide a little integrity check on the passed structure */ 134#define GZ_NONE 0 135#define GZ_READ 7247 136#define GZ_WRITE 31153 137#define GZ_APPEND 1 /* mode set to GZ_WRITE after the file is opened */ 138 --- 55 unchanged lines hidden --- | 147#define GZBUFSIZE 8192 148 149/* gzip modes, also provide a little integrity check on the passed structure */ 150#define GZ_NONE 0 151#define GZ_READ 7247 152#define GZ_WRITE 31153 153#define GZ_APPEND 1 /* mode set to GZ_WRITE after the file is opened */ 154 --- 55 unchanged lines hidden --- |