lemon-project-template-glpk

annotate deps/glpk/src/zlib/gzguts.h @ 11:4fc6ad2fb8a6

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