]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
moved tools.cc-related prototypes to tools.h
authorFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 20 Aug 2012 14:08:35 +0000 (16:08 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 20 Aug 2012 14:08:35 +0000 (16:08 +0200)
20 files changed:
src/Makefile.am
src/Server.cc
src/cache_cf.cc
src/client_db.cc
src/client_side.cc
src/client_side_reply.cc
src/errorpage.cc
src/external_acl.cc
src/ftp.cc
src/gopher.cc
src/http.cc
src/icp_v2.cc
src/internal.cc
src/main.cc
src/peer_digest.cc
src/protos.h
src/send-announce.cc
src/tools.h [new file with mode: 0644]
src/tunnel.cc
src/whois.cc

index b4f54fe018ec7bc83cf86a7c8a7d2bf333169f97..5917c5f6eadce85c5c1245cf9d647f2cdfa44153 100644 (file)
@@ -496,6 +496,7 @@ squid_SOURCES = \
        MemStore.h \
        time.cc \
        TimeOrTag.h \
+       tools.h \
        tools.cc \
        tunnel.cc \
        typedefs.h \
@@ -1116,6 +1117,7 @@ tests_testHttpReply_SOURCES=\
        tests/stub_StatHist.cc \
        tests/stub_store.cc \
        tests/stub_store_stats.cc \
+       tools.h \
        tests/stub_tools.cc \
        tests/stub_HttpRequest.cc \
        tests/testHttpReply.cc \
@@ -1224,6 +1226,7 @@ tests_testACLMaxUserIP_SOURCES= \
        tests/stub_store_rebuild.cc \
        tests/stub_store_stats.cc \
        tests/stub_store_swapout.cc \
+       tools.h \
        tests/stub_tools.cc \
        tests/stub_cache_manager.cc \
        tests/stub_UdsOp.cc \
@@ -1429,6 +1432,7 @@ tests_testCacheManager_SOURCES = \
        StoreMetaURL.cc \
        StoreMetaVary.cc \
        StoreSwapLogData.cc \
+       tools.h \
        tools.cc \
        tunnel.cc \
        SwapDir.cc \
@@ -1582,6 +1586,7 @@ tests_testDiskIO_SOURCES = \
        tests/stub_store_client.cc \
        tests/stub_store_stats.cc \
        tests/stub_store_rebuild.cc \
+       tools.h \
        tests/stub_tools.cc \
        tests/stub_UdsOp.cc \
        tests/testDiskIO.cc \
@@ -1789,6 +1794,7 @@ tests_testEvent_SOURCES = \
        tests/stub_ipc_Forwarder.cc \
        tests/stub_store_stats.cc \
        time.cc \
+       tools.h \
        tools.cc \
        tunnel.cc \
        MemStore.cc \
@@ -1993,6 +1999,7 @@ tests_testEventLoop_SOURCES = \
        tests/stub_ipc_Forwarder.cc \
        tests/stub_store_stats.cc \
        time.cc \
+       tools.h \
        tools.cc \
        tunnel.cc \
        MemStore.cc \
@@ -2193,6 +2200,7 @@ tests_test_http_range_SOURCES = \
        tests/stub_MemStore.cc \
        tests/stub_store_stats.cc \
        time.cc \
+       tools.h \
        tools.cc \
        tunnel.cc \
        $(UNLINKDSOURCE) \
@@ -2263,6 +2271,7 @@ tests_testHttpParser_SOURCES = \
        tests/stub_debug.cc \
        tests/stub_event.cc \
        tests/stub_HelperChildConfig.cc \
+       tools.h \
        tests/stub_tools.cc \
        tests/testHttpParser.cc \
        tests/testHttpParser.h \
@@ -2427,6 +2436,7 @@ tests_testHttpRequest_SOURCES = \
        StoreMetaVary.cc \
        StoreSwapLogData.cc \
        event.cc \
+       tools.h \
        tools.cc \
        tunnel.cc \
        SwapDir.cc \
@@ -2572,6 +2582,7 @@ tests_testStore_SOURCES= \
        tests/stub_store_stats.cc \
        tests/stub_store_rebuild.cc \
        tests/stub_store_swapout.cc \
+       tools.h \
        tests/stub_tools.cc \
        tests/stub_UdsOp.cc \
        tests/testMain.cc \
@@ -2644,6 +2655,7 @@ tests_testString_SOURCES = \
        tests/stub_cache_manager.cc \
        tests/stub_debug.cc \
        tests/stub_HelperChildConfig.cc \
+       tools.h \
        tests/stub_tools.cc \
        time.cc \
        wordlist.h \
@@ -2780,6 +2792,7 @@ tests_testUfs_SOURCES = \
        refresh.h \
        refresh.cc \
        tests/stub_store_client.cc \
+       tools.h \
        tests/stub_tools.cc \
        tests/testStoreSupport.cc \
        tests/testStoreSupport.h \
@@ -2919,6 +2932,7 @@ tests_testRock_SOURCES = \
        tests/stub_store_client.cc \
        tests/stub_store_rebuild.cc \
        tests/stub_store_stats.cc \
+       tools.h \
        tests/stub_tools.cc \
        time.cc \
        url.cc \
@@ -3058,6 +3072,7 @@ tests_testCoss_SOURCES = \
        tests/stub_Port.cc \
        tests/stub_store_client.cc \
        tests/stub_store_stats.cc \
+       tools.h \
        tests/stub_tools.cc \
        tests/stub_UdsOp.cc \
        tests/testStoreSupport.cc \
@@ -3196,6 +3211,7 @@ tests_testNull_SOURCES = \
        refresh.cc \
        tests/stub_store_client.cc \
        tests/stub_store_stats.cc \
+       tools.h \
        tests/stub_tools.cc \
        tests/testStoreSupport.cc \
        tests/testStoreSupport.h \
@@ -3388,6 +3404,7 @@ tests_testURL_SOURCES = \
        tests/testURLScheme.h \
        tests/testMain.cc \
        time.cc \
+       tools.h \
        tools.cc \
        tunnel.cc \
        url.cc \
@@ -3456,6 +3473,7 @@ tests_testConfigParser_SOURCES = \
        tests/stub_cache_manager.cc \
        tests/stub_debug.cc \
        tests/stub_HelperChildConfig.cc \
+       tools.h \
        tests/stub_tools.cc \
        time.cc \
        wordlist.h \
@@ -3494,6 +3512,7 @@ tests_testStatHist_SOURCES = \
        tests/stub_stmem.cc \
        tests/stub_store.cc \
        tests/stub_store_stats.cc \
+       tools.h \
        tests/stub_tools.cc \
        tests/testMain.cc \
        tests/testStatHist.cc \
index 2c0047826247d177ef7b2c374af886c8ead25f50..77f584437cf2812b510b72be03a5b905dd9b5df4 100644 (file)
@@ -47,6 +47,7 @@
 #include "SquidTime.h"
 #include "StatCounters.h"
 #include "Store.h"
+#include "tools.h"
 
 #if USE_ADAPTATION
 #include "adaptation/AccessCheck.h"
index 7d1dfc89595f020bcb27fd6a9ea777746b57c02a..1b72f39b1c12bd48c2ff306bc296677406d514c1 100644 (file)
@@ -64,6 +64,7 @@
 #include "SwapDir.h"
 #include "wordlist.h"
 #include "neighbors.h"
+#include "tools.h"
 /* wccp2 has its own conditional definitions */
 #include "wccp2.h"
 #if USE_ADAPTATION
index 5a92bab76f7242cb9f375625ad430ded1c945fd9..55bef76cd0ecab7924667b2c0ec8060727e7d836 100644 (file)
@@ -45,7 +45,7 @@
 #include "SquidTime.h"
 #include "StatCounters.h"
 #include "Store.h"
-
+#include "tools.h"
 
 static hash_table *client_table = NULL;
 
index bcb7f6d89f7229fceebf949ca7330e9065c316a6..e0cf5b262f9090314161686dae13a5d9d5e74e38 100644 (file)
 #include "StatHist.h"
 #include "Store.h"
 #include "TimeOrTag.h"
+#include "tools.h"
 
 #if USE_AUTH
 #include "auth/UserRequest.h"
index 440492c3a59db41fd89175675f3959f181d94f7b..772e7f309334cd8dbec13b14e8cb8bc7e0487c9a 100644 (file)
@@ -56,6 +56,7 @@
 #include "SquidTime.h"
 #include "Store.h"
 #include "StoreClient.h"
+#include "tools.h"
 #if USE_AUTH
 #include "auth/UserRequest.h"
 #endif
index e37e51063fa802b160b517111de546a149f32e46..c9c7f7a5fdd4d1c53b84ccc874bec97a0a5e3b88 100644 (file)
 #include "comm/Write.h"
 #include "err_detail_type.h"
 #include "errorpage.h"
-#if USE_AUTH
-#include "auth/UserRequest.h"
-#endif
-#include "SquidTime.h"
-#if USE_SSL
-#include "ssl/ErrorDetailManager.h"
-#endif
 #include "Store.h"
 #include "html_quote.h"
 #include "HttpReply.h"
 #include "protos.h"
 #include "rfc1738.h"
 #include "URLScheme.h"
+#include "tools.h"
 #include "wordlist.h"
+#if USE_AUTH
+#include "auth/UserRequest.h"
+#endif
+#include "SquidTime.h"
+#if USE_SSL
+#include "ssl/ErrorDetailManager.h"
+#endif
 
 /**
  \defgroup ErrorPageInternal Error Page Internals
index 6eef5a2216c968c557d27869b76b6af79b984fba..0959830eff28a197b903cf03e3ae8bb9d841e942 100644 (file)
@@ -59,6 +59,7 @@
 #include "SquidTime.h"
 #include "Store.h"
 #include "URLScheme.h"
+#include "tools.h"
 #include "wordlist.h"
 #if USE_SSL
 #include "ssl/support.h"
index 7698a9f60f94954826bfeded9de26e75193f37e7..f5cea251787b3af810936da638a9ba78229246bb 100644 (file)
@@ -57,6 +57,7 @@
 #include "SquidTime.h"
 #include "StatCounters.h"
 #include "Store.h"
+#include "tools.h"
 #include "URLScheme.h"
 #include "wordlist.h"
 
index 648268b868cd35b561c6e511c6096b54b28e9f72..bda65cc03cf0a5ea3d972f7a46ccb7756095bc91 100644 (file)
@@ -47,6 +47,7 @@
 #include "SquidTime.h"
 #include "StatCounters.h"
 #include "Store.h"
+#include "tools.h"
 
 #if USE_DELAY_POOLS
 #include "DelayPools.h"
index 8c173319b2eb9f8a53493d4fef64c93dc91404df..1802b429ed6678a794a5c4b70fc5389896a5e725 100644 (file)
@@ -67,6 +67,7 @@
 #include "SquidTime.h"
 #include "StatCounters.h"
 #include "Store.h"
+#include "tools.h"
 
 #if USE_AUTH
 #include "auth/UserRequest.h"
index 764732ebd44054af0cae89f12c084de25427d8a7..9ffb8ff2c03c1dd169fcea982db1924023dda113 100644 (file)
@@ -59,6 +59,7 @@
 #include "StatCounters.h"
 #include "Store.h"
 #include "SwapDir.h"
+#include "tools.h"
 #include "wordlist.h"
 
 #if HAVE_ERRNO_H
index 118df8a8a70fd9e4752940dbfc6253254d9e1804..7812fb5b0eb48dc7e1b0cd0f570344f61b77ebe1 100644 (file)
@@ -44,6 +44,7 @@
 #include "MemBuf.h"
 #include "protos.h"
 #include "SquidTime.h"
+#include "tools.h"
 #include "wordlist.h"
 
 /* called when we "miss" on an internal object;
index 5a8c0c9ea40dd2154251b7c5daabc5176cde6785..fb0fb1691a89baa745d52222563e00cc937aea0a 100644 (file)
@@ -74,6 +74,7 @@
 #include "profiler/Profiler.h"
 #include "protos.h"
 #include "refresh.h"
+#include "tools.h"
 #include "SquidDns.h"
 #include "SquidTime.h"
 #include "StatCounters.h"
index ad50fd09f5fee0b30a1ff69ab2647f0eb80c990f..74238503c99e577cf16fde3eb4c64850086d475a 100644 (file)
@@ -48,6 +48,7 @@
 #include "SquidTime.h"
 #include "Store.h"
 #include "StoreClient.h"
+#include "tools.h"
 
 /* local types */
 
index 0d2422472cd82ef3ca27e3f6293680fd64553e8f..dda745e5379a92ae2044f754b3cfadfea5fc08a8 100644 (file)
@@ -439,21 +439,14 @@ SQUIDCEXTERN void urlExtMethodConfigure(void);
 
 SQUIDCEXTERN peer_t parseNeighborType(const char *s);
 
-/* tools.c */
-
-SQUIDCEXTERN void kb_incr(kb_t *, size_t);
-SQUIDCEXTERN int stringHasWhitespace(const char *);
-SQUIDCEXTERN int stringHasCntl(const char *);
-SQUIDCEXTERN void linklistPush(link_list **, void *);
-SQUIDCEXTERN void *linklistShift(link_list **);
-SQUIDCEXTERN int xrename(const char *from, const char *to);
-extern int isPowTen(int);
-SQUIDCEXTERN void parseEtcHosts(void);
-SQUIDCEXTERN int getMyPort(void);
-SQUIDCEXTERN void setUmask(mode_t mask);
-
-SQUIDCEXTERN char *strwordtok(char *buf, char **t);
-SQUIDCEXTERN void strwordquote(MemBuf * mb, const char *str);
+SQUIDCEXTERN int stringHasWhitespace(const char *); //String.cc
+SQUIDCEXTERN int stringHasCntl(const char *); //String.cc
+SQUIDCEXTERN void linklistPush(link_list **, void *); //list.cc
+SQUIDCEXTERN void *linklistShift(link_list **); //list.cc
+SQUIDCEXTERN int xrename(const char *from, const char *to); //disk.cc
+extern int isPowTen(int); //int.cc
+
+SQUIDCEXTERN char *strwordtok(char *buf, char **t); //String.cc
 
 
 /*
index b5ee95a87f80f6baf390ae8d085bf35ecac3ccb1..df6830f5c19d5d4fc51cf259ff77cd8d5d7d796f 100644 (file)
@@ -42,6 +42,7 @@
 #include "ipcache.h"
 #include "protos.h"
 #include "SquidTime.h"
+#include "tools.h"
 
 static IPH send_announce;
 
diff --git a/src/tools.h b/src/tools.h
new file mode 100644 (file)
index 0000000..d1ac242
--- /dev/null
@@ -0,0 +1,48 @@
+/*
+ * DEBUG: section 
+ * AUTHOR: 
+ *
+ * SQUID Web Proxy Cache          http://www.squid-cache.org/
+ * ----------------------------------------------------------
+ *
+ *  Squid is the result of efforts by numerous individuals from
+ *  the Internet community; see the CONTRIBUTORS file for full
+ *  details.   Many organizations have provided support for Squid's
+ *  development; see the SPONSORS file for full details.  Squid is
+ *  Copyrighted (C) 2001 by the Regents of the University of
+ *  California; see the COPYRIGHT file for full details.  Squid
+ *  incorporates software developed and/or copyrighted by other
+ *  sources; see the CREDITS file for full details.
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
+ *
+ */
+
+
+#ifndef SQUID_TOOLS_H_
+#define SQUID_TOOLS_H_
+
+/* for kb_t */
+#include "typedefs.h"
+
+class MemBuf;
+
+extern void kb_incr(kb_t *, size_t);
+extern void parseEtcHosts(void);
+extern int getMyPort(void);
+extern void setUmask(mode_t mask);
+extern void strwordquote(MemBuf * mb, const char *str);
+
+#endif /* SQUID_TOOLS_H_ */
index 547eec19ec6b26601d011c40fe71a12a7adcca18..5aca7e97cbe62c649c8525e850a61a1fdcfad2bb 100644 (file)
@@ -50,6 +50,7 @@
 #include "PeerSelectState.h"
 #include "protos.h"
 #include "StatCounters.h"
+#include "tools.h"
 
 #if USE_DELAY_POOLS
 #include "DelayId.h"
index 551413e992c0ce328c3c4a8208dda4d0017d920c..d4a0c6d9f8ec2774c0c5bb18425622efd8574659 100644 (file)
@@ -44,6 +44,7 @@
 #include "protos.h"
 #include "StatCounters.h"
 #include "Store.h"
+#include "tools.h"
 
 #if HAVE_ERRNO_H
 #include <errno.h>