lemon-project-template-glpk

diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/deps/glpk/src/zlib/gzguts.h	Sun Nov 06 20:59:10 2011 +0100
     1.3 @@ -0,0 +1,74 @@
     1.4 +/* gzguts.h (zlib internal header definitions for gz* operations) */
     1.5 +
     1.6 +/* Modified by Andrew Makhorin <mao@gnu.org>, April 2011 */
     1.7 +
     1.8 +/* Copyright (C) 2004, 2005, 2010 Mark Adler
     1.9 + * For conditions of distribution and use, see copyright notice in
    1.10 + * zlib.h */
    1.11 +
    1.12 +/* WARNING: this file should *not* be used by applications. It is
    1.13 +   part of the implementation of the compression library and is
    1.14 +   subject to change. Applications should only use zlib.h. */
    1.15 +
    1.16 +#ifndef GZGUTS_H
    1.17 +#define GZGUTS_H
    1.18 +
    1.19 +#define ZLIB_INTERNAL
    1.20 +
    1.21 +#include <errno.h>
    1.22 +#include <limits.h>
    1.23 +#include <stdio.h>
    1.24 +#include <stdlib.h>
    1.25 +#include <string.h>
    1.26 +#include "zio.h"
    1.27 +#include "zlib.h"
    1.28 +
    1.29 +#define local static
    1.30 +
    1.31 +#define zstrerror() strerror(errno)
    1.32 +
    1.33 +#define GZBUFSIZE 8192
    1.34 +
    1.35 +#define GZ_NONE 0
    1.36 +#define GZ_READ 7247
    1.37 +#define GZ_WRITE 31153
    1.38 +#define GZ_APPEND 1
    1.39 +
    1.40 +#define LOOK 0
    1.41 +#define COPY 1
    1.42 +#define GZIP 2
    1.43 +
    1.44 +typedef struct
    1.45 +{     int mode;
    1.46 +      int fd;
    1.47 +      char *path;
    1.48 +      z_off64_t pos;
    1.49 +      unsigned size;
    1.50 +      unsigned want;
    1.51 +      unsigned char *in;
    1.52 +      unsigned char *out;
    1.53 +      unsigned char *next;
    1.54 +      unsigned have;
    1.55 +      int eof;
    1.56 +      z_off64_t start;
    1.57 +      z_off64_t raw;
    1.58 +      int how;
    1.59 +      int direct;
    1.60 +      int level;
    1.61 +      int strategy;
    1.62 +      z_off64_t skip;
    1.63 +      int seek;
    1.64 +      int err;
    1.65 +      char *msg;
    1.66 +      z_stream strm;
    1.67 +} gz_state;
    1.68 +
    1.69 +typedef gz_state *gz_statep;
    1.70 +
    1.71 +void ZLIB_INTERNAL gz_error OF((gz_statep, int, const char *));
    1.72 +
    1.73 +#define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > INT_MAX)
    1.74 +
    1.75 +#endif
    1.76 +
    1.77 +/* eof */