X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=w32log.c;h=15a3383877abf95e6cd638dcc772b5d7dbe2bb23;hp=975c5e0f91d282027d2f36c1c34216db5a2a841b;hb=692f5cb1598fd8e5645e42e5d32387ab0ae69a22;hpb=c75584ebcc79f939fb4ec9c8f842cef6692640c7 diff --git a/w32log.c b/w32log.c index 975c5e0f..15a33838 100644 --- a/w32log.c +++ b/w32log.c @@ -1,7 +1,7 @@ -const char w32log_rcs[] = "$Id: w32log.c,v 1.1 2001/05/13 21:57:07 administrator Exp $"; +const char w32log_rcs[] = "$Id: w32log.c,v 1.3 2001/05/20 15:07:54 jongfoster Exp $"; /********************************************************************* * - * File : $Source: /home/administrator/cvs/ijb/w32log.c,v $ + * File : $Source: /cvsroot/ijbswa/current/w32log.c,v $ * * Purpose : Functions for creating and destroying the log window, * ouputting strings, processing messages and so on. @@ -32,6 +32,25 @@ const char w32log_rcs[] = "$Id: w32log.c,v 1.1 2001/05/13 21:57:07 administrator * * Revisions : * $Log: w32log.c,v $ + * Revision 1.3 2001/05/20 15:07:54 jongfoster + * File is now ignored if _WIN_CONSOLE is defined. + * + * Revision 1.2 2001/05/20 01:21:20 jongfoster + * Version 2.9.4 checkin. + * - Merged popupfile and cookiefile, and added control over PCRS + * filtering, in new "permissionsfile". + * - Implemented LOG_LEVEL_FATAL, so that if there is a configuration + * file error you now get a message box (in the Win32 GUI) rather + * than the program exiting with no explanation. + * - Made killpopup use the PCRS MIME-type checking and HTTP-header + * skipping. + * - Removed tabs from "config" + * - Moved duplicated url parsing code in "loaders.c" to a new funcition. + * - Bumped up version number. + * + * Revision 1.1.1.1 2001/05/15 13:59:07 oes + * Initial import of version 2.9.3 source tree + * * *********************************************************************/ @@ -63,6 +82,8 @@ const char cygwin_h_rcs[] = CYGWIN_H_VERSION; const char w32log_h_rcs[] = W32LOG_H_VERSION; +#ifndef _WIN_CONSOLE /* entire file */ + /* * Timers and the various durations */ @@ -1042,8 +1063,8 @@ void OnLogCommand(int nCommand) EditFile(blockfile); break; - case ID_TOOLS_EDITCOOKIES: - EditFile(cookiefile); + case ID_TOOLS_EDITPERMISSIONS: + EditFile(permissions_file); break; case ID_TOOLS_EDITFORWARD: @@ -1068,12 +1089,6 @@ void OnLogCommand(int nCommand) break; #endif -#ifdef KILLPOPUPS - case ID_TOOLS_EDITPOPUPS: - EditFile(popupfile); - break; -#endif /* def KILLPOPUPS */ - #ifdef TRUST_FILES case ID_TOOLS_EDITTRUST: EditFile(trustfile); @@ -1128,7 +1143,7 @@ void OnLogCommand(int nCommand) void OnLogInitMenu(HMENU hmenu) { /* Only enable editors if there is a file to edit */ - EnableMenuItem(hmenu, ID_TOOLS_EDITCOOKIES, MF_BYCOMMAND | (cookiefile ? MF_ENABLED : MF_GRAYED)); + EnableMenuItem(hmenu, ID_TOOLS_EDITPERMISSIONS, MF_BYCOMMAND | (permissions_file ? MF_ENABLED : MF_GRAYED)); EnableMenuItem(hmenu, ID_TOOLS_EDITBLOCKERS, MF_BYCOMMAND | (blockfile ? MF_ENABLED : MF_GRAYED)); EnableMenuItem(hmenu, ID_TOOLS_EDITFORWARD, MF_BYCOMMAND | (forwardfile ? MF_ENABLED : MF_GRAYED)); #ifdef ACL_FILES @@ -1137,9 +1152,6 @@ void OnLogInitMenu(HMENU hmenu) #ifdef USE_IMAGE_LIST EnableMenuItem(hmenu, ID_TOOLS_EDITIMAGE, MF_BYCOMMAND | (imagefile ? MF_ENABLED : MF_GRAYED)); #endif /* def USE_IMAGE_LIST */ -#ifdef KILLPOPUPS - EnableMenuItem(hmenu, ID_TOOLS_EDITPOPUPS, MF_BYCOMMAND | (popupfile ? MF_ENABLED : MF_GRAYED)); -#endif /* def KILLPOPUPS */ #ifdef PCRS EnableMenuItem(hmenu, ID_TOOLS_EDITPERLRE, MF_BYCOMMAND | (re_filterfile ? MF_ENABLED : MF_GRAYED)); #endif @@ -1313,6 +1325,7 @@ LRESULT CALLBACK LogWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPara } +#endif /* ndef _WIN_CONSOLE - entire file */ /* Local Variables: