X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=gzip.h;h=cb0ef662ccf169d6aa94cc1b186b3decd13370ae;hb=3d2df61b0ca3aa4efd9258905402dc2a2c73c14c;hp=d06413d11c7555c9a94623b67336a3b5e45c5359;hpb=70b787436ae3f40de5046676b97c0d621715f4f2;p=debian%2Fgzip diff --git a/gzip.h b/gzip.h index d06413d..cb0ef66 100644 --- a/gzip.h +++ b/gzip.h @@ -1,6 +1,6 @@ /* gzip.h -- common declarations for all gzip modules - Copyright (C) 1997-1999, 2001, 2006-2007, 2009-2011 Free Software + Copyright (C) 1997-1999, 2001, 2006-2007, 2009-2015 Free Software Foundation, Inc. Copyright (C) 1992-1993 Jean-loup Gailly. @@ -19,12 +19,6 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#if defined(__STDC__) || defined(PROTO) -# define OF(args) args -#else -# define OF(args) () -#endif - #ifdef __STDC__ typedef void *voidp; #else @@ -202,7 +196,6 @@ typedef int file_t; /* Do not use stdio */ * distances are limited to MAX_DIST instead of WSIZE. */ -extern int decrypt; /* flag to turn on decryption */ extern int exit_code; /* program exit code */ extern int verbose; /* be verbose (-v) */ extern int quiet; /* be quiet (-q) */ @@ -271,63 +264,60 @@ extern int save_orig_name; /* set if original name must be saved */ if (exit_code == OK) exit_code = WARNING;} /* in zip.c: */ -extern int zip OF((int in, int out)); -extern int file_read OF((char *buf, unsigned size)); +extern int zip (int in, int out); +extern int file_read (char *buf, unsigned size); /* in unzip.c */ -extern int unzip OF((int in, int out)); -extern int check_zipfile OF((int in)); +extern int unzip (int in, int out); +extern int check_zipfile (int in); /* in unpack.c */ -extern int unpack OF((int in, int out)); +extern int unpack (int in, int out); /* in unlzh.c */ -extern int unlzh OF((int in, int out)); +extern int unlzh (int in, int out); /* in gzip.c */ -void abort_gzip OF((void)) ATTRIBUTE_NORETURN; +extern void abort_gzip (void) ATTRIBUTE_NORETURN; /* in deflate.c */ -void lm_init OF((int pack_level, ush *flags)); -off_t deflate OF((void)); +extern void lm_init (int pack_level, ush *flags); +extern off_t deflate (void); /* in trees.c */ -void ct_init OF((ush *attr, int *method)); -int ct_tally OF((int dist, int lc)); -off_t flush_block OF((char *buf, ulg stored_len, int eof)); +extern void ct_init (ush *attr, int *method); +extern int ct_tally (int dist, int lc); +extern off_t flush_block (char *buf, ulg stored_len, int eof); /* in bits.c */ -void bi_init OF((file_t zipfile)); -void send_bits OF((int value, int length)); -unsigned bi_reverse OF((unsigned value, int length)); -void bi_windup OF((void)); -void copy_block OF((char *buf, unsigned len, int header)); -extern int (*read_buf) OF((char *buf, unsigned size)); +extern void bi_init (file_t zipfile); +extern void send_bits (int value, int length); +extern unsigned bi_reverse (unsigned value, int length) _GL_ATTRIBUTE_CONST; +extern void bi_windup (void); +extern void copy_block (char *buf, unsigned len, int header); +extern int (*read_buf) (char *buf, unsigned size); /* in util.c: */ -extern int copy OF((int in, int out)); -extern ulg updcrc OF((uch *s, unsigned n)); -extern void clear_bufs OF((void)); -extern int fill_inbuf OF((int eof_ok)); -extern void flush_outbuf OF((void)); -extern void flush_window OF((void)); -extern void write_buf OF((int fd, voidp buf, unsigned cnt)); -extern int read_buffer OF((int fd, voidp buf, unsigned int cnt)); -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 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 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)); +extern int copy (int in, int out); +extern ulg updcrc (uch *s, unsigned n); +extern void clear_bufs (void); +extern int fill_inbuf (int eof_ok); +extern void flush_outbuf (void); +extern void flush_window (void); +extern void write_buf (int fd, voidp buf, unsigned cnt); +extern int read_buffer (int fd, voidp buf, unsigned int cnt); +extern char *strlwr (char *s); +extern char *gzip_base_name (char *fname) _GL_ATTRIBUTE_PURE; +extern int xunlink (char *fname); +extern void make_simple_name (char *name); +extern char *add_envopt (int *argcp, char ***argvp, char const *env); +extern void gzip_error (char const *m) ATTRIBUTE_NORETURN; +extern void xalloc_die (void) ATTRIBUTE_NORETURN; +extern void warning (char const *m); +extern void read_error (void) ATTRIBUTE_NORETURN; +extern void write_error (void) ATTRIBUTE_NORETURN; +extern void display_ratio (off_t num, off_t den, FILE *file); +extern void fprint_off (FILE *, off_t, int); /* in inflate.c */ -extern int inflate OF((void)); - - /* in yesno.c */ -extern int yesno OF((void)); +extern int inflate (void);