This commit is contained in:
Mark Adler
2011-09-09 23:03:14 -07:00
parent 913afb9174
commit 4ca984fb44
21 changed files with 185 additions and 352 deletions

View File

@@ -13,15 +13,21 @@
* or in pipe mode.
*/
/* $Id: minigzip.c,v 1.2 1995/04/14 20:03:12 jloup Exp $ */
/* $Id: minigzip.c,v 1.3 1995/04/29 14:27:21 jloup Exp $ */
#include <stdio.h>
#include "zlib.h"
extern void exit __P((int));
extern void exit __P((int));
extern int unlink __P((const char *));
#ifdef STDC
# include <string.h>
#endif
#ifdef MSDOS
# include <fcntl.h> /* ??? find where setmode declared */
# include <fcntl.h>
# include <io.h>
# define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
#else
# define SET_BINARY_MODE(file)
@@ -38,6 +44,13 @@ extern void exit __P((int));
char *prog;
void error __P((char *msg));
void gz_compress __P((FILE *in, gzFile out));
void gz_uncompress __P((gzFile in, FILE *out));
void file_compress __P((char *file));
void file_uncompress __P((char *file));
void main __P((int argc, char *argv[]));
/* ===========================================================================
* Display error message and exit
*/