Removing unused local variable.
[privoxy.git] / config.h.win
1 /* config.h.win - Microsoft Visual C++ version of config.h  */
2 #ifndef _CONFIG_H
3 #define _CONFIG_H
4 /*********************************************************************
5  *
6  * File        :  $Source: /cvsroot/ijbswa/current/config.h.win,v $
7  *
8  * Purpose     :  This file should be the first thing included in every
9  *                .c file.  (Before even system headers).  It contains 
10  *                #define statements for various features.  It was
11  *                introduced because the compile command line started
12  *                getting ludicrously long with feature defines.
13  *
14  * Copyright   :  Written by and Copyright (C) 2001 the SourceForge
15  *                IJBSWA team.  http://ijbswa.sourceforge.net
16  *
17  *                Based on the Internet Junkbuster originally written
18  *                by and Copyright (C) 1997 Anonymous Coders and 
19  *                Junkbusters Corporation.  http://www.junkbusters.com
20  *
21  *                This program is free software; you can redistribute it 
22  *                and/or modify it under the terms of the GNU General
23  *                Public License as published by the Free Software
24  *                Foundation; either version 2 of the License, or (at
25  *                your option) any later version.
26  *
27  *                This program is distributed in the hope that it will
28  *                be useful, but WITHOUT ANY WARRANTY; without even the
29  *                implied warranty of MERCHANTABILITY or FITNESS FOR A
30  *                PARTICULAR PURPOSE.  See the GNU General Public
31  *                License for more details.
32  *
33  *                The GNU General Public License should be included with
34  *                this file.  If not, you can view it at
35  *                http://www.gnu.org/copyleft/gpl.html
36  *                or write to the Free Software Foundation, Inc., 59
37  *                Temple Place - Suite 330, Boston, MA  02111-1307, USA.
38  *
39  * Revisions   :
40  *    $Log: config.h.win,v $
41  *    Revision 1.3  2001/06/29 21:56:40  oes
42  *    Version -> 2.9.5
43  *
44  *    Revision 1.2  2001/06/29 13:26:27  oes
45  *    Introduced #define CODE_STATUS
46  *
47  *    Revision 1.1  2001/06/01 17:56:07  jongfoster
48  *    Removing generated files config.h and pcre/chartables.c
49  *    Now use a custom build step to copy config.h.win to config.h
50  *    New VC++ project pcre/vc_dftables.dsp will generate pcre/chartables.c
51  *    Also adding the new files list.[ch], actions.[ch] to the console build.
52  *
53  *    Revision 1.6  2001/05/29 09:50:24  jongfoster
54  *    Unified blocklist/imagelist/permissionslist.
55  *    File format is still under discussion, but the internal changes
56  *    are (mostly) done.
57  *
58  *    Also modified interceptor behaviour:
59  *    - We now intercept all URLs beginning with one of the following
60  *      prefixes (and *only* these prefixes):
61  *        * http://i.j.b/
62  *        * http://ijbswa.sf.net/config/
63  *        * http://ijbswa.sourceforge.net/config/
64  *    - New interceptors "home page" - go to http://i.j.b/ to see it.
65  *    - Internal changes so that intercepted and fast redirect pages
66  *      are not replaced with an image.
67  *    - Interceptors now have the option to send a binary page direct
68  *      to the client. (i.e. ijb-send-banner uses this)
69  *    - Implemented show-url-info interceptor.  (Which is why I needed
70  *      the above interceptors changes - a typical URL is
71  *      "http://i.j.b/show-url-info?url=www.somesite.com/banner.gif".
72  *      The previous mechanism would not have intercepted that, and
73  *      if it had been intercepted then it then it would have replaced
74  *      it with an image.)
75  *
76  *    Revision 1.5  2001/05/26 00:28:36  jongfoster
77  *    Automatic reloading of config file.
78  *    Removed obsolete SIGHUP support (Unix) and Reload menu option (Win32).
79  *    Most of the global variables have been moved to a new
80  *    struct configuration_spec, accessed through csp->config->globalname
81  *    Most of the globals remaining are used by the Win32 GUI.
82  *
83  *    Revision 1.4  2001/05/25 22:17:28  jongfoster
84  *    Resurrecting these files which are required for the MS Visual C++
85  *    build only.
86  *
87  *    Revision 1.2  2001/05/20 01:21:20  jongfoster
88  *    Version 2.9.4 checkin.
89  *    - Merged popupfile and cookiefile, and added control over PCRS
90  *      filtering, in new "permissionsfile".
91  *    - Implemented LOG_LEVEL_FATAL, so that if there is a configuration
92  *      file error you now get a message box (in the Win32 GUI) rather
93  *      than the program exiting with no explanation.
94  *    - Made killpopup use the PCRS MIME-type checking and HTTP-header
95  *      skipping.
96  *    - Removed tabs from "config"
97  *    - Moved duplicated url parsing code in "loaders.c" to a new funcition.
98  *    - Bumped up version number.
99  *
100  *    Revision 1.1.1.1  2001/05/15 13:58:49  oes
101  *    Initial import of version 2.9.3 source tree
102  *
103  *
104  *********************************************************************/
105 \f
106
107 /* Define to empty if the keyword does not work.  */
108 /* #undef const */
109
110 /* Define to `unsigned' if <sys/types.h> doesn't define.  */
111 /* #undef size_t */
112
113 /* Define if you have the ANSI C header files.  */
114 #define STDC_HEADERS 1
115
116 /*
117  * Version number - Major (X._._)
118  */
119 #define VERSION_MAJOR 2
120
121 /*
122  * Version number - Minor (_.X._)
123  */
124 #define VERSION_MINOR 9
125
126 /*
127  * Version number - Point (_._.X)
128  */
129 #define VERSION_POINT 5
130
131 /*
132  * Version number, as a string
133  */
134 #define VERSION "2.9.5"
135
136 /*
137  * Status of the code: alpha, beta or stable
138  */
139 #define CODE_STATUS "alpha"
140
141 /*
142  * Regular expression matching for URLs.  (Highly recommended).  If none of these 
143  * is defined then you can ony use prefix matching.
144  * Don't bother to change this here! Use configure instead.
145  */
146 /* #undef REGEX_GNU */
147 #define REGEX_PCRE 1
148
149 /* 
150  * Should pcre be statically built in instead of linkling with libpcre?
151  * (This is determined by configure depending on the availiability of
152  * libpcre and user preferences). The name is ugly, but pcre needs it.
153  * Don't bother to change this here! Use configure instead.
154  */
155 #define STATIC 1
156
157 /* 
158  * Should pcrs be statically built in instead of linkling with libpcrs?
159  * (This is determined by configure depending on the availiability of
160  * libpcrs and user preferences).
161  * Don't bother to change this here! Use configure instead.
162  */
163 #define STATIC_PCRS 1
164
165 /*
166  * Allow JunkBuster to be "disabled" so it is just a normal non-blocking
167  * non-anonymizing proxy.  This is useful if you're trying to access a
168  * blocked or broken site - just change the setting in the config file
169  * and send a SIGHUP (UN*X), or use the handy "Disable" menu option (Windows
170  * GUI).
171  */
172 #define TOGGLE 1
173
174 /*
175  * Enables arbitrary content modification regexps
176  */
177 #define PCRS 1
178
179 /*
180  * If a stream is compressed via gzip (Netscape specific I think), then
181  * it cannot be modified with Perl regexps.  This forces it to be 
182  * uncompressed.
183  */
184 #define DENY_GZIP 1
185
186 /*
187  * Enables statistics function.
188  */
189 #define STATISTICS 1
190
191 /*
192  * Bypass filtering for 1 page only
193  */
194 #define FORCE_LOAD 1
195
196 /*
197  * Locally redirect remote script-redirect URLs
198  */
199 #define FAST_REDIRECTS 1
200
201 /*
202  * Split the show-proxy-args page into a page for each config file.
203  */
204 #define SPLIT_PROXY_ARGS 1
205
206 /*
207  * Kills JavaScript popups - window.open, onunload, etc.
208  */
209 #define KILLPOPUPS 1
210
211 /*
212  * Support for webDAV - e.g. so Microsoft Outlook can access HotMail e-mail
213  */
214 #define WEBDAV 1
215
216 /*
217  * Detect image requests automatically for MSIE.  Will fall back to
218  * other image-detection methods (i.e. "+image" permission) for other
219  * browsers.
220  *
221  * You must also define IMAGE_BLOCKING to use this feature.
222  *
223  * It detects the following header pair as an image request:
224  *
225  * User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
226  * Accept: * / *
227  *
228  * And the following as a HTML request:
229  *
230  * User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
231  * Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, * / *
232  *
233  * And no, I haven't got that backwards - IE is being wierd.
234  *
235  * Known limitations: 
236  * 1) If you press shift-reload on a blocked HTML page, you get
237  *    the image "blocked" page, not the HTML "blocked" page.
238  * 2) Once an image "blocked" page has been sent, viewing it 
239  *    in it's own browser window *should* bring up the HTML
240  *    "blocked" page, but it doesn't.  You need to clear the 
241  *    browser cache to get the HTML version again.
242  *
243  * These limitations are due to IE making inconsistent choices
244  * about which "Accept:" header to send.
245  */
246 #define DETECT_MSIE_IMAGES 1
247
248 /*
249  * Allow blocking using images as well as HTML.
250  * If you do not define this then everything is blocked as HTML.
251  *
252  * Note that this is required if you want to use DETECT_MSIE_IMAGES.
253  */
254 #define IMAGE_BLOCKING 1
255
256 /*
257  * Allows the use of ACL files to control access to the proxy by IP address.
258  */
259 #define ACL_FILES 1
260
261 /*
262  * Allows the use of trust files.
263  */
264 #define TRUST_FILES 1
265
266 /*
267  * Allows the use of jar files to capture cookies.
268  */
269 #define JAR_FILES 1
270
271 /*
272  * Use PCRE rather than GNU Regex
273  */
274 #define PCRE 1
275
276 /* Define if you have the bcopy function.  */
277 #define HAVE_BCOPY 1
278
279 /* Define if you have the memmove function.  */
280 #define HAVE_MEMMOVE 1
281
282 /* Define if you have the strerror function.  */
283 #define HAVE_STRERROR 1
284
285 #endif /* _CONFIG_H */