X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=gzip.h;h=5270c56a4d90c7d223abfefc0a22054b89028773;hb=5e7660c3dbe55d8580d9a79a1e71f25359ecf252;hp=c4f890f0dcf5a87a877982e3b9c4c726f224eef9;hpb=c7e61475680fa226bd9b8bdd469cd66914e630f5;p=debian%2Fgzip diff --git a/gzip.h b/gzip.h index c4f890f..5270c56 100644 --- a/gzip.h +++ b/gzip.h @@ -1,7 +1,7 @@ /* gzip.h -- common declarations for all gzip modules - Copyright (C) 1997-1999, 2001, 2006-2007, 2009 Free Software Foundation, - Inc. + Copyright (C) 1997-1999, 2001, 2006-2007, 2009-2010 Free Software + Foundation, Inc. Copyright (C) 1992-1993 Jean-loup Gailly. @@ -47,20 +47,8 @@ #include #include /* for off_t */ #include -#if defined HAVE_STRING_H || defined STDC_HEADERS -# include -# if !defined STDC_HEADERS && defined HAVE_MEMORY_H && !defined __GNUC__ -# include -# endif -# define memzero(s, n) memset ((voidp)(s), 0, (n)) -#else -# include -# define strchr index -# define strrchr rindex -# define memcpy(d, s, n) bcopy((s), (d), (n)) -# define memcmp(s1, s2, n) bcmp((s1), (s2), (n)) -# define memzero(s, n) bzero((s), (n)) -#endif +#include +#define memzero(s, n) memset ((voidp)(s), 0, (n)) #ifndef RETSIGTYPE # define RETSIGTYPE void @@ -158,6 +146,7 @@ EXTERN(uch, window); /* Sliding window and suffix table (unlzw) */ extern unsigned insize; /* valid bytes in inbuf */ extern unsigned inptr; /* index of next byte to be processed in inbuf */ extern unsigned outcnt; /* bytes in output buffer */ +extern int rsync; /* deflate into rsyncable chunks */ extern off_t bytes_in; /* number of input bytes */ extern off_t bytes_out; /* number of output bytes */ @@ -329,12 +318,12 @@ extern char *strlwr OF((char *s)); extern char *gzip_base_name OF((char *fname)); extern int xunlink OF((char *fname)); extern void make_simple_name OF((char *name)); -extern char *add_envopt OF((int *argcp, char ***argvp, char *env)); -extern void gzip_error OF((char *m)) ATTRIBUTE_NORETURN; +extern char *add_envopt OF((int *argcp, char ***argvp, char const *env)); +extern void gzip_error OF((char const *m)) ATTRIBUTE_NORETURN; extern void xalloc_die OF((void)) ATTRIBUTE_NORETURN; -extern void warning OF((char *m)); -extern void read_error OF((void)); -extern void write_error OF((void)); +extern void warning OF((char const *m)); +extern void read_error OF((void)) ATTRIBUTE_NORETURN; +extern void write_error OF((void)) ATTRIBUTE_NORETURN; extern void display_ratio OF((off_t num, off_t den, FILE *file)); extern void fprint_off OF((FILE *, off_t, int));