12.06.2015 Views

The Annoyance Filter.pdf - Fourmilab

The Annoyance Filter.pdf - Fourmilab

The Annoyance Filter.pdf - Fourmilab

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

116 MAIL FOLDER ANNOYANCE-FILTER §132<br />

132. <strong>The</strong> type of compression and command required to expand compressed files may differ from<br />

system to system. <strong>The</strong> following code, conditional based on variables determined by the autoconf<br />

process, defines the file suffix denoting a compressed file and the corresponding command used to<br />

decode it. We only support one type of compression on a given system; if gzip is available, we use it in<br />

preference to compress.<br />

〈 Configure compression suffix and command 132 〉 ≡<br />

#ifdef HAVE_POPEN<br />

#if (defined HAVE_GUNZIP) ∨ (defined HAVE_GZCAT) ∨ (defined HAVE_GZIP)<br />

# define COMPRESSED_FILES<br />

static const char Compressed file type [ ] = ".gz";<br />

static const char Uncompress command [ ] =<br />

# if (defined HAVE_GUNZIP)<br />

"gunzip␣−c"<br />

# elif (defined HAVE_GZCAT)<br />

"gzcat"<br />

# elif (defined HAVE_GZIP)<br />

"gzip␣−cd"<br />

# endif<br />

;<br />

#elif (defined HAVE_ZCAT) ∨ (defined HAVE_UNCOMPRESS) ∨ (defined HAVE_COMPRESS)<br />

# define COMPRESSED_FILES<br />

static const char Compressed file type [ ] = ".Z";<br />

#endif<br />

#endif<br />

static const char Uncompress command [ ] =<br />

# if (defined HAVE_ZCAT)<br />

"zcat"<br />

# elif (defined HAVE_UNCOMPRESS)<br />

"uncompress␣−c"<br />

# elif (defined HAVE_COMPRESS)<br />

"compress␣−cd"<br />

# endif<br />

;<br />

This code is used in section 129.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!