lemon-project-template-glpk
comparison deps/glpk/src/zlib/gzguts.h @ 10:5545663ca997
Configure GLPK build
author | Alpar Juttner <alpar@cs.elte.hu> |
---|---|
date | Sun, 06 Nov 2011 21:42:23 +0100 (2011-11-06) |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:858e76d3785d |
---|---|
1 /* gzguts.h (zlib internal header definitions for gz* operations) */ | |
2 | |
3 /* Modified by Andrew Makhorin <mao@gnu.org>, April 2011 */ | |
4 | |
5 /* Copyright (C) 2004, 2005, 2010 Mark Adler | |
6 * For conditions of distribution and use, see copyright notice in | |
7 * zlib.h */ | |
8 | |
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. */ | |
12 | |
13 #ifndef GZGUTS_H | |
14 #define GZGUTS_H | |
15 | |
16 #define ZLIB_INTERNAL | |
17 | |
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" | |
25 | |
26 #define local static | |
27 | |
28 #define zstrerror() strerror(errno) | |
29 | |
30 #define GZBUFSIZE 8192 | |
31 | |
32 #define GZ_NONE 0 | |
33 #define GZ_READ 7247 | |
34 #define GZ_WRITE 31153 | |
35 #define GZ_APPEND 1 | |
36 | |
37 #define LOOK 0 | |
38 #define COPY 1 | |
39 #define GZIP 2 | |
40 | |
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; | |
65 | |
66 typedef gz_state *gz_statep; | |
67 | |
68 void ZLIB_INTERNAL gz_error OF((gz_statep, int, const char *)); | |
69 | |
70 #define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > INT_MAX) | |
71 | |
72 #endif | |
73 | |
74 /* eof */ |