X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=gzip.h;h=329c9a517f1e789c61d2aea4de84c68cc77ffedf;hb=92249085071a973e2c0621b0415b93d2e48bb00d;hp=f298b47345a3c22c64385107607475071079bed6;hpb=2e7e88b2efec90c4ad9dc7a24d533b36a6223be2;p=debian%2Fgzip diff --git a/gzip.h b/gzip.h index f298b47..329c9a5 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-2016 Free Software + Copyright (C) 1997-1999, 2001, 2006-2007, 2009-2018 Free Software Foundation, Inc. Copyright (C) 1992-1993 Jean-loup Gailly. @@ -31,10 +31,6 @@ # endif #endif -#ifndef ATTRIBUTE_NORETURN -# define ATTRIBUTE_NORETURN __attribute__ ((__noreturn__)) -#endif - /* I don't like nested includes, but the following headers are used * too often */ @@ -42,12 +38,9 @@ #include /* for off_t */ #include #include +#include #define memzero(s, n) memset ((voidp)(s), 0, (n)) -#ifndef RETSIGTYPE -# define RETSIGTYPE void -#endif - #define local static typedef unsigned char uch; @@ -152,7 +145,7 @@ extern char ifname[]; /* input file name or "stdin" */ extern char ofname[]; /* output file name or "stdout" */ extern char *program_name; /* program name */ -extern struct timespec time_stamp; /* original time stamp (modification time) */ +extern struct timespec time_stamp; /* original timestamp (modification time) */ extern off_t ifile_size; /* input file size, -1 for devices (debug only) */ typedef int file_t; /* Do not use stdio */ @@ -279,7 +272,7 @@ extern int unpack (int in, int out); extern int unlzh (int in, int out); /* in gzip.c */ -extern void abort_gzip (void) ATTRIBUTE_NORETURN; +extern noreturn void abort_gzip (void); /* in deflate.c */ extern void lm_init (int pack_level, ush *flags); @@ -312,11 +305,11 @@ 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 noreturn void gzip_error (char const *m); +extern noreturn void xalloc_die (void); extern void warning (char const *m); -extern void read_error (void) ATTRIBUTE_NORETURN; -extern void write_error (void) ATTRIBUTE_NORETURN; +extern noreturn void read_error (void); +extern noreturn void write_error (void); extern void display_ratio (off_t num, off_t den, FILE *file); extern void fprint_off (FILE *, off_t, int);