/*
- * $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
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;
}
/*
- * $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
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;
}
/*
- * $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
HttpMsgParseState &operator++ (HttpMsgParseState &aState)
{
- aState = (HttpMsgParseState)(++(int)aState);
+ int tmp = (int)aState;
+ aState = (HttpMsgParseState)(++tmp);
return aState;
}
/*
- * $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/
inline icp_opcode & operator++ (icp_opcode & aCode)
{
- aCode = (icp_opcode) (++(int) aCode);
+ int tmp = (int) aCode;
+ aCode = (icp_opcode) (++tmp);
return aCode;
}
/*
- * $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
log_type &operator++ (log_type &aLogType)
{
- aLogType = (log_type)(++(int)aLogType);
+ int tmp = (int)aLogType;
+ aLogType = (log_type)(++tmp);
return aLogType;
}
#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);
/*
- * $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
#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
}
#endif /*SQUID_SNMP */
+#endif /* USE_DNSSERVERS */
/*
- * $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
#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 <windows.h>
#endif
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
}
}
+#ifndef _SQUID_MSWIN_
static void
idnsParseResolvConf(void)
{
return;
}
-#if defined(_SQUID_MSWIN_) || defined(_SQUID_CYGWIN_)
+#if defined(_SQUID_CYGWIN_)
setmode(fileno(fp), O_TEXT);
#endif
fclose(fp);
}
+#endif
+
#if defined(_SQUID_MSWIN_) || defined(_SQUID_CYGWIN_)
static void
idnsParseWIN32Registry(void)
}
#endif /*SQUID_SNMP */
+#endif /* USE_DNSSERVERS */
/*
- * $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
err_type &operator++ (err_type &anErr)
{
- anErr = (err_type)(++(int)anErr);
+ int tmp = (int)anErr;
+ anErr = (err_type)(++tmp);
return anErr;
}
/*
- * $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
mem_type &operator++ (mem_type &aMem)
{
- aMem = (mem_type)(++(int)aMem);
+ int tmp = (int)aMem;
+ aMem = (mem_type)(++tmp);
return aMem;
}
/*
- * $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
method_t &operator++ (method_t &aMethod)
{
- aMethod = (method_t)(++(int)aMethod);
+ int tmp = (int)aMethod;
+ aMethod = (method_t)(++tmp);
return aMethod;
}
/*
- * $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
void
UrnState::operator delete (void *address)
{
- cbdataFree ((UrnState *)address);
+ UrnState * tmp = (UrnState *)address;
+ cbdataFree (tmp);
}
UrnState::~UrnState ()