]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Summary: MSVC compatability fixes from Guido.
authorrobertc <>
Wed, 16 Jul 2003 05:12:02 +0000 (05:12 +0000)
committerrobertc <>
Wed, 16 Jul 2003 05:12:02 +0000 (05:12 +0000)
Keywords:

Remove pointer-to-type constructors.
More consistency between struct/class defn's and use.

src/ACLIP.cc
src/ESICustomParser.cc
src/ESIExcept.h
src/SwapDir.h
src/fs/ufs/store_io_ufs.cc

index 2778a13fd25990bbe4b13eb9ce4c1c30c552e194..e5b7472e5fb2f9a546f40d03b4948e4df2e3fa76 100644 (file)
@@ -368,7 +368,7 @@ ACLIP::~ACLIP()
 wordlist *
 ACLIP::dump() const
 {
-    wordlist *w (NULL);
+    wordlist *w = NULL;
     data->walk (DumpIpListWalkee, &w);
     return w;
 }
index 6300c45230714187be56f7170efa344359a86d50..8f0f2bda037b353fa713561928bb5b33b2808393 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ESICustomParser.cc,v 1.2 2003/07/14 14:15:56 robertc Exp $
+ * $Id: ESICustomParser.cc,v 1.3 2003/07/15 23:12:02 robertc Exp $
  *
  * DEBUG: section 86    ESI processing
  * AUTHOR: Robert Collins
@@ -79,7 +79,7 @@ char const *
 ESICustomParser::findTag(char const *buffer, size_t bufferLength)
 {
     size_t myOffset (0);
-    void *resulttype (NULL);
+    void *resulttype = NULL;
 
     while (myOffset < bufferLength &&
             (resulttype =GetTrie()->findPrefix (buffer + myOffset, bufferLength - myOffset)) == NULL)
@@ -109,7 +109,7 @@ ESICustomParser::parse(char const *dataToParse, size_t const lengthOfData, bool
     size_t openESITags (0);
     char const *currentPos = content.buf();
     size_t remainingCount = content.size();
-    char const *tag (NULL);
+    char const *tag = NULL;
 
     while ((tag = findTag(currentPos, remainingCount))) {
         if (tag - currentPos)
index 4fd7fdc1577ce3272f097e99bba8327364dc8277..b96d3e11c532d3fb472dbb0dc4292881247f9437 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: ESIExcept.h,v 1.1 2003/03/10 04:56:35 robertc Exp $
+ * $Id: ESIExcept.h,v 1.2 2003/07/15 23:12:02 robertc Exp $
  *
  * DEBUG: section 86    ESI processing
  * AUTHOR: Robert Collins
 
 /* esiExcept */
 
-struct esiExcept : public esiSequence
+class esiExcept : public esiSequence
 {
+
+public:
     //    void *operator new (size_t byteCount);
     //    void operator delete (void *address);
     void deleteSelf() const;
index 7c78da611050325b83e133243a52f4979a1f41ba..b5e67018f7c060a0a544caec8ee74571381ce725 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: SwapDir.h,v 1.4 2003/03/06 06:21:37 robertc Exp $
+ * $Id: SwapDir.h,v 1.5 2003/07/15 23:12:02 robertc Exp $
  *
  *
  * SQUID Web Proxy Cache          http://www.squid-cache.org/
@@ -42,7 +42,7 @@ typedef void STFSSTARTUP(void);
 typedef void STFSSHUTDOWN(void);
 typedef SwapDir *STFSNEW(void);
 
-struct SwapDir
+class SwapDir
 {
 
 public:
index d450041158739ebbcf48ae02d284e2b7afa80cec..9923d22d1e1791919e0547b525fd249d2a302e9f 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_io_ufs.cc,v 1.18 2003/03/04 01:40:57 robertc Exp $
+ * $Id: store_io_ufs.cc,v 1.19 2003/07/15 23:12:02 robertc Exp $
  *
  * DEBUG: section 79    Storage Manager UFS Interface
  * AUTHOR: Duane Wessels
@@ -432,9 +432,9 @@ UFSStoreState::~UFSStoreState()
         delete qr;
     }
 
-    struct _queued_write *qw;
+    _queued_write *qw;
 
-    while ((qw = (struct _queued_write *)linklistShift(&pending_writes))) {
+    while ((qw = (_queued_write *)linklistShift(&pending_writes))) {
         if (qw->free_func)
             qw->free_func(const_cast<char *>(qw->buf));
         delete qw;
@@ -532,7 +532,7 @@ UFSStoreState::queueWrite(char const *buf, size_t size, off_t offset, FREE * fre
 {
     debug(79, 3) ("UFSStoreState::queueWrite: queuing write\n");
 
-    struct _queued_write *q;
+    _queued_write *q;
     q = new _queued_write;
     q->buf = buf;
     q->size = size;