X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=showargs.c;h=b80b199353492d1b87ed1383bd1f70e541800541;hp=ea83855bebb872c8eac7d4d598fd749ce5b078f7;hb=18443d8f7bc4ac6147ad0cc2e84878fa074502b6;hpb=ad0fac0c7dd70bb15f97799f885459c6b0cf2d51 diff --git a/showargs.c b/showargs.c index ea83855b..b80b1993 100644 --- a/showargs.c +++ b/showargs.c @@ -1,4 +1,4 @@ -const char showargs_rcs[] = "$Id: showargs.c,v 1.19 2001/07/13 14:11:36 oes Exp $"; +const char showargs_rcs[] = "$Id: showargs.c,v 1.23 2001/08/02 22:03:23 jongfoster Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/showargs.c,v $ @@ -34,6 +34,21 @@ const char showargs_rcs[] = "$Id: showargs.c,v 1.19 2001/07/13 14:11:36 oes Exp * * Revisions : * $Log: showargs.c,v $ + * Revision 1.23 2001/08/02 22:03:23 jongfoster + * Fixing an unterminated character constant. + * + * Revision 1.22 2001/08/01 00:20:57 jongfoster + * Changing show_defines so that it doesn't contain any HTML. + * + * Revision 1.21 2001/07/30 22:08:36 jongfoster + * Tidying up #defines: + * - All feature #defines are now of the form FEATURE_xxx + * - Permanently turned off WIN_GUI_EDIT + * - Permanently turned on WEBDAV and SPLIT_PROXY_ARGS + * + * Revision 1.20 2001/07/18 17:27:22 oes + * Adapted to new #defines + * * Revision 1.19 2001/07/13 14:11:36 oes * - Included SHOW_RCS for deanimate.* * - Removed all #ifdef PCRS @@ -197,6 +212,8 @@ const char showargs_rcs[] = "$Id: showargs.c,v 1.19 2001/07/13 14:11:36 oes Exp #include "errlog.h" #include "miscutil.h" #include "gateway.h" +#include "cgi.h" +#include "list.h" const char showargs_h_rcs[] = SHOWARGS_H_VERSION; @@ -311,10 +328,10 @@ char *show_rcs(void) SHOW_RCS(jbsockets_rcs) SHOW_RCS(jcc_h_rcs) SHOW_RCS(jcc_rcs) -#ifdef KILLPOPUPS +#ifdef FEATURE_KILL_POPUPS SHOW_RCS(killpopup_h_rcs) SHOW_RCS(killpopup_rcs) -#endif /* def KILLPOPUPS */ +#endif /* def FEATURE_KILL_POPUPS */ SHOW_RCS(list_h_rcs) SHOW_RCS(list_rcs) SHOW_RCS(loadcfg_h_rcs) @@ -337,8 +354,6 @@ char *show_rcs(void) SHOW_RCS(w32log_h_rcs) SHOW_RCS(w32log_rcs) SHOW_RCS(w32res_h_rcs) - SHOW_RCS(w32rulesdlg_h_rcs) - SHOW_RCS(w32rulesdlg_rcs) SHOW_RCS(w32taskbar_h_rcs) SHOW_RCS(w32taskbar_rcs) #endif /* ndef _WIN_CONSOLE */ @@ -363,119 +378,106 @@ char *show_rcs(void) * Returns : string * *********************************************************************/ -char *show_defines(void) +void show_defines(struct map *exports) { - char *b = NULL; + +#ifdef FEATURE_ACL + map_conditional(exports, "FEATURE_ACL", 1); +#else /* ifndef FEATURE_ACL */ + map_conditional(exports, "FEATURE_ACL", 0); +#endif /* ndef FEATURE_ACL */ + +#ifdef FEATURE_COOKIE_JAR + map_conditional(exports, "FEATURE_COOKIE_JAR", 1); +#else /* ifndef FEATURE_COOKIE_JAR */ + map_conditional(exports, "FEATURE_COOKIE_JAR", 0); +#endif /* ndef FEATURE_COOKIE_JAR */ + +#ifdef FEATURE_DENY_GZIP + map_conditional(exports, "FEATURE_DENY_GZIP", 1); +#else /* ifndef FEATURE_DENY_GZIP */ + map_conditional(exports, "FEATURE_DENY_GZIP", 0); +#endif /* ndef FEATURE_DENY_GZIP */ + +#ifdef FEATURE_FAST_REDIRECTS + map_conditional(exports, "FEATURE_FAST_REDIRECTS", 1); +#else /* ifndef FEATURE_FAST_REDIRECTS */ + map_conditional(exports, "FEATURE_FAST_REDIRECTS", 0); +#endif /* ndef FEATURE_FAST_REDIRECTS */ + +#ifdef FEATURE_FORCE_LOAD + map_conditional(exports, "FEATURE_FORCE_LOAD", 1); +#else /* ifndef FEATURE_FORCE_LOAD */ + map_conditional(exports, "FEATURE_FORCE_LOAD", 0); +#endif /* ndef FEATURE_FORCE_LOAD */ + +#ifdef FEATURE_IMAGE_BLOCKING + map_conditional(exports, "FEATURE_IMAGE_BLOCKING", 1); +#else /* ifndef FEATURE_IMAGE_BLOCKING */ + map_conditional(exports, "FEATURE_IMAGE_BLOCKING", 0); +#endif /* ndef FEATURE_IMAGE_BLOCKING */ + +#ifdef FEATURE_IMAGE_DETECT_MSIE + map_conditional(exports, "FEATURE_IMAGE_DETECT_MSIE", 1); +#else /* ifndef FEATURE_IMAGE_DETECT_MSIE */ + map_conditional(exports, "FEATURE_IMAGE_DETECT_MSIE", 0); +#endif /* ndef FEATURE_IMAGE_DETECT_MSIE */ + +#ifdef FEATURE_KILL_POPUPS + map_conditional(exports, "FEATURE_KILL_POPUPS", 1); +#else /* ifndef FEATURE_KILL_POPUPS */ + map_conditional(exports, "FEATURE_KILL_POPUPS", 0); +#endif /* ndef FEATURE_KILL_POPUPS */ #ifdef FEATURE_PTHREAD - b = strsav(b, "
#define FEATURE_PTHREAD
- Support POSIX threads.#undef FEATURE_PTHREAD
- No support POSIX threads.#define REGEX_GNU
- Support for GNU style regular expressions in the path specs.#define REGEX_PCRE
- Support for pcre style regular expressions in the path specs.#undef REGEX
- No support for regular expressions in the path specs.#define STATIC_PCRE
- Using static built-in pcre rather than libpcre.#undef STATIC_PCRE
- Using libpcre rather than static built-in pcre.#define STATIC_PCRS
- Using static built-in pcrs rather than libpcrs.#undef STATIC_PCRS
- Using libpcrs rather than static built-in pcrs.#define TOGGLE
- Allow JunkBuster to be \"disabled\" so it is just a normal non-blocking non-anonymizing proxy.#undef TOGGLE
- Do not allow JunkBuster to be \"disabled\" so it is just a normal non-blocking non-anonymizing proxy.#define FORCE_LOAD
- Enables bypassing filtering for a single page using the prefix \"" FORCE_PREFIX "\".#undef FORCE_LOAD
- Disables bypassing filtering for a single page.#define DENY_GZIP
- Prevents requests from being compressed - required for PCRS on some sites.#undef DENY_GZIP
- Allows requests to be compressed if the browser and server support it.#define STATISTICS
- Enables statistics function.#undef STATISTICS
- Disables statistics function.#define SPLIT_PROXY_ARGS
- Split this page up by placing the configuration files on separate pages.#undef SPLIT_PROXY_ARGS
- This page contains the text of the configuration files, they are not split onto separate pages.#define KILLPOPUPS
- Enables killing JavaScript popups.#undef KILLPOPUPS
- Disables killing JavaScript popups.#define WEBDAV
- Enables support for webDAV - e.g. stops Microsoft Outlook from accessing HotMail e-mail.#undef WEBDAV
- Disables support for webDAV - e.g. so Microsoft Outlook can access HotMail e-mail.#define DETECT_MSIE_IMAGES
- Enables detecting image requests automatically for MSIE.#undef DETECT_MSIE_IMAGES
- Disables detecting image requests automatically for MSIE.#define IMAGE_BLOCKING
- Enables sending \"blocked\" images instead of HTML.#undef IMAGE_BLOCKING
- Disables sending \"blocked\" images instead of HTML.#define ACL_FILES
- Enables the use of ACL files to control access to the proxy by IP address.#undef ACL_FILES
- Disables the use of ACL files to control access to the proxy by IP address.#define TRUST_FILES
- Enables the use of trust files.#undef TRUST_FILES
- Disables the use of trust files.#define JAR_FILES
- Enables the use of jar files to capture cookies.#undef JAR_FILES
- Disables the use of jar files to capture cookies.#define FAST_REDIRECTS
- Enables intercepting remote script redirects.#undef FAST_REDIRECTS
- Disables intercepting remote script redirects.