lemon-project-template-glpk

view deps/glpk/src/zlib/gzguts.h @ 9:33de93886c88

Import GLPK 4.47
author Alpar Juttner <alpar@cs.elte.hu>
date Sun, 06 Nov 2011 20:59:10 +0100
parents
children
line source
1 /* gzguts.h (zlib internal header definitions for gz* operations) */
3 /* Modified by Andrew Makhorin <mao@gnu.org>, April 2011 */
5 /* Copyright (C) 2004, 2005, 2010 Mark Adler
6 * For conditions of distribution and use, see copyright notice in
7 * zlib.h */
9 /* WARNING: this file should *not* be used by applications. It is
10 part of the implementation of the compression library and is
11 subject to change. Applications should only use zlib.h. */
13 #ifndef GZGUTS_H
14 #define GZGUTS_H
16 #define ZLIB_INTERNAL
18 #include <errno.h>
19 #include <limits.h>
20 #include <stdio.h>
21 #include <stdlib.h>
22 #include <string.h>
23 #include "zio.h"
24 #include "zlib.h"
26 #define local static
28 #define zstrerror() strerror(errno)
30 #define GZBUFSIZE 8192
32 #define GZ_NONE 0
33 #define GZ_READ 7247
34 #define GZ_WRITE 31153
35 #define GZ_APPEND 1
37 #define LOOK 0
38 #define COPY 1
39 #define GZIP 2
41 typedef struct
42 { int mode;
43 int fd;
44 char *path;
45 z_off64_t pos;
46 unsigned size;
47 unsigned want;
48 unsigned char *in;
49 unsigned char *out;
50 unsigned char *next;
51 unsigned have;
52 int eof;
53 z_off64_t start;
54 z_off64_t raw;
55 int how;
56 int direct;
57 int level;
58 int strategy;
59 z_off64_t skip;
60 int seek;
61 int err;
62 char *msg;
63 z_stream strm;
64 } gz_state;
66 typedef gz_state *gz_statep;
68 void ZLIB_INTERNAL gz_error OF((gz_statep, int, const char *));
70 #define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > INT_MAX)
72 #endif
74 /* eof */