From: Fabian Keil Date: Tue, 2 Jan 2007 12:49:46 +0000 (+0000) Subject: Add FEATURE_ZLIB to the list of conditional X-Git-Tag: v_3_0_7~407 X-Git-Url: http://www.privoxy.org/gitweb/config.html?a=commitdiff_plain;h=cca5651265075b0ac5e4b19d98bb5b4eba1ae713;p=privoxy.git Add FEATURE_ZLIB to the list of conditional defines at the show-status page. --- diff --git a/cgisimple.c b/cgisimple.c index f9ddbe2e..9504ef9e 100644 --- a/cgisimple.c +++ b/cgisimple.c @@ -1,4 +1,4 @@ -const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.44 2006/12/22 14:19:27 fabiankeil Exp $"; +const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.45 2006/12/28 18:16:41 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/cgisimple.c,v $ @@ -9,7 +9,7 @@ const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.44 2006/12/22 14:19:27 fabian * Functions declared include: * * - * Copyright : Written by and Copyright (C) 2001 the SourceForge + * Copyright : Written by and Copyright (C) 2001-2006 the SourceForge * Privoxy team. http://www.privoxy.org/ * * Based on the Internet Junkbuster originally written @@ -36,6 +36,10 @@ const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.44 2006/12/22 14:19:27 fabian * * Revisions : * $Log: cgisimple.c,v $ + * Revision 1.45 2006/12/28 18:16:41 fabiankeil + * Fixed gcc43 compiler warnings, zero out cgi_send_user_manual's + * body memory before using it, replaced sprintf calls with snprintf. + * * Revision 1.44 2006/12/22 14:19:27 fabiankeil * Removed checks whether or not AF_FILES have * data structures associated with them in cgi_show_status. @@ -1566,6 +1570,12 @@ static jb_err show_defines(struct map *exports) if (!err) err = map_conditional(exports, "FEATURE_TRUST", 0); #endif /* ndef FEATURE_TRUST */ +#ifdef FEATURE_ZLIB + if (!err) err = map_conditional(exports, "FEATURE_ZLIB", 1); +#else /* ifndef FEATURE_ZLIB */ + if (!err) err = map_conditional(exports, "FEATURE_ZLIB", 0); +#endif /* ndef FEATURE_ZLIB */ + #ifdef STATIC_PCRE if (!err) err = map_conditional(exports, "STATIC_PCRE", 1); #else /* ifndef STATIC_PCRE */ diff --git a/templates/show-status b/templates/show-status index b107038f..fc0d01a2 100644 --- a/templates/show-status +++ b/templates/show-status @@ -283,6 +283,12 @@ @if-FEATURE_TRUST-then@ Yes @else-not-FEATURE_TRUST@ No @endif-FEATURE_TRUST@ Allows the use of trust files. + + FEATURE_ZLIB + @if-FEATURE_ZLIB-then@ Yes @else-not-FEATURE_ZLIB@ No @endif-FEATURE_ZLIB@ + Allows to decompress gzip and zlib compressed documents for filtering. + Requires external zlib library and hasn't been tested on all platforms. + STATIC_PCRE @if-STATIC_PCRE-then@ Yes @else-not-STATIC_PCRE@ No @endif-STATIC_PCRE@