This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / lib / inflate.c
index 75e7d30..6a9cac8 100644 (file)
@@ -118,10 +118,6 @@ static char rcsid[] = "#Id: inflate.c,v 0.14 1993/06/10 13:27:04 jloup Exp #";
 #include "gzip.h"
 #define STATIC
 #endif /* !STATIC */
-
-#ifndef INIT
-#define INIT
-#endif
        
 #define slide window
 
@@ -143,15 +139,15 @@ struct huft {
 
 
 /* Function prototypes */
-STATIC int INIT huft_build OF((unsigned *, unsigned, unsigned, 
+STATIC int huft_build OF((unsigned *, unsigned, unsigned, 
                const ush *, const ush *, struct huft **, int *));
-STATIC int INIT huft_free OF((struct huft *));
-STATIC int INIT inflate_codes OF((struct huft *, struct huft *, int, int));
-STATIC int INIT inflate_stored OF((void));
-STATIC int INIT inflate_fixed OF((void));
-STATIC int INIT inflate_dynamic OF((void));
-STATIC int INIT inflate_block OF((int *));
-STATIC int INIT inflate OF((void));
+STATIC int huft_free OF((struct huft *));
+STATIC int inflate_codes OF((struct huft *, struct huft *, int, int));
+STATIC int inflate_stored OF((void));
+STATIC int inflate_fixed OF((void));
+STATIC int inflate_dynamic OF((void));
+STATIC int inflate_block OF((int *));
+STATIC int inflate OF((void));
 
 
 /* The inflate algorithm uses a sliding 32 K byte window on the uncompressed
@@ -276,7 +272,7 @@ STATIC const int dbits = 6;          /* bits in base distance lookup table */
 STATIC unsigned hufts;         /* track memory usage */
 
 
-STATIC int INIT huft_build(
+STATIC int huft_build(
        unsigned *b,            /* code lengths in bits (all assumed <= BMAX) */
        unsigned n,             /* number of codes (assumed <= N_MAX) */
        unsigned s,             /* number of simple-valued codes (0..s-1) */
@@ -495,7 +491,7 @@ DEBG("huft7 ");
 
 
 
-STATIC int INIT huft_free(
+STATIC int huft_free(
        struct huft *t         /* table to free */
        )
 /* Free the malloc'ed tables built by huft_build(), which makes a linked
@@ -517,7 +513,7 @@ STATIC int INIT huft_free(
 }
 
 
-STATIC int INIT inflate_codes(
+STATIC int inflate_codes(
        struct huft *tl,    /* literal/length decoder tables */
        struct huft *td,    /* distance decoder tables */
        int bl,             /* number of bits decoded by tl[] */
@@ -632,7 +628,7 @@ STATIC int INIT inflate_codes(
 
 
 
-STATIC int INIT inflate_stored(void)
+STATIC int inflate_stored(void)
 /* "decompress" an inflated type 0 (stored) block. */
 {
   unsigned n;           /* number of bytes in block */
@@ -693,7 +689,7 @@ DEBG("<stor");
 /*
  * We use `noinline' here to prevent gcc-3.5 from using too much stack space
  */
-STATIC int noinline INIT inflate_fixed(void)
+STATIC int noinline inflate_fixed(void)
 /* decompress an inflated type 1 (fixed Huffman codes) block.  We should
    either replace this with a custom decoder, or at least precompute the
    Huffman tables. */
@@ -749,7 +745,7 @@ DEBG("<fix");
 /*
  * We use `noinline' here to prevent gcc-3.5 from using too much stack space
  */
-STATIC int noinline INIT inflate_dynamic(void)
+STATIC int noinline inflate_dynamic(void)
 /* decompress an inflated type 2 (dynamic Huffman codes) block. */
 {
   int i;                /* temporary variables */
@@ -930,7 +926,7 @@ DEBG("dyn7 ");
 
 
 
-STATIC int INIT inflate_block(
+STATIC int inflate_block(
        int *e                  /* last block flag */
        )
 /* decompress an inflated block */
@@ -981,7 +977,7 @@ STATIC int INIT inflate_block(
 
 
 
-STATIC int INIT inflate(void)
+STATIC int inflate(void)
 /* decompress an inflated entry */
 {
   int e;                /* last block flag */
@@ -1043,7 +1039,7 @@ static ulg crc;           /* initialized in makecrc() so it'll reside in bss */
  * gzip-1.0.3/makecrc.c.
  */
 
-static void INIT
+static void
 makecrc(void)
 {
 /* Not copyrighted 1990 Mark Adler     */
@@ -1091,7 +1087,7 @@ makecrc(void)
 /*
  * Do the uncompression!
  */
-static int INIT gunzip(void)
+static int gunzip(void)
 {
     uch flags;
     unsigned char magic[2]; /* magic header */