From: robertc <> Date: Sun, 9 Mar 2003 19:29:40 +0000 (+0000) Subject: Summary: Merge in 6th set of windows changes from Guido X-Git-Tag: SQUID_3_0_PRE1~273 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f1ae50a1ccdd776b607dcdbe558e0db6fbf21a1;p=thirdparty%2Fsquid.git Summary: Merge in 6th set of windows changes from Guido Keywords: Merge in 6th set of windows changes from Guido --- diff --git a/src/HttpHdrCc.cc b/src/HttpHdrCc.cc index f1300e76f3..85830ba4a9 100644 --- a/src/HttpHdrCc.cc +++ b/src/HttpHdrCc.cc @@ -1,6 +1,6 @@ /* - * $Id: HttpHdrCc.cc,v 1.25 2003/02/21 22:50:05 robertc Exp $ + * $Id: HttpHdrCc.cc,v 1.26 2003/03/09 12:29:40 robertc Exp $ * * DEBUG: section 65 HTTP Cache Control Header * AUTHOR: Alex Rousskov @@ -59,7 +59,8 @@ HttpHeaderFieldInfo *CcFieldsInfo = NULL; http_hdr_cc_type &operator++ (http_hdr_cc_type &aHeader) { - aHeader = (http_hdr_cc_type)(++(int)aHeader); + int tmp = (int)aHeader; + aHeader = (http_hdr_cc_type)(++tmp); return aHeader; } diff --git a/src/HttpHeader.cc b/src/HttpHeader.cc index 20b678f24b..d7a518e862 100644 --- a/src/HttpHeader.cc +++ b/src/HttpHeader.cc @@ -1,6 +1,6 @@ /* - * $Id: HttpHeader.cc,v 1.87 2003/03/06 11:51:55 robertc Exp $ + * $Id: HttpHeader.cc,v 1.88 2003/03/09 12:29:40 robertc Exp $ * * DEBUG: section 55 HTTP Header * AUTHOR: Alex Rousskov @@ -141,7 +141,8 @@ static HttpHeaderFieldInfo *Headers = NULL; http_hdr_type &operator++ (http_hdr_type &aHeader) { - aHeader = (http_hdr_type)(++(int)aHeader); + int tmp = (int)aHeader; + aHeader = (http_hdr_type)(++tmp); return aHeader; } diff --git a/src/HttpReply.cc b/src/HttpReply.cc index 2e1629c5c9..239192b974 100644 --- a/src/HttpReply.cc +++ b/src/HttpReply.cc @@ -1,6 +1,6 @@ /* - * $Id: HttpReply.cc,v 1.56 2003/03/06 11:51:55 robertc Exp $ + * $Id: HttpReply.cc,v 1.57 2003/03/09 12:29:40 robertc Exp $ * * DEBUG: section 58 HTTP Reply (Response) * AUTHOR: Alex Rousskov @@ -53,7 +53,8 @@ static http_hdr_type Denied304HeadersArr[] = HttpMsgParseState &operator++ (HttpMsgParseState &aState) { - aState = (HttpMsgParseState)(++(int)aState); + int tmp = (int)aState; + aState = (HttpMsgParseState)(++tmp); return aState; } diff --git a/src/ICP.h b/src/ICP.h index 088e43b317..c41d1da4a4 100644 --- a/src/ICP.h +++ b/src/ICP.h @@ -1,6 +1,6 @@ /* - * $Id: ICP.h,v 1.4 2003/02/21 22:50:05 robertc Exp $ + * $Id: ICP.h,v 1.5 2003/03/09 12:29:40 robertc Exp $ * * * SQUID Web Proxy Cache http://www.squid-cache.org/ @@ -65,7 +65,8 @@ struct _icp_common_t inline icp_opcode & operator++ (icp_opcode & aCode) { - aCode = (icp_opcode) (++(int) aCode); + int tmp = (int) aCode; + aCode = (icp_opcode) (++tmp); return aCode; } diff --git a/src/client_db.cc b/src/client_db.cc index 80151b2112..8debe29379 100644 --- a/src/client_db.cc +++ b/src/client_db.cc @@ -1,6 +1,6 @@ /* - * $Id: client_db.cc,v 1.57 2003/02/21 22:50:07 robertc Exp $ + * $Id: client_db.cc,v 1.58 2003/03/09 12:29:40 robertc Exp $ * * DEBUG: section 0 Client Database * AUTHOR: Duane Wessels @@ -201,7 +201,8 @@ clientdbCutoffDenied(struct in_addr addr) log_type &operator++ (log_type &aLogType) { - aLogType = (log_type)(++(int)aLogType); + int tmp = (int)aLogType; + aLogType = (log_type)(++tmp); return aLogType; } diff --git a/src/comm.h b/src/comm.h index dab6c18c8b..1f263b84ac 100644 --- a/src/comm.h +++ b/src/comm.h @@ -4,7 +4,7 @@ #include "StoreIOBuffer.h" typedef void IOFCB(int fd, StoreIOBuffer recievedData, comm_err_t flag, int xerrno, void *data); -typedef void IOWCB(int fd, char *data, size_t len, comm_err_t flag, int xerrno, void *data); +typedef void IOWCB(int fd, char *buffer, size_t len, comm_err_t flag, int xerrno, void *data); /* fill sb with up to length data from fd */ extern void comm_fill_immediate(int fd, StoreIOBuffer sb, IOFCB *callback, void *data); diff --git a/src/dns.cc b/src/dns.cc index a6ba23cba4..40fb68321e 100644 --- a/src/dns.cc +++ b/src/dns.cc @@ -1,6 +1,6 @@ /* - * $Id: dns.cc,v 1.91 2003/02/21 22:50:08 robertc Exp $ + * $Id: dns.cc,v 1.92 2003/03/09 12:29:41 robertc Exp $ * * DEBUG: section 34 Dnsserver interface * AUTHOR: Harvest Derived @@ -36,6 +36,11 @@ #include "squid.h" #include "Store.h" +/* MS VisualStudio Projects are monolitich, so we need the following + #if to include the external DNS code in compile process when + using external DNS. + */ +#if USE_DNSSERVERS static helper *dnsservers = NULL; static void @@ -167,3 +172,4 @@ snmp_netDnsFn(variable_list * Var, snint * ErrP) } #endif /*SQUID_SNMP */ +#endif /* USE_DNSSERVERS */ diff --git a/src/dns_internal.cc b/src/dns_internal.cc index 4f261f89bf..2b44ea2cd8 100644 --- a/src/dns_internal.cc +++ b/src/dns_internal.cc @@ -1,6 +1,6 @@ /* - * $Id: dns_internal.cc,v 1.56 2003/03/02 09:59:32 hno Exp $ + * $Id: dns_internal.cc,v 1.57 2003/03/09 12:29:41 robertc Exp $ * * DEBUG: section 78 DNS lookups; interacts with lib/rfc1035.c * AUTHOR: Duane Wessels @@ -37,6 +37,11 @@ #include "Store.h" #include "comm.h" +/* MS VisualStudio Projects are monolitich, so we need the following + #ifndef to exclude the internal DNS code from compile process when + using external DNS process. + */ +#ifndef USE_DNSSERVERS #if defined(_SQUID_MSWIN_) || defined(_SQUID_CYGWIN_) #include #endif @@ -91,7 +96,9 @@ static OBJH idnsStats; static void idnsAddNameserver(const char *buf); static void idnsFreeNameservers(void); static void idnsParseNameservers(void); +#ifndef _SQUID_MSWIN_ static void idnsParseResolvConf(void); +#endif #if defined(_SQUID_MSWIN_) || defined(_SQUID_CYGWIN_) static void idnsParseWIN32Registry(void); #endif @@ -167,6 +174,7 @@ idnsParseNameservers(void) } } +#ifndef _SQUID_MSWIN_ static void idnsParseResolvConf(void) { @@ -180,7 +188,7 @@ idnsParseResolvConf(void) return; } -#if defined(_SQUID_MSWIN_) || defined(_SQUID_CYGWIN_) +#if defined(_SQUID_CYGWIN_) setmode(fileno(fp), O_TEXT); #endif @@ -207,6 +215,8 @@ idnsParseResolvConf(void) fclose(fp); } +#endif + #if defined(_SQUID_MSWIN_) || defined(_SQUID_CYGWIN_) static void idnsParseWIN32Registry(void) @@ -917,3 +927,4 @@ snmp_netIdnsFn(variable_list * Var, snint * ErrP) } #endif /*SQUID_SNMP */ +#endif /* USE_DNSSERVERS */ diff --git a/src/errorpage.cc b/src/errorpage.cc index a52a983c7d..33b2304601 100644 --- a/src/errorpage.cc +++ b/src/errorpage.cc @@ -1,6 +1,6 @@ /* - * $Id: errorpage.cc,v 1.186 2003/02/25 02:17:54 hno Exp $ + * $Id: errorpage.cc,v 1.187 2003/03/09 12:29:41 robertc Exp $ * * DEBUG: section 4 Error Generation * AUTHOR: Duane Wessels @@ -109,7 +109,8 @@ static CWCB errorSendComplete; err_type &operator++ (err_type &anErr) { - anErr = (err_type)(++(int)anErr); + int tmp = (int)anErr; + anErr = (err_type)(++tmp); return anErr; } diff --git a/src/mem.cc b/src/mem.cc index a3a8eb45da..7f5dfd3c0e 100644 --- a/src/mem.cc +++ b/src/mem.cc @@ -1,6 +1,6 @@ /* - * $Id: mem.cc,v 1.76 2003/03/06 11:51:56 robertc Exp $ + * $Id: mem.cc,v 1.77 2003/03/09 12:29:41 robertc Exp $ * * DEBUG: section 13 High Level Memory Pool Management * AUTHOR: Harvest Derived @@ -430,7 +430,8 @@ Mem::Init(void) mem_type &operator++ (mem_type &aMem) { - aMem = (mem_type)(++(int)aMem); + int tmp = (int)aMem; + aMem = (mem_type)(++tmp); return aMem; } diff --git a/src/url.cc b/src/url.cc index cf9833f504..22b1840b71 100644 --- a/src/url.cc +++ b/src/url.cc @@ -1,6 +1,6 @@ /* - * $Id: url.cc,v 1.143 2003/02/21 22:50:12 robertc Exp $ + * $Id: url.cc,v 1.144 2003/03/09 12:29:41 robertc Exp $ * * DEBUG: section 23 URL Parsing * AUTHOR: Duane Wessels @@ -184,7 +184,8 @@ urlInitialize(void) method_t &operator++ (method_t &aMethod) { - aMethod = (method_t)(++(int)aMethod); + int tmp = (int)aMethod; + aMethod = (method_t)(++tmp); return aMethod; } diff --git a/src/urn.cc b/src/urn.cc index f70723cfac..abed6cb776 100644 --- a/src/urn.cc +++ b/src/urn.cc @@ -1,6 +1,6 @@ /* - * $Id: urn.cc,v 1.83 2003/03/06 06:21:38 robertc Exp $ + * $Id: urn.cc,v 1.84 2003/03/09 12:29:41 robertc Exp $ * * DEBUG: section 52 URN Parsing * AUTHOR: Kostas Anagnostakis @@ -114,7 +114,8 @@ UrnState::operator new (size_t byteCount) void UrnState::operator delete (void *address) { - cbdataFree ((UrnState *)address); + UrnState * tmp = (UrnState *)address; + cbdataFree (tmp); } UrnState::~UrnState ()