]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Removed squid-old.h
authorFrancesco Chemolli <kinkie@squid-cache.org>
Tue, 14 Aug 2012 11:53:07 +0000 (13:53 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Tue, 14 Aug 2012 11:53:07 +0000 (13:53 +0200)
495 files changed:
compat/compat.dox
compat/stdio.h
scripts/source-maintenance.sh
src/AccessLogEntry.cc
src/AclRegs.cc
src/AsyncEngine.h
src/BodyPipe.cc
src/CacheDigest.cc
src/CacheManager.h
src/ChunkedCodingParser.cc
src/ClientDelayConfig.cc
src/ClientRequestContext.h
src/CommCalls.cc
src/CommRead.h
src/CommonPool.h
src/CompletionDispatcher.h
src/CompositePoolNode.h
src/ConfigOption.cc
src/ConfigParser.cc
src/ConfigParser.h
src/CpuAffinity.cc
src/DelayBucket.cc
src/DelayConfig.cc
src/DelayId.cc
src/DelayIdComposite.h
src/DelayPool.h
src/DelaySpec.cc
src/DelayTagged.cc
src/DelayTagged.h
src/DelayUser.cc
src/DelayUser.h
src/DelayVector.cc
src/DescriptorSet.cc
src/DescriptorSet.h
src/DiskIO/AIO/AIODiskFile.cc
src/DiskIO/AIO/AIODiskFile.h
src/DiskIO/AIO/AIODiskIOModule.cc
src/DiskIO/AIO/AIODiskIOStrategy.cc
src/DiskIO/AIO/aio_win32.cc
src/DiskIO/Blocking/BlockingDiskIOModule.cc
src/DiskIO/Blocking/BlockingFile.cc
src/DiskIO/Blocking/BlockingIOStrategy.cc
src/DiskIO/DiskDaemon/DiskDaemonDiskIOModule.cc
src/DiskIO/DiskDaemon/DiskdAction.cc
src/DiskIO/DiskDaemon/DiskdFile.cc
src/DiskIO/DiskDaemon/DiskdIOStrategy.cc
src/DiskIO/DiskFile.h
src/DiskIO/DiskIOModule.cc
src/DiskIO/DiskIOModule.h
src/DiskIO/DiskIOStrategy.h
src/DiskIO/DiskThreads/CommIO.cc
src/DiskIO/DiskThreads/CommIO.h
src/DiskIO/DiskThreads/DiskThreadsDiskFile.cc
src/DiskIO/DiskThreads/DiskThreadsDiskIOModule.cc
src/DiskIO/DiskThreads/DiskThreadsIOStrategy.cc
src/DiskIO/DiskThreads/aiops.cc
src/DiskIO/DiskThreads/aiops_win32.cc
src/DiskIO/DiskThreads/async_io.cc
src/DiskIO/IORequestor.h
src/DiskIO/IpcIo/IpcIoDiskIOModule.cc
src/DiskIO/IpcIo/IpcIoFile.cc
src/DiskIO/IpcIo/IpcIoFile.h
src/DiskIO/IpcIo/IpcIoIOStrategy.cc
src/DiskIO/Mmapped/MmappedDiskIOModule.cc
src/DiskIO/Mmapped/MmappedFile.cc
src/DiskIO/Mmapped/MmappedIOStrategy.cc
src/DiskIO/ReadRequest.h
src/DiskIO/WriteRequest.h
src/EventLoop.cc
src/EventLoop.h
src/ExternalACLEntry.cc
src/FadingCounter.cc
src/HelperChildConfig.cc
src/HttpBody.cc
src/HttpHdrCc.cc
src/HttpHdrCc.cci
src/HttpHdrCc.h
src/HttpHdrContRange.cc
src/HttpHdrRange.cc
src/HttpHdrSc.cc
src/HttpHdrSc.h
src/HttpHdrScTarget.cc
src/HttpHdrScTarget.h
src/HttpHeader.cc
src/HttpHeaderTools.cc
src/HttpHeaderTools.h
src/HttpMsg.cc
src/HttpMsg.h
src/HttpParser.cc
src/HttpReply.cc
src/HttpReply.h
src/HttpRequest.cc
src/HttpRequest.h
src/HttpRequestMethod.cc
src/HttpRequestMethod.h
src/HttpStatusLine.cc
src/HttpStatusLine.h
src/ICP.h
src/LeakFinder.cc
src/LoadableModule.cc
src/LoadableModules.cc
src/Makefile.am
src/MemBuf.cc
src/MemObject.cc
src/MemObject.h
src/MemStore.cc
src/NullDelayId.cc
src/NullDelayId.h
src/Packer.cc
src/Parsing.cc
src/Parsing.h
src/PeerDigest.h
src/ProfStats.cc
src/RemovalPolicy.h
src/Server.cc
src/SquidNew.cc
src/StatHist.cc
src/Store.h
src/StoreClient.h
src/StoreFileSystem.cc
src/StoreFileSystem.h
src/StoreIOState.cc
src/StoreMeta.cc
src/StoreMetaMD5.cc
src/StoreMetaSTD.cc
src/StoreMetaSTDLFS.cc
src/StoreMetaURL.cc
src/StoreMetaUnpacker.cc
src/StoreMetaVary.cc
src/StoreSearch.h
src/StoreSwapLogData.h
src/String.cc
src/String.cci
src/SwapDir.cc
src/WinSvc.cc
src/acl/Acl.cc
src/acl/Acl.h
src/acl/Arp.cc
src/acl/Asn.cc
src/acl/Browser.cc
src/acl/Certificate.cc
src/acl/CertificateData.cc
src/acl/Checklist.cc
src/acl/DestinationDomain.cc
src/acl/DestinationIp.cc
src/acl/DomainData.cc
src/acl/Eui64.cc
src/acl/ExtUser.cc
src/acl/FilledChecklist.cc
src/acl/FilledChecklist.h
src/acl/Gadgets.cc
src/acl/HierCode.cc
src/acl/HierCodeData.cc
src/acl/HttpHeaderData.cc
src/acl/HttpRepHeader.cc
src/acl/HttpReqHeader.cc
src/acl/HttpStatus.cc
src/acl/IntRange.cc
src/acl/Ip.cc
src/acl/LocalIp.cc
src/acl/LocalPort.cc
src/acl/MaxConnection.cc
src/acl/Method.cc
src/acl/Method.h
src/acl/MethodData.cc
src/acl/MethodData.h
src/acl/MyPortName.cc
src/acl/PeerName.cc
src/acl/Protocol.cc
src/acl/ProtocolData.cc
src/acl/Random.cc
src/acl/Referer.cc
src/acl/RegexData.cc
src/acl/ReplyMimeType.cc
src/acl/RequestMimeType.cc
src/acl/SourceDomain.cc
src/acl/SourceIp.cc
src/acl/SslError.cc
src/acl/SslErrorData.cc
src/acl/Strategised.cc
src/acl/StringData.cc
src/acl/Tag.cc
src/acl/Time.cc
src/acl/TimeData.cc
src/acl/Url.cc
src/acl/UrlPath.cc
src/acl/UrlPort.cc
src/acl/UserData.cc
src/adaptation/AccessCheck.cc
src/adaptation/AccessRule.cc
src/adaptation/Config.cc
src/adaptation/Config.h
src/adaptation/Elements.cc
src/adaptation/History.cc
src/adaptation/Initiate.cc
src/adaptation/Initiator.cc
src/adaptation/Iterator.cc
src/adaptation/Message.cc
src/adaptation/Service.cc
src/adaptation/ServiceConfig.cc
src/adaptation/ServiceFilter.cc
src/adaptation/ServiceGroups.cc
src/adaptation/ecap/Config.cc
src/adaptation/ecap/Host.cc
src/adaptation/ecap/MessageRep.cc
src/adaptation/ecap/ServiceRep.cc
src/adaptation/ecap/XactionRep.cc
src/adaptation/icap/Client.cc
src/adaptation/icap/Config.cc
src/adaptation/icap/Elements.cc
src/adaptation/icap/History.cc
src/adaptation/icap/History.h
src/adaptation/icap/Launcher.cc
src/adaptation/icap/ModXact.cc
src/adaptation/icap/OptXact.cc
src/adaptation/icap/Options.cc
src/adaptation/icap/Options.h
src/adaptation/icap/ServiceRep.cc
src/adaptation/icap/Xaction.cc
src/adaptation/icap/icap_log.cc
src/adaptation/icap/icap_log.h
src/auth/Acl.cc
src/auth/AclMaxUserIp.cc
src/auth/AclMaxUserIp.h
src/auth/AclProxyAuth.cc
src/auth/AclProxyAuth.h
src/auth/Config.cc
src/auth/Gadgets.cc
src/auth/Scheme.cc
src/auth/User.cc
src/auth/UserRequest.cc
src/auth/basic/Scheme.cc
src/auth/basic/User.cc
src/auth/basic/UserRequest.cc
src/auth/basic/auth_basic.cc
src/auth/digest/Scheme.cc
src/auth/digest/User.cc
src/auth/digest/UserRequest.cc
src/auth/digest/auth_digest.cc
src/auth/negotiate/Scheme.cc
src/auth/negotiate/UserRequest.cc
src/auth/negotiate/auth_negotiate.cc
src/auth/ntlm/Scheme.cc
src/auth/ntlm/UserRequest.cc
src/auth/ntlm/auth_ntlm.cc
src/base/AsyncCall.cc
src/base/AsyncCallQueue.cc
src/base/AsyncCallQueue.h
src/base/AsyncJob.cc
src/base/AsyncJobCalls.h
src/base/TextException.cc
src/cache_cf.cc
src/cache_diff.cc
src/carp.cc
src/cbdata.cc
src/cbdata.h
src/clientStream.cc
src/clientStream.h
src/client_db.cc
src/client_side.cc
src/client_side.h
src/client_side_reply.cc
src/client_side_request.cc
src/client_side_request.h
src/comm.cc
src/comm.h
src/comm/AcceptLimiter.cc
src/comm/ConnOpener.cc
src/comm/Connection.h
src/comm/IoCallback.cc
src/comm/ModDevPoll.cc
src/comm/ModEpoll.cc
src/comm/ModKqueue.cc
src/comm/ModPoll.cc
src/comm/ModSelect.cc
src/comm/ModSelectWin32.cc
src/comm/TcpAcceptor.cc
src/comm/Write.cc
src/comm/Write.h
src/delay_pools.cc
src/disk.cc
src/dns.cc
src/dns_internal.cc
src/errorpage.cc
src/errorpage.h
src/esi/Assign.cc
src/esi/Assign.h
src/esi/Attempt.h
src/esi/Context.cc
src/esi/Context.h
src/esi/CustomParser.cc
src/esi/Element.h
src/esi/ElementList.h
src/esi/Esi.cc
src/esi/Except.h
src/esi/ExpatParser.cc
src/esi/Expression.cc
src/esi/Expression.h
src/esi/Include.cc
src/esi/Include.h
src/esi/Libxml2Parser.cc
src/esi/Literal.h
src/esi/Module.cc
src/esi/Parser.cc
src/esi/Segment.cc
src/esi/Segment.h
src/esi/Sequence.cc
src/esi/Sequence.h
src/esi/Var.h
src/esi/VarState.cc
src/event.cc
src/event.h
src/external_acl.cc
src/fd.cc
src/fde.cc
src/fde.h
src/format/Format.cc
src/forward.cc
src/forward.h
src/fqdncache.cc
src/fs/Module.cc
src/fs/aufs/StoreFSaufs.cc
src/fs/coss/store_dir_coss.cc
src/fs/coss/store_io_coss.cc
src/fs/rock/RockIoState.cc
src/fs/rock/RockRebuild.cc
src/fs/rock/RockStoreFileSystem.h
src/fs/rock/RockSwapDir.cc
src/fs/ufs/RebuildState.cc
src/fs/ufs/UFSStoreState.cc
src/fs/ufs/UFSSwapDir.cc
src/fs/ufs/UFSSwapLogParser.cc
src/ftp.cc
src/globals.h
src/gopher.cc
src/helper.cc
src/helper.h
src/htcp.cc
src/htcp.h
src/http.cc
src/icmp/Icmp.cc
src/icmp/Icmp4.cc
src/icmp/Icmp6.cc
src/icmp/IcmpPinger.cc
src/icmp/IcmpSquid.cc
src/icmp/net_db.cc
src/icmp/pinger.cc
src/icmp/testIcmp.cc
src/icp_v2.cc
src/icp_v3.cc
src/ident/AclIdent.cc
src/ident/Ident.cc
src/int.cc
src/internal.cc
src/ip/Qos.cci
src/ip/QosConfig.cc
src/ip/stubQosConfig.cc
src/ipc.cc
src/ipc/Coordinator.cc
src/ipc/ReadWriteLock.cc
src/ipc/SharedListen.cc
src/ipc/StartListening.cc
src/ipc/StoreMap.cc
src/ipc/Strand.cc
src/ipc/UdsOp.h
src/ipc/mem/Pages.cc
src/ipc_win32.cc
src/ipcache.cc
src/list.cc
src/log/File.cc
src/log/FormatHttpdCombined.cc
src/log/FormatHttpdCommon.cc
src/log/FormatSquidIcap.cc
src/log/FormatSquidNative.cc
src/log/ModDaemon.cc
src/log/ModStdio.cc
src/log/ModSyslog.cc
src/log/ModTcp.cc
src/log/ModUdp.cc
src/log/access_log.cc
src/main.cc
src/mem.cc
src/mem_node.cc
src/mem_node.h
src/mgr/BasicActions.cc
src/mgr/CountersAction.cc
src/mgr/Forwarder.cc
src/mgr/FunAction.cc
src/mgr/InfoAction.cc
src/mgr/Inquirer.cc
src/mgr/IntervalAction.cc
src/mgr/IoAction.cc
src/mgr/ServiceTimesAction.cc
src/mgr/StoreIoAction.cc
src/mgr/StoreToCommWriter.cc
src/mime.cc
src/mime_header.cc
src/multicast.cc
src/neighbors.cc
src/pconn.cc
src/peer_digest.cc
src/peer_select.cc
src/peer_sourcehash.cc
src/peer_userhash.cc
src/protos.h
src/redirect.cc
src/refresh.cc
src/repl/heap/store_heap_replacement.cc
src/repl/heap/store_repl_heap.cc
src/repl/lru/store_repl_lru.cc
src/send-announce.cc
src/snmp/Forwarder.cc
src/snmp_agent.cc
src/snmp_core.cc
src/squid-old.h [deleted file]
src/ssl/ErrorDetail.cc
src/ssl/ErrorDetailManager.cc
src/ssl/ServerBump.cc
src/ssl/ServerBump.h
src/ssl/support.cc
src/stat.cc
src/stmem.cc
src/store.cc
src/store_client.cc
src/store_digest.cc
src/store_dir.cc
src/store_io.cc
src/store_key_md5.cc
src/store_log.cc
src/store_rebuild.cc
src/store_swapin.cc
src/store_swapmeta.cc
src/store_swapout.cc
src/structs.h
src/test_cache_digest.cc
src/tests/TestSwapDir.cc
src/tests/TestSwapDir.h
src/tests/stub_DelayId.cc
src/tests/stub_access_log.cc
src/tests/stub_acl.cc
src/tests/stub_cache_cf.cc
src/tests/stub_cache_manager.cc
src/tests/stub_errorpage.cc
src/tests/stub_fd.cc
src/tests/stub_http.cc
src/tests/stub_stat.cc
src/tests/stub_store.cc
src/tests/stub_store_client.cc
src/tests/stub_store_rebuild.cc
src/tests/stub_store_stats.cc
src/tests/testACLMaxUserIP.cc
src/tests/testAuth.cc
src/tests/testBoilerplate.cc
src/tests/testCacheManager.cc
src/tests/testCoss.cc
src/tests/testDiskIO.cc
src/tests/testEvent.cc
src/tests/testEventLoop.cc
src/tests/testHttpParser.cc
src/tests/testHttpReply.cc
src/tests/testHttpRequest.cc
src/tests/testHttpRequestMethod.cc
src/tests/testNull.cc
src/tests/testRock.cc
src/tests/testStore.cc
src/tests/testStore.h
src/tests/testStoreController.cc
src/tests/testStoreEntryStream.cc
src/tests/testStoreHashIndex.cc
src/tests/testURLScheme.cc
src/tests/testUfs.cc
src/tools.cc
src/tunnel.cc
src/typedefs.h
src/unlinkd.cc
src/url.cc
src/urn.cc
src/wccp.cc
src/wccp2.cc
src/whois.cc
src/win32.cc
src/wordlist.h
test-suite/ESIExpressions.cc
test-suite/MemPoolTest.cc
test-suite/StackTest.cc
test-suite/VirtualDeleteOperator.cc
test-suite/debug.cc
test-suite/mem_hdr_test.cc
test-suite/mem_node_test.cc
test-suite/refcount.cc
test-suite/syntheticoperators.cc
test-suite/test_tools.cc
tools/purge/conffile.hh
tools/purge/purge.cc
tools/purge/socket.hh

index 2193544ef02f79ecfd400a63e146ec8483fc709f..d9af22df681ff3c22775cc75a177b44e8023d62a 100644 (file)
@@ -69,12 +69,9 @@ The strict dependency requirements which exist within the compat API make includ
 individual part separately a risky operation.
 
 \par
-Squid coding guidelines require each .c and .cc file to include squid-old.h or squid.h first
+Squid coding guidelines require each .c and .cc file to include squid.h first
 in their included files. squid.h begin with an order-specific sequence of defines and
 includes compat/compat.h to incorporate the compat layer appropriately in every soure file.
-squid-old.h begins by including squid.h to prepare for its sub-includes and definitions.
-It is recommended to include squid.h and not squid-old.h for new developments; squid-old.h
-is being deprecated.
 
 \par
 Internally the compat/ directory contains the public API file compat/compat.h which structures
index 8bcc117e2d805c19caba48b1ee50fd050ecbca1a..9db46782c4656ef7970330330970a5da98520c6a 100644 (file)
@@ -50,4 +50,8 @@ inline FILE * tmpfile(void) { return tmpfile64(); }
 #include<cstdio>
 #endif
 
+#ifndef MAXPATHLEN
+#define MAXPATHLEN SQUID_MAXPATHLEN
+#endif
+
 #endif /* _SQUID_COMPAT_STDIO_H */
index 9198f7efc02a0d55ae9d2fa8a55ab0f3d9f9817d..b201f5110f5ec0518c7172ad0aaf562462990fb6 100755 (executable)
@@ -68,18 +68,18 @@ for FILENAME in `ls -1`; do
        fi
 
        #
-       # REQUIRE squid.h/squid-old.h as first #include
+       # REQUIRE squid.h first #include
        #
        case ${FILENAME} in
        *.c|*.cc)
                FI=`grep "#include" ${FILENAME} | head -1`;
-               if test "${FI}" != "#include \"squid.h\"" -a "${FI}" != "#include \"squid-old.h\"" -a "${FILENAME}" != "cf_gen.cc"; then
-                       echo "ERROR: ${PWD}/${FILENAME} does not include squid.h or squid-old.h first!"
+               if test "${FI}" != "#include \"squid.h\"" -a "${FILENAME}" != "cf_gen.cc"; then
+                       echo "ERROR: ${PWD}/${FILENAME} does not include squid.h first!"
                fi
                ;;
        *.h|*.cci)
                FI=`grep "#include \"squid.h\"" ${FILENAME}`;
-               if test "x${FI}" != "x" -a "${FILENAME}" != "squid-old.h" ; then
+               if test "x${FI}" != "x" ; then
                        echo "ERROR: ${PWD}/${FILENAME} duplicate include of squid.h"
                fi
                ;;
index cfab6e533b42e69ba549bf667ef1f5f899ebf692..3b646cc416aed9231c27141b8a995d674088b8b6 100644 (file)
@@ -1,5 +1,6 @@
 #include "squid.h"
 #include "AccessLogEntry.h"
+#include "HttpReply.h"
 #include "HttpRequest.h"
 #include "ssl/support.h"
 
index 8953c736f153b4733b64282f6ab90b8af2719f95..e644d95a77a9892f19c4cee98b74ece478663a29 100644 (file)
@@ -1,4 +1,4 @@
-#include "squid-old.h"
+#include "squid.h"
 
 /** This file exists to provide satic registration code to executables
     that need ACLs. We cannot place this code in acl/lib*.la because it
index 35f42146b2d19e8e5a00f0c137fdb11da4fc1e75..9b601377169fcc60b00b52a1fff016c1ac047c4f 100644 (file)
@@ -34,9 +34,6 @@
 #ifndef SQUID_ASYNCENGINE_H
 #define SQUID_ASYNCENGINE_H
 
-#include "squid-old.h"
-
-
 /* Abstract interface for async engines which an event loop can utilise.
  *
  * Some implementations will be truely async, others like the event engine
index b792623e41208e0f2b53560da15272ba1cf3ddc7..4abd5359435f0bb2c2970c21dc863c771e0b0cea 100644 (file)
@@ -1,5 +1,5 @@
 
-#include "squid-old.h"
+#include "squid.h"
 #include "base/AsyncJobCalls.h"
 #include "base/TextException.h"
 #include "BodyPipe.h"
index 9c7ed7e99cc2a1151086ff2869b1c47fbffcd0da..47b6788d7e21c66790f95f35bc531805992093a2 100644 (file)
@@ -33,7 +33,9 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
+#include "md5.h"
+#include "protos.h"
 #include "StatCounters.h"
 #include "Store.h"
 
index 696f481828d646bd93645c5e9ba3973ae89c4851..4f27246040e8f314857e755d5aa87b85cdfaf6f3 100644 (file)
@@ -49,6 +49,7 @@
  \ingroup CacheManagerAPI
  */
 
+class HttpRequest;
 /**
  \ingroup CacheManagerAPI
  * a CacheManager - the menu system for interacting with squid.
index 3b99f4ef8c1987d2ee306c8303d913ffd78adabd..db8c5f375c2ec93a3a6996a344b2ac3453bd2578 100644 (file)
@@ -1,5 +1,6 @@
-#include "squid-old.h"
+#include "squid.h"
 #include "base/TextException.h"
+#include "Debug.h"
 #include "Parsing.h"
 #include "ChunkedCodingParser.h"
 #include "MemBuf.h"
index 23e0de95ef2f00c9ca91b425ac20314b409a7e76..d72e7a282d82d1e2bbbd9eeee12cf86b751e8bec 100644 (file)
@@ -1,11 +1,10 @@
 #include "squid.h"
-#include "squid-old.h"
-#include "ConfigParser.h"
+#include "acl/Acl.h"
+#include "acl/Gadgets.h"
 #include "ClientDelayConfig.h"
+#include "ConfigParser.h"
 #include "Parsing.h"
 #include "Store.h"
-#include "acl/Acl.h"
-#include "acl/Gadgets.h"
 
 void ClientDelayPool::dump(StoreEntry * entry, unsigned int poolNumberMinusOne) const
 {
index 74233cebc0abf689a7092d479cd957207d8d7aaa..f597107598db5a9aacb170fc62140ee22358d1dd 100644 (file)
@@ -1,19 +1,19 @@
 #ifndef SQUID_CLIENTREQUESTCONTEXT_H
 #define SQUID_CLIENTREQUESTCONTEXT_H
 
-class ACLChecklist;
-class ClientHttpRequest;
-class DnsLookupDetails;
-
-/* for RefCountable */
-#include "RefCount.h"
-/* for CBDATA_CLASS() */
 #include "cbdata.h"
+#include "RefCount.h"
+#include "ipcache.h"
 
 #if USE_ADAPTATION
 #include "adaptation/forward.h"
 #endif
 
+class ACLChecklist;
+class ClientHttpRequest;
+class DnsLookupDetails;
+class ErrorState;
+
 class ClientRequestContext : public RefCountable
 {
 
index b080f2f63bdcf33409c1cec3af25cb7e7b7be201..99d3bd52a018f93468347615e99fbe3c98403e35 100644 (file)
@@ -1,7 +1,8 @@
-#include "squid-old.h"
-#include "fde.h"
+#include "squid.h"
 #include "comm/Connection.h"
 #include "CommCalls.h"
+#include "fde.h"
+#include "globals.h"
 
 /* CommCommonCbParams */
 
index ba5ff3bbd73c28ae266e7163e062040a840142cf..da0d5c72e203a12dbfc234c459ab9073576a749f 100644 (file)
@@ -36,7 +36,6 @@
 #ifndef COMMREAD_H
 #define COMMREAD_H
 
-#include "squid-old.h"
 #include "comm.h"
 #include "CommCalls.h"
 #include "comm/forward.h"
index 45f1c5c334a091f8fafb2547ab82e345f6c38c25..d8c80c519bfbd0164f5d0e886e2b44ab07f7e793 100644 (file)
@@ -39,7 +39,6 @@
 #define COMMONPOOL_H
 
 #if USE_DELAY_POOLS
-#include "squid-old.h"
 #include "SquidString.h"
 #include "CompositePoolNode.h"
 
index e5b6d578df78ffa79534e32c8ca1e0a315e5a471..788bd6deb8a15658ae54d6516e39e7bfea38e287 100644 (file)
@@ -34,9 +34,6 @@
 #ifndef SQUID_COMPLETIONDISPATCHER_H
 #define SQUID_COMPLETIONDISPATCHER_H
 
-#include "squid-old.h"
-
-
 /* Dispatch code to handle events that have completed. Completed events are queued
  * with a completion dispatcher by the OS Async engine - i.e. the poll or kqueue or
  * select loop, or a signal reciever, or the diskd/diskthreads/etc modules.
index afdae833e9dee9996653b6a0d5cda8f42afc990c..ee6789559b175322c7335a8bad77008b615ab867 100644 (file)
 #define COMPOSITEPOOLNODE_H
 
 #if USE_DELAY_POOLS
-#include "squid-old.h"
 #include "auth/UserRequest.h"
-#include "DelayPools.h"
-#include "DelayIdComposite.h"
 #include "CommRead.h"
+#include "DelayIdComposite.h"
+#include "DelayPools.h"
 #include "ip/Address.h"
+#include "SquidString.h"
 
 class StoreEntry;
 
index 74306f972955a38475b458af14557daa2176da97..6cd1deece7151097bab5b70e0fca676e68673660 100644 (file)
@@ -32,7 +32,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "ConfigOption.h"
 
 ConfigOptionVector::~ConfigOptionVector()
index 3d3dabf9b29c9f875c439c8cc4983f8cf25f7ef2..9548eb7b7da7134d0b0318a722cbb3bb6363a04f 100644 (file)
@@ -35,7 +35,9 @@
 
 #include "squid.h"
 #include "ConfigParser.h"
+#include "Debug.h"
 #include "globals.h"
+#include "protos.h"
 
 void
 ConfigParser::destruct()
index f7fa61e4d61ab76ef908e5149a45954c6c66e7a9..3a22c5a76a7eefceb2eececd10113b625c453adc 100644 (file)
@@ -36,8 +36,9 @@
 #ifndef SQUID_CONFIGPARSER_H
 #define SQUID_CONFIGPARSER_H
 
-#include "squid-old.h"
+#include "SquidString.h"
 
+class wordlist;
 /**
  * Limit to how long any given config line may be.
  * This affects squid.conf and all included files.
index da5274a06d5ca03b2076bcbe3d5c77b4a9822914..e84e29a5c0f7ac76b9d8e2dce22c8d00216f739c 100644 (file)
@@ -10,6 +10,8 @@
 #include "CpuAffinity.h"
 #include "CpuAffinityMap.h"
 #include "CpuAffinitySet.h"
+#include "Debug.h"
+#include "protos.h"
 #include "structs.h"
 
 #include <algorithm>
index 5249c55f16aed99c3f754f6187694d6111d21a73..088ab04ad60968da685b90233d684bcc0428293f 100644 (file)
@@ -39,7 +39,6 @@
 #include "squid.h"
 
 #if USE_DELAY_POOLS
-#include "squid-old.h"
 #include "DelayBucket.h"
 #include "DelaySpec.h"
 #include "Store.h"
index 442afb113abf2831e23b60fad7927fe40c8942dc..73306568e72212ddbbe035ce896da3b476813ba0 100644 (file)
 #include "squid.h"
 
 #if USE_DELAY_POOLS
-#include "squid-old.h"
-#include "DelayConfig.h"
+#include "acl/Acl.h"
+#include "acl/Gadgets.h"
 #include "ConfigParser.h"
-#include "DelayPools.h"
+#include "DelayConfig.h"
 #include "DelayPool.h"
+#include "DelayPools.h"
 #include "Store.h"
-#include "acl/Acl.h"
-#include "acl/Gadgets.h"
 
 void
 DelayConfig::parsePoolCount()
index 01da4f74d9c8d0c74836ddccded924fd2ffae75a..5ddb46b1af9fd1b06dd2c832ec639b8f1c126d61 100644 (file)
  * #if to exclude the delay pools code from compile process when not needed.
  */
 #if USE_DELAY_POOLS
-
-#include "squid-old.h"
-#include "DelayId.h"
-#include "client_side_request.h"
 #include "acl/FilledChecklist.h"
-#include "DelayPools.h"
+#include "client_side_request.h"
+#include "CommRead.h"
+#include "DelayId.h"
 #include "DelayPool.h"
+#include "DelayPools.h"
 #include "HttpRequest.h"
-#include "CommRead.h"
 
 DelayId::DelayId () : pool_ (0), compositeId(NULL), markedAsNoDelay(false)
 {}
index 3f12c0b104ba415f71094314e7a8cac5c1647222..39ca140be15003d94f198cd2c73253d18c38f640 100644 (file)
@@ -40,7 +40,7 @@
 #define DELAYIDCOMPOSITE_H
 
 #if USE_DELAY_POOLS
-#include "squid-old.h"
+#include "fatal.h"
 #include "RefCount.h"
 
 class DeferredRead;
index 432418bf2ef801242c61dc3f82c436e7749f53c2..1867d6c7d328ef89a7feb4b7bf960974f6020b5f 100644 (file)
@@ -40,7 +40,6 @@
 #define DELAYPOOL_H
 
 #if USE_DELAY_POOLS
-#include "squid-old.h"
 #include "CompositePoolNode.h"
 
 class StoreEntry;
index 7beed06239d868efdd31a3b50831fdc2dac94241..b11b113b5e9c9001d52a4108b15639cf0644edca 100644 (file)
 #include "squid.h"
 
 #if USE_DELAY_POOLS
-#include "squid-old.h"
 #include "DelaySpec.h"
-#include "Store.h"
 #include "Parsing.h"
+#include "protos.h"
+#include "Store.h"
 
 DelaySpec::DelaySpec() : restore_bps(-1), max_bytes (-1)
 {}
index 586816bd1283f9fb1969c244d77f71532643ddda..442d342d2dea7de2782aef6680f4bba4e2c10548 100644 (file)
@@ -38,7 +38,6 @@
 #include "squid.h"
 
 #if USE_DELAY_POOLS
-#include "squid-old.h"
 #include "comm/Connection.h"
 #include "DelayTagged.h"
 #include "NullDelayId.h"
index 0335e34ef9b9c1b45267179ec1b6fd53862a2324..09095ef535a77273dc566180a3b7a617824ef718 100644 (file)
@@ -38,7 +38,6 @@
 
 #if USE_DELAY_POOLS
 
-#include "squid-old.h"
 #include "auth/Gadgets.h"
 #include "CompositePoolNode.h"
 #include "DelayIdComposite.h"
index ea72409d5f41c5626ec105219970b027c70579bb..f6d4cc8e4c5e41ba9b69a158b6af4efb9e465aab 100644 (file)
 #include "squid.h"
 
 #if USE_DELAY_POOLS && USE_AUTH
-#include "squid-old.h"
-#include "DelayUser.h"
-#include "auth/UserRequest.h"
 #include "auth/User.h"
+#include "auth/UserRequest.h"
 #include "comm/Connection.h"
+#include "DelayUser.h"
 #include "NullDelayId.h"
 #include "Store.h"
 
index 92fcadc687940228f88ac401ed835d6145780e4f..108dd702b6345cbcaebf9c4a05e64f3b668b9d35 100644 (file)
@@ -38,7 +38,6 @@
 
 #if USE_DELAY_POOLS && USE_AUTH
 
-#include "squid-old.h"
 #include "auth/Gadgets.h"
 #include "auth/User.h"
 #include "CompositePoolNode.h"
index 0d434ea9c56ec6738a60ff9da68c4fcb4fbf060d..20f02e4485ed4669da8b63d4cb9d4705ec904a82 100644 (file)
 #include "squid.h"
 
 #if USE_DELAY_POOLS
-#include "squid-old.h"
 #include "comm/Connection.h"
-#include "DelayVector.h"
 #include "CommRead.h"
+#include "DelayVector.h"
 
 void *
 DelayVector::operator new(size_t size)
index 12d12b3c6bfb4c4c5252a4240f0c93a88537602d..049d62de2696cbbd3ee36f173026d865cf1ae5a4 100644 (file)
@@ -4,6 +4,7 @@
  * DEBUG: section 05    Comm
  */
 #include "squid.h"
+#include "globals.h" /* for Squid_MaxFD */
 #include "DescriptorSet.h"
 
 // pre-allocates descriptor store and index for Squid_MaxFD descriptors
index 8e99dfb823d5b96c52bc612768ec8fd8e3489124..302529b3f9d5834317348156e9b3b41a012d43c3 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef SQUID_DESCRIPTOR_SET_H
 #define SQUID_DESCRIPTOR_SET_H
 
-#include "squid-old.h"
 
 /** \ingroup Comm
 
index 047447ac5091b3bfa5035d7285067683cab42f8c..ccc7415dc608c85a508d719aeeac9e8ee263add9 100644 (file)
  * per storedir it should work just fine.
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "AIODiskFile.h"
 #include "AIODiskIOStrategy.h"
 #include "DiskIO/IORequestor.h"
 #include "DiskIO/ReadRequest.h"
 #include "DiskIO/WriteRequest.h"
+#include "protos.h"
 
 CBDATA_CLASS_INIT(AIODiskFile);
 void *
index 76d06a614b79d773ce4e172c54a67a7653b445f6..c424735df340c56626aaee1fe5ab48ae2919e709 100644 (file)
@@ -38,6 +38,7 @@
 #include "DiskIO/DiskFile.h"
 #include "async_io.h"
 #include "cbdata.h"
+#include "SquidString.h"
 
 class AIODiskIOStrategy;
 
index 54cd745d0dad215b6b029fa0e0fc411d90eabccf..9a7811f0026673b34f739e9ec1d114791eab74f9 100644 (file)
@@ -31,7 +31,7 @@
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "AIODiskIOModule.h"
 #include "AIODiskIOStrategy.h"
 #include "Store.h"
index ef1777093d46b336adb850579dad6e185b2e0da0..94c22ba946465647ab0e2d9f80ccc5a659d3518f 100644 (file)
@@ -42,7 +42,7 @@
  * per storedir it should work just fine.
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "AIODiskIOStrategy.h"
 #include "AIODiskFile.h"
 #include "DiskIO/IORequestor.h"
index d047691964b6897e118532f3b467ac54eda3738d..180d4b4ab5c46236b4a3d54c68283f13b5cd9aa0 100644 (file)
@@ -33,7 +33,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "comm.h"
 #include "aio_win32.h"
 
index b1dce0a4f6c5e3e78f514af771f46e3b91d96fad..c446359f9442509d36b48162826cc7b6a56b5914 100644 (file)
@@ -31,7 +31,7 @@
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "BlockingDiskIOModule.h"
 #include "BlockingIOStrategy.h"
 
index 590b4986c3815c535d152f62ba5fa5941da8070e..7047b34ec858bba127a15c0d1939aca9710b38d8 100644 (file)
  */
 #include "squid.h"
 #include "BlockingFile.h"
+#include "Debug.h"
 #include "DiskIO/IORequestor.h"
 #include "DiskIO/ReadRequest.h"
 #include "DiskIO/WriteRequest.h"
+#include "protos.h"
 
 CBDATA_CLASS_INIT(BlockingFile);
 
index 7ce57af323cbc58a373e9f05a3e89eea4e006fa1..de5d52fd130708ecc14907336a1b0d03d6e65da8 100644 (file)
@@ -37,6 +37,7 @@
 #include "squid.h"
 #include "BlockingIOStrategy.h"
 #include "BlockingFile.h"
+#include "protos.h"
 
 bool
 BlockingIOStrategy::shedLoad()
index c906610a0bd934ae7b5ec675e7809b8b280dcafe..7872fde475390a547028003ec339d8d109b63702 100644 (file)
@@ -31,7 +31,7 @@
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "DiskDaemonDiskIOModule.h"
 #include "DiskdIOStrategy.h"
 #include "DiskIO/DiskDaemon/DiskdAction.h"
index 1c141eae5f004a258a3dcf3de5234d149a7a56d6..009a6c7efd06f8f1836812163b2b65708c7757cb 100644 (file)
@@ -7,12 +7,13 @@
 
 #include "squid.h"
 #include "base/TextException.h"
-#include "Store.h"
+#include "DiskIO/DiskDaemon/DiskdAction.h"
+#include "DiskIO/DiskDaemon/DiskdIOStrategy.h"
 #include "ipc/Messages.h"
 #include "ipc/TypedMsgHdr.h"
 #include "mgr/ActionWriter.h"
-#include "DiskIO/DiskDaemon/DiskdAction.h"
-#include "DiskIO/DiskDaemon/DiskdIOStrategy.h"
+#include "Store.h"
+#include "protos.h"
 
 
 DiskdActionData::DiskdActionData()
index 7523ca1e84f52d7cf22823a69b14751787a9c903..22bccd176fe98ed50d1657e53d0f73ab3b95ee6f 100644 (file)
@@ -33,7 +33,7 @@
  * CopyRight (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 
 #include <sys/ipc.h>
 #include <sys/msg.h>
index 47bd63f1462e8d8795b19b3e002394baef7aa0fa..aaa02b3ac9abf1efe3701835f130586c1177d1d8 100644 (file)
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "comm/Loops.h"
-
-#include <sys/ipc.h>
-#include <sys/msg.h>
-#include <sys/shm.h>
-#include "DiskdIOStrategy.h"
 #include "ConfigOption.h"
+#include "DiskdIOStrategy.h"
 #include "DiskIO/DiskFile.h"
 #include "DiskdFile.h"
 #include "diomsg.h"
-/* for statfs */
+#include "protos.h"
 #include "Store.h"
 #include "StatCounters.h"
 #include "SquidTime.h"
 
+#include <sys/ipc.h>
+#include <sys/msg.h>
+#include <sys/shm.h>
+
 diskd_stats_t diskd_stats;
 
 size_t DiskdIOStrategy::nextInstanceID (0);
index 4a0a668e3faac46e21efd796f9fb35326071333c..70c6bba8f7e7ad1242097a61b60cc74b7d363525 100644 (file)
@@ -33,7 +33,7 @@
 #ifndef SQUID_DISKFILE_H
 #define SQUID_DISKFILE_H
 
-#include "squid-old.h"
+#include "typedefs.h"
 
 #include "RefCount.h"
 
index 91c84e3f4238c8a96bd080a9e658ddcc29d61ddd..48a58c9ced6164f75f1e6d0d26375e53abf18bcf 100644 (file)
@@ -32,7 +32,7 @@
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "DiskIOModule.h"
 
 Vector<DiskIOModule*> *DiskIOModule::_Modules = NULL;
index 4dfddeccd3ac1f86f43c557e428f71a069738ea1..058c10244d7ff5e07caee7da792119bcfbfeac34 100644 (file)
@@ -34,7 +34,6 @@
 #ifndef SQUID_DISKIOMODULE_H
 #define SQUID_DISKIOMODULE_H
 
-#include "squid-old.h"
 #include "Array.h"
 
 /* forward decls */
index 1f1c8d5bd8814e5392367091b8f1ca894d1e93dd..c175357ce1f0f39dc60693b1f4f02afae17f262a 100644 (file)
@@ -33,8 +33,8 @@
 #ifndef SQUID_DISKIOSTRATEGY_H
 #define SQUID_DISKIOSTRATEGY_H
 
-#include "squid-old.h"
-
+#include "squid.h"
+#include "Store.h"
 #include "RefCount.h"
 
 class DiskFile;
index 9e7d56168fa90574e638cb318cd82daafa8618e9..9de30912b0f39201a4403cb81b752dd214444bd7 100644 (file)
  */
 
 #include "squid.h"
-#include "squid-old.h"
 #include "comm/Loops.h"
 #include "DiskIO/DiskThreads/CommIO.h"
+#include "globals.h"
+#include "protos.h"
 
 void
 CommIO::Initialise()
index cd351b510e1f11bb2ddcb558c35e82660d35b996..92dba278cbef11531a88b0403da538e6ee184ad5 100644 (file)
@@ -2,6 +2,7 @@
 #define SQUID_SRC_DISKIO_DISKTHREADS_COMMIO_H
 
 #include "fde.h"
+#include "globals.h"
 
 class CommIO
 {
index fd3a5f4a3b8cdef7cf60565560dba5257d829f6b..a405d6f8bbd614d566bbb1bc2910d9140a2b60f7 100644 (file)
  */
 
 
-#include "squid-old.h"
+#include "squid.h"
 #include "DiskThreadsDiskFile.h"
-#include "Store.h"
-#include "Generic.h"
 #include "DiskIO/IORequestor.h"
 #include "DiskIO/ReadRequest.h"
 #include "DiskIO/WriteRequest.h"
+#include "Generic.h"
+#include "globals.h"
 #include "StatCounters.h"
+#include "Store.h"
+#include "protos.h"
 
 /* === PUBLIC =========================================================== */
 
index fb2509a5c98d6ff6cc69e82c588b48280473a132..a5bc030b3506f26a2fb65a335fa52cd3ddefaee1 100644 (file)
@@ -31,7 +31,7 @@
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "DiskThreadsDiskIOModule.h"
 #include "DiskThreadsIOStrategy.h"
 
index 296e3f4ca2424798828cb7a04fd73e5a20a472fa..d98ff8a1c3a318a0b4e8cc1f95af7bb4f24832bc 100644 (file)
@@ -34,7 +34,7 @@
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 
 #include "DiskThreadsDiskFile.h"
 #include "DiskThreadsIOStrategy.h"
index 2874fdb468e5824b5081b2ac75774eaffcbe6f5c..686e4113533f5e2949c0409263be83913e1f6f25 100644 (file)
@@ -36,7 +36,7 @@
 #error "_REENTRANT MUST be defined to build squid async io support."
 #endif
 
-#include "squid-old.h"
+#include "squid.h"
 #include "DiskThreads.h"
 
 #include       <stdio.h>
index 6b9eb6a966a677f28e2466debbbd2b8a40feaa4b..fecccc66ec52421f7d7245183749ea8bab208197 100644 (file)
@@ -34,7 +34,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "squid_windows.h"
 #include "DiskIO/DiskThreads/CommIO.h"
 #include "DiskThreads.h"
index 53200fbaefc2a0ca0364380fe3d3e7371fe61638..b3a4ac1e5ee80959f3abf43c223c5e235f3fa5e7 100644 (file)
@@ -34,7 +34,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "DiskThreads.h"
 #include "Store.h"
 #include "fde.h"
index 739fd0dd7e0c9f1cd8543fd3ce95578136e8a4a1..4f041ea45468b6ad260b40ea150ff3fc45786787 100644 (file)
@@ -34,8 +34,6 @@
 #ifndef SQUID_IOREQUESTOR_H
 #define SQUID_IOREQUESTOR_H
 
-#include "squid-old.h"
-
 #include "RefCount.h"
 
 class ReadRequest;
index 5519da1e110f68c01e657f3a6aa9065cc3676874..d0878e43e7798b31a16a62eb1dcd11f93b915838 100644 (file)
@@ -1,4 +1,4 @@
-#include "squid-old.h"
+#include "squid.h"
 #include "IpcIoDiskIOModule.h"
 #include "IpcIoIOStrategy.h"
 
index 58293cce08c06cc99084295c70503bf40a6d22e7..0b5069aa6ca98bb82e7f9da06e049a5929552ca7 100644 (file)
@@ -11,6 +11,7 @@
 #include "DiskIO/IpcIo/IpcIoFile.h"
 #include "DiskIO/ReadRequest.h"
 #include "DiskIO/WriteRequest.h"
+#include "globals.h"
 #include "ipc/Messages.h"
 #include "ipc/Port.h"
 #include "ipc/Queue.h"
@@ -19,6 +20,7 @@
 #include "ipc/mem/Pages.h"
 #include "StatCounters.h"
 #include "SquidTime.h"
+#include "protos.h"
 
 CBDATA_CLASS_INIT(IpcIoFile);
 
index 091743601e74e552e8fed8d250c374f3a870ba48..ea89620973e1ea51e9c6aae5af8dbf847ae99e9c 100644 (file)
@@ -5,6 +5,7 @@
 #include "cbdata.h"
 #include "DiskIO/DiskFile.h"
 #include "DiskIO/IORequestor.h"
+#include "SquidString.h"
 #include "ipc/forward.h"
 #include "ipc/mem/Page.h"
 #include <list>
index cc38d791dfe374a86b62e924328d4c83533fb5a5..9fded819dc04791c8925e424bf5f15e5cb512dcb 100644 (file)
@@ -8,6 +8,7 @@
 #include "squid.h"
 #include "IpcIoFile.h"
 #include "IpcIoIOStrategy.h"
+#include "protos.h"
 
 bool
 IpcIoIOStrategy::shedLoad()
index 4d1b1954942272a1384f045da64b2da5644bc247..841800446ed09d125ca931aa97e0f1e8dd668529 100644 (file)
@@ -1,4 +1,4 @@
-#include "squid-old.h"
+#include "squid.h"
 #include "MmappedDiskIOModule.h"
 #include "MmappedIOStrategy.h"
 
index b10174e03adda549e82e5eacbe13148d76a95e2e..30c2cb3ac6bfa7105bb3a2c31dde29ec7e06ea8c 100644 (file)
@@ -5,11 +5,20 @@
  */
 
 #include "squid.h"
+#include "Debug.h"
 #include "DiskIO/IORequestor.h"
 #include "DiskIO/Mmapped/MmappedFile.h"
 #include "DiskIO/ReadRequest.h"
 #include "DiskIO/WriteRequest.h"
+#include "globals.h"
+#include "protos.h"
+
+#if HAVE_SYS_MMAN_H
 #include <sys/mman.h>
+#endif
+#if HAVE_SYS_STAT_H
+#include <sys/stat.h>
+#endif
 
 CBDATA_CLASS_INIT(MmappedFile);
 
index 6c6a013f34d032280d6d6c3a4940ee3c3bea30e0..41d4f679c3686fa8820b82251c1aa309ef5d06ea 100644 (file)
@@ -8,6 +8,7 @@
 #include "squid.h"
 #include "MmappedFile.h"
 #include "MmappedIOStrategy.h"
+#include "protos.h"
 
 bool
 MmappedIOStrategy::shedLoad()
index 87d4be34177892462fd76e631bda0470d9b4828c..6ab3f606b4ce8c204751e70fa561d8e2bcb46af0 100644 (file)
@@ -34,8 +34,6 @@
 #ifndef SQUID_READREQUEST_H
 #define SQUID_READREQUEST_H
 
-#include "squid-old.h"
-
 #include "cbdata.h"
 #include "RefCount.h"
 
index b36b75dc03a79aa85065ec99e0b719ef3856cb41..846cc98537d5f6a1db51df8d3cf94d54925bc778 100644 (file)
@@ -34,8 +34,6 @@
 #ifndef SQUID_WRITEREQUEST_H
 #define SQUID_WRITEREQUEST_H
 
-#include "squid-old.h"
-
 #include "cbdata.h"
 #include "RefCount.h"
 
index 58dcff15d32f9f7a22a837a6f8eadac8ee4b54cb..fc3ea3d356dcbd72d6e7119c9bb6d8526336450c 100644 (file)
@@ -33,6 +33,7 @@
  */
 
 #include "squid.h"
+#include "Debug.h"
 #include "EventLoop.h"
 #include "base/AsyncCallQueue.h"
 
index 75df854269818bbbe87ada299ec2a8fcd3f0b989..0ba0f0dd820926537cf7dfa24b7c7efed69d168c 100644 (file)
@@ -33,7 +33,6 @@
 #ifndef SQUID_EVENTLOOP_H
 #define SQUID_EVENTLOOP_H
 
-#include "squid-old.h"
 #include "Array.h"
 #include "AsyncEngine.h"
 #include "SquidTime.h"
index 9c7d2dde3bd7121f3178380d8c125548b0c24b7f..ade17e63b4670356ffdb436ddea7114c7c8dc5f9 100644 (file)
@@ -41,7 +41,7 @@
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "ExternalACLEntry.h"
 #include "SquidTime.h"
 
index aad8cdae4d221c5995145b89bc9b387299c90578..8cf193593ed96129cd6e54d9f210aa85fee56139 100644 (file)
@@ -2,11 +2,15 @@
  * $Id$
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "base/TextException.h"
 #include "SquidTime.h"
 #include "FadingCounter.h"
 
+#if HAVE_MATH_H
+#include <math.h>
+#endif /* HAVE_MATH_H */
+
 FadingCounter::FadingCounter(): horizon(-1), precision(10), delta(-1),
         lastTime(0), total(0)
 {
index b7c2df3bab16f1f4d9ec56fd2194dc5c41a5f361..b75e3252a242ffeb96797549d8f2bb6a0de605e4 100644 (file)
@@ -1,6 +1,8 @@
 #include "squid.h"
+#include "Debug.h"
 #include "HelperChildConfig.h"
 #include "globals.h"
+#include "protos.h"
 
 #include <string.h>
 
index caecd9e59fc97be678d5457fe4ca4c70c4f2a69b..110d282d56f7209b391bba18fac9ce80f20f747d 100644 (file)
@@ -33,7 +33,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "HttpBody.h"
 #include "MemBuf.h"
 
index 4b77ebec274362a9dcd7a1b021c519784dec202f..9d5411633f3903adb9357dc1f967d37f21aeb565 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "base/StringArea.h"
 #include "HttpHeader.h"
 #include "HttpHeaderStat.h"
 #include "HttpHdrCc.h"
 #include "StatHist.h"
 #include "Store.h"
+#include "protos.h"
 
 #if HAVE_MAP
 #include <map>
index c02e7025dd1512b52ba6e4990530b5e92932653e..4256a8bfbb7bb7e2390d37f006a33e302ab64ad5 100644 (file)
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
  *
  */
+
+#include "defines.h"
+#include "Debug.h"
+
 bool
 HttpHdrCc::isSet(http_hdr_cc_type id) const
 {
index 9b56771a3fe3d15185146c36180853ab5ae822cc..32d4115bb83f03a3b37819f1c342949a4ed4d964 100644 (file)
@@ -32,7 +32,9 @@
 #ifndef SQUID_HTTPHDRCC_H
 #define SQUID_HTTPHDRCC_H
 
+#include "enums.h"
 #include "MemPool.h"
+#include "Packer.h"
 #include "SquidString.h"
 
 /** Http Cache-Control header representation
index 7f48810f9aaab72f61261d39e9cc7ad2b538047a..f7d6b94a0aa7c65485fb56db40d70c793e42e7d2 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
+#include "Debug.h"
+#include "enums.h"
 #include "HttpHdrContRange.h"
+#include "HttpHeaderTools.h"
+#include "protos.h"
 
 /*
  *    Currently only byte ranges are supported
index c1f2cd79ebcd310371ae00ea385e644a8e557934..db8ae7a592e7aed21bcf215c6edb514b94b9fb6b 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "Store.h"
 #include "HttpHeaderRange.h"
 #include "client_side_request.h"
 #include "HttpReply.h"
+#include "protos.h"
 
 /*
  *    Currently only byte ranges are supported
index 34e94f3bb39097f02f7b94271ce15b003c0920f0..eac4a02549310fc12ac83892c22fc4b7537195b9 100644 (file)
  *
  */
 
-#include "squid-old.h"
-#include "Store.h"
+#include "squid.h"
+#include "HttpHdrSc.h"
 #include "HttpHeader.h"
 #include "HttpHeaderStat.h"
-#include "HttpHdrSc.h"
+#include "Store.h"
+#include "protos.h"
 
 #if HAVE_MAP
 #include <map>
index d26bd9c17597c356d33bb69c1c18c42c6e08f3a6..ff14f543a45eb2a0e3ad528a398a3faf2ae0b2c2 100644 (file)
@@ -37,6 +37,8 @@
 #include "dlink.h"
 #include "HttpHdrScTarget.h"
 
+class StatHist;
+
 /* http surogate control header field */
 
 class HttpHdrSc
index cc9571ad6c4892e23d57416883d23f85415f365e..aac03689ace6cdb73f8afc3f906b30071cb8bb0d 100644 (file)
@@ -35,7 +35,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "HttpHdrSc.h"
 #include "StatHist.h"
 
index 18b1843c2abedb4df3f50939415618c6898b41f4..af881a6e52b115c489903bdd048bb7039ce78fa7 100644 (file)
 #ifndef SQUID_HTTPHDRSURROGATECONTROLTARGET_H
 #define SQUID_HTTPHDRSURROGATECONTROLTARGET_H
 
-class Packer;
-class StoreEntry;
-
 #include "MemPool.h"
+#include "defines.h"
 #include "dlink.h"
 #include "SquidString.h"
 #include "typedefs.h"
 
+class StatHist;
+class Packer;
+class StoreEntry;
+
 /** Representation of HTTP Surogate-Control header field targeted directive
  *
  * \see HttpHdrSc
index 9ea97ffb2c0d2ceb5a426166eac8dcb94d1c994e..9a29cb7be09a7a926efdecdf82a22fabc286cb6c 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "base64.h"
-#include "HttpHdrContRange.h"
 #include "HttpHdrCc.h"
+#include "HttpHdrContRange.h"
 #include "HttpHdrSc.h"
 #include "HttpHeader.h"
 #include "HttpHeaderStat.h"
 #include "MemBuf.h"
 #include "mgr/Registration.h"
+#include "profiler/Profiler.h"
+#include "protos.h"
 #include "rfc1123.h"
 #include "StatHist.h"
 #include "Store.h"
index 223c375a38e4c4d20780062b2e58db030a023666..74d6dc53ee680d4047d09c45bd7bef2287b1543c 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/FilledChecklist.h"
 #include "acl/Gadgets.h"
-#include "client_side.h"
 #include "client_side_request.h"
+#include "client_side.h"
 #include "comm/Connection.h"
 #include "compat/strtoll.h"
 #include "fde.h"
 #include "HttpHeaderTools.h"
 #include "HttpRequest.h"
 #include "MemBuf.h"
+#include "protos.h"
+#include "Store.h"
+
 #if USE_SSL
 #include "ssl/support.h"
 #endif
-#include "Store.h"
+
 #include <algorithm>
-#if HAVE_STRING
 #include <string>
-#endif
 
 static void httpHeaderPutStrvf(HttpHeader * hdr, http_hdr_type id, const char *fmt, va_list vargs);
 
index 4824874efa327bbd3030dc049486571d46132d42..a954607ce047c94780c39b884f19980002068e24 100644 (file)
@@ -2,6 +2,7 @@
 #define SQUID_HTTPHEADERTOOLS_H
 
 #include "format/Format.h"
+#include "HttpHeader.h"
 
 #if HAVE_LIST
 #include <list>
@@ -89,4 +90,7 @@ public:
     /// whether fieldValue may contain macros
     bool quoted;
 };
+
+SQUIDCEXTERN int httpHeaderParseOffset(const char *start, int64_t * off);
+
 #endif
index bbe45366609af438a13c7d1e8cce902530618e24..772d35f2f315dd9dc611cd2befca567123dd25f1 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
+#include "Debug.h"
 #include "HttpMsg.h"
 #include "MemBuf.h"
+#include "profiler/Profiler.h"
+#include "protos.h"
 
 HttpMsg::HttpMsg(http_hdr_owner_type owner): header(owner),
         cache_control(NULL), hdr_sz(0), content_length(0), protocol(AnyP::PROTO_NONE),
index 6020014a145f282dfe68ff3a14b21690fb9e6164..81b33af0e5c4e81ba0c1d6dcbc5f515cc5bf9b6b 100644 (file)
@@ -35,6 +35,7 @@
 
 #include "typedefs.h"
 #include "HttpHeader.h"
+#include "HttpRequestMethod.h"
 #include "HttpStatusCode.h"
 #include "HttpVersion.h"
 #include "BodyPipe.h"
index 69c926bccf29cc4a818ecb8f55dc39c915c26bd0..eba3d4cc86aafc28d034a95591f2d5e1697e07d1 100644 (file)
@@ -2,6 +2,7 @@
 #include "Debug.h"
 #include "HttpParser.h"
 #include "structs.h"
+#include "profiler/Profiler.h"
 
 void
 HttpParser::clear()
index 26dd9f3e065bd4916a889e15e620f3e095fa5e92..aac0bdb7e9368d5584e69844104d5898c8daf237 100644 (file)
  *
  */
 
-#include "squid-old.h"
-#include "SquidTime.h"
-#include "Store.h"
+#include "squid.h"
+#include "acl/FilledChecklist.h"
+#include "globals.h"
 #include "HttpBody.h"
-#include "HttpReply.h"
-#include "HttpHdrContRange.h"
 #include "HttpHdrCc.h"
+#include "HttpHdrContRange.h"
 #include "HttpHdrSc.h"
-#include "acl/FilledChecklist.h"
+#include "HttpReply.h"
 #include "HttpRequest.h"
 #include "MemBuf.h"
+#include "protos.h"
+#include "SquidTime.h"
+#include "Store.h"
 
 /* local constants */
 
index 2ad8427df1eaf314c2f4be9ab2e6acb13c05068e..6d056e740c83fec7b8ba28cc378949f32654ae57 100644 (file)
@@ -34,6 +34,7 @@
 
 #include "HttpBody.h"
 #include "HttpMsg.h"
+#include "HttpRequest.h"
 #include "HttpStatusLine.h"
 
 extern void httpReplyInitModule(void);
index ec8c4244190bbd0e0f360795ae27950c34e511ae..a32ef2371ca5d2b040596efad48ba5e0d4fced5e 100644 (file)
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "AccessLogEntry.h"
+#include "acl/FilledChecklist.h"
+#include "client_side.h"
 #include "DnsLookupDetails.h"
-#include "HttpRequest.h"
+#include "err_detail_type.h"
 #include "HttpHdrCc.h"
-#if USE_AUTH
-#include "auth/UserRequest.h"
-#endif
 #include "HttpHeaderRange.h"
+#include "HttpRequest.h"
 #include "log/Config.h"
 #include "MemBuf.h"
+#include "protos.h"
 #include "Store.h"
+
+#if USE_AUTH
+#include "auth/UserRequest.h"
+#endif
 #if ICAP_CLIENT
 #include "adaptation/icap/icap_log.h"
 #endif
-#include "acl/FilledChecklist.h"
-#include "err_detail_type.h"
 
 HttpRequest::HttpRequest() : HttpMsg(hoRequest)
 {
@@ -703,3 +706,10 @@ HttpRequest::canHandle1xx() const
     // others must support 1xx control messages
     return true;
 }
+
+ConnStateData *
+HttpRequest::pinnedConnection() {
+    if (clientConnectionManager.valid() && clientConnectionManager->pinning.pinned)
+        return clientConnectionManager.get();
+    return NULL;
+}
index 35a3a443a9d8d2a48f7dd1ceb7ad1126737b403d..864f3e5c04434a5d5b2f150997e0960823044416 100644 (file)
 #ifndef SQUID_HTTPREQUEST_H
 #define SQUID_HTTPREQUEST_H
 
+#include "base/CbcPointer.h"
+#include "Debug.h"
+#include "HierarchyLogEntry.h"
+#include "HttpMsg.h"
+#include "HttpRequestMethod.h"
+
+#if USE_AUTH
+#include "auth/UserRequest.h"
+#endif
 #if USE_ADAPTATION
 #include "adaptation/History.h"
 #endif
 #if ICAP_CLIENT
 #include "adaptation/icap/History.h"
 #endif
-#include "base/CbcPointer.h"
-#include "client_side.h"
 #if USE_SQUID_EUI
 #include "eui/Eui48.h"
 #include "eui/Eui64.h"
 #endif
-#include "HierarchyLogEntry.h"
-#include "HttpMsg.h"
-#include "HttpRequestMethod.h"
+
+class ConnStateData;
 
 /*  Http Request */
 //DEAD?: extern int httpRequestHdrAllowedByName(http_hdr_type id);
@@ -229,11 +235,7 @@ public:
 
     static HttpRequest * CreateFromUrl(char * url);
 
-    ConnStateData *pinnedConnection() {
-        if (clientConnectionManager.valid() && clientConnectionManager->pinning.pinned)
-            return clientConnectionManager.get();
-        return NULL;
-    }
+    ConnStateData *pinnedConnection();
 
     /**
      * The client connection manager, if known;
index 0e96e853af9bf68f33d6c7981efd0e3a607c37ce..5a0c791ecd9536289eed78d3a9ba8f0d322d6f39 100644 (file)
@@ -34,7 +34,7 @@
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "HttpRequestMethod.h"
 #include "wordlist.h"
 
index 7a7d16de190daaa2179680441ae2f415543a1b82..86fa4e42f141bf81a6095791c1b1420435686795 100644 (file)
 #ifndef SQUID_HTTPREQUESTMETHOD_H
 #define SQUID_HTTPREQUESTMETHOD_H
 
-#include "squid-old.h"
-#include <iosfwd>
 #include "SquidString.h"
+#include "structs.h"
+
+#include <iosfwd>
 
 enum _method_t {
     METHOD_NONE,               /* 000 */
index 7278346a930c0e2935f3c85e202aa69183620620..3f2ae5d2cf1fa10c857e5b54e04ee316b46ce520 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
+#include "Debug.h"
 #include "HttpStatusLine.h"
+#include "protos.h"
+#include "Packer.h"
 
 /* local constants */
 /* AYJ: see bug 2469 - RFC2616 confirms stating 'SP characters' plural! */
index d9022eab126212282bcc7fdb6b6629785f01f58c..a77382915ae93726f131514e5e64385ef387b962 100644 (file)
@@ -77,4 +77,7 @@ SQUIDCEXTERN int httpStatusLineParse(HttpStatusLine * sline, const String &proto
 /* pack fields using Packer */
 SQUIDCEXTERN void httpStatusLinePackInto(const HttpStatusLine * sline, Packer * p);
 
+SQUIDCEXTERN const char *httpStatusString(http_status status);
+
+
 #endif /* SQUID_HTTPSTATUSLINE_H */
index f56d54ead4c8b6a9ac6c96c386ba3697f6233423..d718a8f206303bbd25f1f3f78d763bbbcad78e8c 100644 (file)
--- a/src/ICP.h
+++ b/src/ICP.h
  */
 
 #include "comm/forward.h"
+#include "icp_opcode.h"
 #include "ip/Address.h"
 #include "StoreClient.h"
 
+class HttpRequest;
+
 /**
  \ingroup ServerProtocolICPAPI
  *
index 9cebf7e2c36b5383fc4eef3041283d58e64436c8..b889e88d1e0f0269c909db3a377715cb3c22b716 100644 (file)
@@ -36,7 +36,7 @@
  * Use these to find memory leaks
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "LeakFinder.h"
 #include "Store.h"
 #include "SquidTime.h"
index 3c62b410829ccdf2bfdc173594023a3c9bca3e0c..996797efc3e84c7c2f2a8282b51d579f627385d0 100644 (file)
@@ -1,4 +1,4 @@
-#include "squid-old.h"
+#include "squid.h"
 
 /* The original code has this constant ./configure-able.
  * The "#else" branches use raw dlopen interface and have not been tested.
index fa598300646f4e430f9a2b5f9b7f5a38f0338b25..dede3eff271909a32f8dd90af5c258a72a5b2f21 100644 (file)
@@ -1,7 +1,8 @@
-#include "squid-old.h"
-#include "wordlist.h"
+#include "squid.h"
+#include "Debug.h"
 #include "LoadableModule.h"
 #include "LoadableModules.h"
+#include "wordlist.h"
 
 static void
 LoadModule(const char *fname)
index b4aa343c23b8161489b0e8488492127b3db0cd13..56a2de0f6bf5609b1d98d9ed75dbd98f5c38ac57 100644 (file)
@@ -426,7 +426,6 @@ squid_SOURCES = \
        send-announce.cc \
        $(SBUF_SOURCE) \
        $(SNMP_SOURCE) \
-       squid-old.h \
        SquidMath.h \
        SquidMath.cc \
        SquidNew.cc \
@@ -693,7 +692,6 @@ ufsdump_SOURCES = \
        tests/stub_HelperChildConfig.cc \
        HttpRequestMethod.cc \
        RemovalPolicy.cc \
-       squid-old.h \
        $(WIN32_SOURCE) \
        tests/stub_fd.cc
 ufsdump_LDADD = \
index 9afeba9ec1f4b2ab6bfe1c58a056c03ce695b5ad..ed14d1a4a46e4c187432a1f7c10b170f0985f66e 100644 (file)
  \endverbatim
  */
 
-/* if you have configure you can use this */
-#if defined(HAVE_CONFIG_H)
 #include "squid.h"
-#endif
+#include "MemBuf.h"
+#include "profiler/Profiler.h"
+#include "protos.h"
 
 #ifdef VA_COPY
 #undef VA_COPY
 #define VA_COPY __va_copy
 #endif
 
-#include "squid-old.h"
-#include "MemBuf.h"
-
 /* local constants */
 
 /* default values for buffer sizes, used by memBufDefInit */
index ad2c6208e34d58a9d32f0b5dca1dcd339c82da6b..d38d8d563e16ac7aad1222ab3278007625967cfd 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "comm/Connection.h"
-#include "MemObject.h"
-#include "HttpRequest.h"
+#include "Generic.h"
 #include "HttpReply.h"
+#include "HttpRequest.h"
+#include "MemBuf.h"
+#include "MemObject.h"
+#include "profiler/Profiler.h"
 #include "Store.h"
 #include "StoreClient.h"
-#include "Generic.h"
+#include "protos.h"
+
 #if USE_DELAY_POOLS
 #include "DelayPools.h"
 #endif
-#include "MemBuf.h"
 
 /* TODO: make this global or private */
 #if URL_CHECKSUM_DEBUG
index ee6fcc018c5848b1d5587aa99d8fdbad53022695..a24eb400347bfaa31aa18e94631874dc3ea40499 100644 (file)
@@ -43,6 +43,7 @@
 typedef void STMCB (void *data, StoreIOBuffer wroteBuffer);
 
 class store_client;
+class HttpRequest;
 #if USE_DELAY_POOLS
 #include "DelayId.h"
 #endif
index eb5d155beca1430c0d9087e9beb9e0291e42b104..a1162d053fe7107e807f9fb3257ae73170926ec9 100644 (file)
@@ -7,12 +7,13 @@
 
 #include "squid.h"
 #include "base/RunnersRegistry.h"
+#include "HttpReply.h"
 #include "ipc/mem/Page.h"
 #include "ipc/mem/Pages.h"
 #include "MemObject.h"
 #include "MemStore.h"
+#include "protos.h"
 #include "StoreStats.h"
-#include "HttpReply.h"
 
 /// shared memory segment path to use for MemStore maps
 static const char *ShmLabel = "cache_mem";
index 97580eaa8e2a992be16e2d7685db348615c5c599..686ff163cd54b5398a18bd32b5440152a388a0fa 100644 (file)
@@ -40,9 +40,8 @@
 #include "squid.h"
 
 #if USE_DELAY_POOLS
-#include "squid-old.h"
-#include "NullDelayId.h"
 #include "DelayPools.h"
+#include "NullDelayId.h"
 
 void *
 NullDelayId::operator new(size_t size)
index c66f3ce7e1f258e3dae34c35e065773c88afd8da..c05de548eadbd65334a133a23c6b1e0e22594545 100644 (file)
@@ -38,8 +38,8 @@
  */
 #ifndef NULLDELAYID_H
 #define NULLDELAYID_H
+
 #if USE_DELAY_POOLS
-#include "squid-old.h"
 #include "RefCount.h"
 #include "DelayIdComposite.h"
 
index a46e0c70d7fdeb1f3e123905060228817bb27571..4e50d1a5ad468c6c456d5a24a8e49a8c30caea26 100644 (file)
@@ -71,7 +71,7 @@
  */
 
 
-#include "squid-old.h"
+#include "squid.h"
 #include "Store.h"
 #include "MemBuf.h"
 
index 47aa61682137a6423d83695dd491dd0039111ed7..d4eb78b02565f5700995f41bfdc8d37ffa61ad5b 100644 (file)
@@ -35,6 +35,7 @@
 #include "squid.h"
 #include "compat/strtoll.h"
 #include "Parsing.h"
+#include "protos.h"
 
 /*
  * These functions is the same as atoi/l/f, except that they check for errors
index 259914d6340ffbf0d81e1bfaf729e47d702ce588..a5fc66bd74821bd7824cb46ec0febbf0aff180ee 100644 (file)
@@ -36,7 +36,7 @@
 #ifndef SQUID_PARSING_H
 #define SQUID_PARSING_H
 
-#include "squid-old.h"
+#include "ip/Address.h"
 
 extern double xatof(const char *token);
 extern int xatoi(const char *token);
index 696dc8f3778a6521ca2881d2ed511ec8b6c97853..81f72bda2b5856cc09402ce82b58174e099a2a99 100644 (file)
 #ifndef   SQUID_PEERDIGEST_H
 #define   SQUID_PEERDIGEST_H
 
-#include "squid-old.h"
-
 #if USE_CACHE_DIGESTS
 
 #include "cbdata.h"
-
 /* for CacheDigestGuessStats */
 #include "StatCounters.h"
 
index 1613d133fb6e4b738988bff56d0f17e10c7e4c1a..9a3d149dc3d993347c0967016a75d9ce4afbdee6 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 
 #if USE_XPROF_STATS
 
 #include "event.h"
 #include "mgr/Registration.h"
+#include "profiler/Profiler.h"
 #include "SquidMath.h"
 #include "Store.h"
 
index 0b78ef00675be7815674ea36db31d04d4eb2d8c2..bc45f2171eb4a8a18bc343930220226698564db6 100644 (file)
@@ -35,7 +35,6 @@
 #ifndef   SQUID_REMOVALPOLICY_H
 #define   SQUID_REMOVALPOLICY_H
 
-#include "squid-old.h"
 #include "cbdata.h"
 
 class RemovalPolicyWalker;
index be6c3d61deddd034b4ea4246f67c0e25f7913272..2c0047826247d177ef7b2c374af886c8ead25f50 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/Gadgets.h"
 #include "base/TextException.h"
 #include "comm/Connection.h"
 #include "comm/forward.h"
 #include "comm/Write.h"
-#include "Server.h"
-#include "Store.h"
-#include "HttpRequest.h"
-#include "HttpReply.h"
-#include "errorpage.h"
 #include "err_detail_type.h"
-#include "StatCounters.h"
+#include "errorpage.h"
+#include "HttpReply.h"
+#include "HttpRequest.h"
+#include "protos.h"
+#include "Server.h"
 #include "SquidTime.h"
+#include "StatCounters.h"
+#include "Store.h"
 
 #if USE_ADAPTATION
 #include "adaptation/AccessCheck.h"
index b742f89cda78469f873288667ebe82df594a6015..22aebfc71ef7223f503662121898dfee9f132aa5 100644 (file)
@@ -35,7 +35,7 @@
 
 #define _SQUID_EXTERNNEW_
 
-#include "squid-old.h"
+#include "squid.h"
 
 
 #ifdef __SUNPRO_CC
index a56c547d79d3866b2b0570b8448de20f36264808..dfdd1325729c36467e953d7a2924527bfb229d2a 100644 (file)
@@ -34,6 +34,9 @@
 #include "squid.h"
 #include "StatHist.h"
 
+#if HAVE_MATH_H
+#include <math.h>
+#endif
 /* Local functions */
 static StatHistBinDumper statHistBinDumper;
 
index 968d1337d1d9a146f84f9d9ede17fb1e9632c178..ee0079dfd5a3e680617d3710043f949785de93df 100644 (file)
  \ingroup FileSystems
  */
 
-#include "squid-old.h"
-#include "StoreIOBuffer.h"
-#include "Range.h"
-#include "RefCount.h"
-#include "CommRead.h"
 #include "comm/forward.h"
+#include "CommRead.h"
+#include "HttpRequestMethod.h"
 #include "Packer.h"
+#include "Range.h"
+#include "RefCount.h"
 #include "RemovalPolicy.h"
+#include "StoreIOBuffer.h"
 #include "StoreStats.h"
 
 #if USE_SQUID_ESI
@@ -57,8 +57,9 @@
 
 
 class AsyncCall;
-class StoreClient;
+class HttpRequest;
 class MemObject;
+class StoreClient;
 class StoreSearch;
 class SwapDir;
 
index 8749ed1b0a561d4064902a8f4d48b9bcf0ed365c..78a2c01ce65f9840b80e744dc45552a727a5f336 100644 (file)
@@ -34,6 +34,7 @@
 #ifndef SQUID_STORECLIENT_H
 #define SQUID_STORECLIENT_H
 
+#include "dlink.h"
 #include "StoreIOBuffer.h"
 #include "StoreIOState.h"
 
index 13e06309cd371be7e96ee4b2165f1e9b8e366b5c..b76ba15b8f29f00df95f5442a8e95fa07d7c5837 100644 (file)
@@ -34,7 +34,7 @@
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "StoreFileSystem.h"
 
 Vector<StoreFileSystem*> *StoreFileSystem::_FileSystems = NULL;
index 9ab38a5c19e31ab151f88ec33d1106f4f2f3eab4..9db8237b63c699a5ff94c5ed4445966e208200a2 100644 (file)
@@ -33,7 +33,6 @@
 #ifndef SQUID_STOREFILESYSTEM_H
 #define SQUID_STOREFILESYSTEM_H
 
-#include "squid-old.h"
 #include "Array.h"
 
 /* ****** DOCUMENTATION ***** */
index 0b18537e094179fbb0806f52a51d7c90d1aa1152..02325c19c1d7c2e9857dc3b1b94e859f2e780f10 100644 (file)
@@ -33,7 +33,9 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
+#include "Debug.h"
+#include "defines.h"
 #include "StoreIOState.h"
 
 void *
index 86a155abf1ab5cbc1ad2bdad59c9107030fd772f..379c4f48d6246bf13cbfbd4792f92c8fe634479c 100644 (file)
@@ -33,7 +33,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "StoreMeta.h"
 #include "Store.h"
 #include "MemObject.h"
index 81a869e3cb47ff54124171eadfc19e943020642d..b08f26f73696bddaff2207a88cf26d849d36ec2b 100644 (file)
  *
  */
 
-#include "squid-old.h"
-#include "StoreMetaMD5.h"
-#include "Store.h"
+#include "squid.h"
+#include "md5.h"
 #include "MemObject.h"
+#include "protos.h"
+#include "Store.h"
+#include "StoreMetaMD5.h"
 
 bool
 StoreMetaMD5::validLength(int len) const
index 78033e835bd09c4b1e1610193171f8d3fdd5bd27..236755b2c9c78d8381ea44c0d0bc9a7cf7d6049f 100644 (file)
@@ -33,7 +33,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "StoreMetaSTD.h"
 #include "Store.h"
 #include "MemObject.h"
index 58ff433557990d8f70e3b827090377d86647c471..da982ad7fcc6b5a47684e84a1afc80287cbdfb79 100644 (file)
@@ -32,7 +32,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "StoreMetaSTDLFS.h"
 #include "Store.h"
 #include "MemObject.h"
index 9dba63a9174bf26c037782696b1b80a2282e01e5..2df103d4f28efde6025b255b3dcc7b782ed22afd 100644 (file)
@@ -33,7 +33,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "StoreMetaURL.h"
 #include "Store.h"
 #include "MemObject.h"
index ed9f66c6186056be23f9f48bf649f64a20cb94f6..5d971b14dcaf38ccf1e73a66676cd6206a981f44 100644 (file)
@@ -33,7 +33,9 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
+#include "defines.h"
+#include "Debug.h"
 #include "StoreMetaUnpacker.h"
 #include "StoreMeta.h"
 
index 0c40c8a9d4f1af95199f8c0bc6512b05a1f882ce..1563028e035cb18f78dfd426ecee8cfea8112fe9 100644 (file)
@@ -33,7 +33,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "StoreMetaVary.h"
 #include "Store.h"
 #include "MemObject.h"
index ed0af92db79fe81a03580c1682ac1dd4fabe7a9c..09ccae4cc3cb2119026505573d61d0be9e7f25da 100644 (file)
@@ -33,7 +33,6 @@
 #ifndef SQUID_STORESEARCH_H
 #define SQUID_STORESEARCH_H
 
-#include "squid-old.h"
 #include "RefCount.h"
 #include "Store.h"
 
index de112be7059f10728735e65a86a1fa1b228afdd5..ab0276e2e9a6546bc254cfcfd182672a89a4738f 100644 (file)
@@ -59,7 +59,9 @@
  *      the value for MemObject->swap_hdr_sz.
  */
 
-#include "squid-old.h"
+#include "md5.h"
+#include "MemPool.h"
+#include "typedefs.h"
 
 /// maintains a 24-bit checksum over integer fields
 class SwapChecksum24
index ca16de82aa7f5e767440a970fb4d69952facc68d..e737506dbe67623c322d1941602a323c818dc661 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "base/TextException.h"
 #include "mgr/Registration.h"
+#include "profiler/Profiler.h"
+#include "protos.h"
 #include "Store.h"
 
+#if HAVE_LIMITS_H
+#include <limits.h>
+#endif
+
 int
 String::psize() const
 {
index 2bc3f8f4184a08ec937d5a67247e4ebfc3bc6e33..ba8cda01df07ba8dadcfb17b893e4ea76f2d19b6 100644 (file)
@@ -35,7 +35,7 @@
 #include <cstring>
 
 #if HAVE_STDINT_H
-#include <stdint.h> //for INT_MAX
+#include <stdint.h>
 #else /* HAVE_STDINT_H */
 #ifndef INT_MAX
 #define INT_MAX 1<<31 //hack but a safe bet
index 36272e9c0e8c4d3fe6fff1900ded4dae4fb1e2ba..0fa81ef1db77476f4c7cf107949234036b5c4212 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "compat/strtoll.h"
-#include "SwapDir.h"
-#include "StoreFileSystem.h"
 #include "ConfigOption.h"
+#include "protos.h"
+#include "StoreFileSystem.h"
+#include "SwapDir.h"
 
 SwapDir::SwapDir(char const *aType): theType(aType),
         max_size(0),
index aebf145e9fd627b21e9ed376ae7d99f28435ff88..6d8303853a46d6be96d83bd1d6145fc7af30ba72 100644 (file)
@@ -34,7 +34,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "squid_windows.h"
 
 #if _SQUID_MSWIN_
index 3dbe2d4ed8b034b70cf277b49a704fa45fae7e15..070ae7b6d9fa9c3f12a77c4c21582413594e2373 100644 (file)
 #include "squid.h"
 #include "acl/Acl.h"
 #include "acl/Checklist.h"
+#include "anyp/PortCfg.h"
 #include "ConfigParser.h"
 #include "Debug.h"
 #include "dlink.h"
-#include "anyp/PortCfg.h"
+#include "globals.h"
 
 const char *AclMatchedName = NULL;
 
index 06965314be2f02214f89869848209276ec3224bc..2979a62d29f38f6de5014450a634e8ff424033ce 100644 (file)
 
 #include "Array.h"
 #include "cbdata.h"
+#include "defines.h"
 #include "dlink.h"
+#include "MemPool.h"
+#include "structs.h"
 
 #if HAVE_OSTREAM
 #include <ostream>
index 5644855bd162cf5443a0a8d2643463337f19c996..20bc0ac64d563c28c8d1620e6190bc6a3f9f98ec 100644 (file)
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 
 #if USE_SQUID_EUI
 
 #include "acl/Arp.h"
 #include "acl/FilledChecklist.h"
+#include "Debug.h"
 #include "eui/Eui48.h"
 #include "ip/Address.h"
+#include "protos.h"
 #include "wordlist.h"
 
 static void aclParseArpList(SplayNode<Eui::Eui48 *> **curlist);
index fb46a5a897f98f99ffe20f95d7d76ce978e2aec5..60a074a2b93f0d7e81811a0526af524fecf21df4 100644 (file)
@@ -33,7 +33,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "mgr/Registration.h"
 #include "radix.h"
 #include "HttpRequest.h"
@@ -48,6 +48,7 @@
 #include "HttpReply.h"
 #include "ipcache.h"
 #include "forward.h"
+#include "protos.h"
 #include "wordlist.h"
 
 #define WHOIS_PORT 43
index 31ebdded92e57d4cd49319a2ca034199cc181eaa..02fa8dcbabe5d82b96300bb858fba39ecaa2fb76 100644 (file)
@@ -34,7 +34,7 @@
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/Checklist.h"
 #include "acl/Browser.h"
 #include "acl/RegexData.h"
index 76f362c4980f0129876f477f24c2d656c56d51bb..42d2b3121821b8d6fc71f0da3b12ecde8c461e4e 100644 (file)
@@ -34,7 +34,7 @@
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 
 /* MS Visual Studio Projects are monolithic, so we need the following
  * #if to exclude the SSL code from compile process when not needed.
 #include "acl/Certificate.h"
 #include "acl/Checklist.h"
 #include "acl/CertificateData.h"
-#include "fde.h"
+#include "HttpRequest.h"
 #include "client_side.h"
+#include "fde.h"
+#include "globals.h"
 
 
 int
index cb6a5f25d4ff3a4624358a255f58798314afa676..809e54dac35b8cb71ccff6f7523a8141dd77dc5e 100644 (file)
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/CertificateData.h"
 #include "acl/Checklist.h"
+#include "protos.h"
 #include "wordlist.h"
 
 ACLCertificateData::ACLCertificateData(SSLGETATTRIBUTE *sslStrategy) : attribute (NULL), values (), sslAttributeCall (sslStrategy)
index fe6997d3fb7bc0126b5c3c481801e08e29fcd1b1..abacaa6e3cd97101266ea5a763069b53750bb1d4 100644 (file)
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/Checklist.h"
+#include "Debug.h"
+#include "profiler/Profiler.h"
 
 void
 ACLChecklist::matchNonBlocking()
index 55c267b41aa550afc9dfbf61af2666e8cfd9a1d6..db961d09b62974c65f1a346d88443e29f0357c19 100644 (file)
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/DestinationDomain.h"
 #include "acl/Checklist.h"
 #include "acl/RegexData.h"
 #include "acl/DomainData.h"
 #include "HttpRequest.h"
 #include "ipcache.h"
+#include "protos.h"
 
 DestinationDomainLookup DestinationDomainLookup::instance_;
 
index 287d397f29fef8618dd8f0072b835a4c87655b5c..9e4c60429a1e8f300e453a629139b43bef53948b 100644 (file)
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/DestinationIp.h"
 #include "acl/FilledChecklist.h"
+#include "client_side.h"
 #include "comm/Connection.h"
 #include "HttpRequest.h"
-// for Config.*
 #include "structs.h"
 
 char const *
index b435e5a944fbf8c4ae9e384ed14ef0ab66666b90..385d2142c8e264cb9a1a5db8b4bda8c88bc19b6c 100644 (file)
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/DomainData.h"
 #include "acl/Checklist.h"
+#include "Debug.h"
+#include "protos.h"
 #include "wordlist.h"
 
 template<class T>
index 105388fe520774194e8e108ed057edec9fab68f4..5ccd8842a8a625433b75c0ef2ba4046f5504f30c 100644 (file)
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 
 #if USE_SQUID_EUI
 
 #include "acl/Eui64.h"
 #include "acl/FilledChecklist.h"
+#include "Debug.h"
 #include "eui/Eui64.h"
 #include "ip/Address.h"
+#include "protos.h"
 #include "wordlist.h"
 
 static void aclParseEuiList(SplayNode<Eui::Eui64 *> **curlist);
index 72e4111db38322ccb1de2c9c013ff661a13874a6..0af2670c05d3e4ee6f0237b3f05f04c2dc7abf8b 100644 (file)
@@ -34,7 +34,7 @@
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 
 #if USE_AUTH
 
@@ -43,7 +43,6 @@
 #include "acl/RegexData.h"
 #include "acl/UserData.h"
 #include "client_side.h"
-#include "HttpRequest.h"
 
 ACLExtUser::~ACLExtUser()
 {
index 7d19ed6629c11e1b78efc8468e5a4e228098afde..47a93550998bd5e13c553d10b769db87c46337fc 100644 (file)
@@ -1,14 +1,15 @@
-#include "squid-old.h"
-#include "HttpRequest.h"
-#include "HttpReply.h"
+#include "squid.h"
+#include "acl/FilledChecklist.h"
 #include "client_side.h"
+#include "comm/Connection.h"
+#include "comm/forward.h"
+#include "HttpReply.h"
+#include "HttpRequest.h"
 #if USE_AUTH
 #include "auth/UserRequest.h"
 #include "auth/AclProxyAuth.h"
 #endif
-#include "acl/FilledChecklist.h"
-#include "comm/Connection.h"
-#include "comm/forward.h"
+
 
 CBDATA_CLASS_INIT(ACLFilledChecklist);
 
index dbc297de370e5e868b134933e4417e13023cd63e..6c926d85ed2824e0dbd401be5e9d0ffe64fab58f 100644 (file)
@@ -11,6 +11,7 @@
 
 class ExternalACLEntry;
 class ConnStateData;
+class HttpRequest;
 
 /** \ingroup ACLAPI
     ACLChecklist filled with specific data, representing Squid and transaction
index f42f806f5fb25bed383446c7b5b4b240f61fe20e..58c14654e6bd9e0298b5bea23df054f923ccf1c9 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/Acl.h"
 #include "acl/Checklist.h"
 #include "acl/Strategised.h"
 #include "acl/Gadgets.h"
 #include "ConfigParser.h"
 #include "errorpage.h"
+#include "globals.h"
 #include "HttpRequest.h"
+#include "protos.h"
 
 
 /* does name lookup, returns page_id */
index c44f60391e490926116748c5c3ab427aa3a0dedf..70bf4f41abef02831576969273beb17adda9d67a 100644 (file)
@@ -1,4 +1,4 @@
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/HierCode.h"
 #include "acl/HierCodeData.h"
 #include "acl/Checklist.h"
index 7345bc417d04f0089564cc0a864aedccd9a58b2f..3ec0534d69d2177236b6cbfcd96dbec347598e6f 100644 (file)
@@ -1,7 +1,8 @@
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/HierCodeData.h"
 #include "acl/Checklist.h"
 #include "hier_code.h"
+#include "protos.h"
 #include "wordlist.h"
 
 ACLHierCodeData::ACLHierCodeData()
index 9db21b5762a7771f15237cf915534a7148a71458..fcfc048c0d8d85fb19003cef7762ee930614fcfe 100644 (file)
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/HttpHeaderData.h"
 #include "acl/Checklist.h"
 #include "acl/Acl.h"
 #include "acl/RegexData.h"
+#include "Debug.h"
+#include "protos.h"
 #include "wordlist.h"
 #include "ConfigParser.h"
 
index 6fba27437bbdb3f60941d722448587deac7d0516..89ca1ecb05928bf699665519581e34911f86a351 100644 (file)
@@ -33,7 +33,7 @@
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/HttpRepHeader.h"
 #include "acl/HttpHeaderData.h"
 #include "acl/Checklist.h"
index d9d2259030cfbe79b925bc3f1037710ee9fd686c..169d338356300a3f44698b87e6a14f89bfb56ebb 100644 (file)
@@ -33,7 +33,7 @@
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/HttpReqHeader.h"
 #include "acl/HttpHeaderData.h"
 #include "acl/Checklist.h"
index dfb7a7a77862a017ee02f73c0dd46f9066f501c1..05fc730fc70c869420c560ed792cb4b640ce8058 100644 (file)
  */
 
 #include "squid.h"
-#if _SQUID_CYGWIN_
-#include <squid_windows.h>
-#endif
-#include "squid-old.h"
 
 #include "acl/HttpStatus.h"
 #include "acl/FilledChecklist.h"
+#include "Debug.h"
 #include "HttpReply.h"
+#include "protos.h"
 #include "wordlist.h"
 
+#if HAVE_LIMITS_H
+#include <limits.h>
+#endif
+
 static void aclParseHTTPStatusList(SplayNode<acl_httpstatus_data *> **curlist);
 static int aclHTTPStatusCompare(acl_httpstatus_data * const &a, acl_httpstatus_data * const &b);
 static int aclMatchHTTPStatus(SplayNode<acl_httpstatus_data*> **dataptr, http_status status);
index 7a83665047c97296a233457aecf10b2f1c55268a..863711ce15e421606e06ec6e4e0b64af3ac57b0f 100644 (file)
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/IntRange.h"
+#include "Debug.h"
 #include "wordlist.h"
 #include "Parsing.h"
+#include "protos.h"
 
 /* explicit instantiation required for some systems */
 /** \cond AUTODOCS-IGNORE */
index eb6ef92fb3380484670b24d348d7f9fb5f030047..7aa3d0515523a49e48e1712a1c2c1e2b73f9723b 100644 (file)
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
-//#include "compat/getaddrinfo.h"
+#include "squid.h"
 #include "acl/Ip.h"
 #include "acl/Checklist.h"
+#include "Debug.h"
 #include "ip/tools.h"
 #include "MemBuf.h"
+#include "protos.h"
 #include "wordlist.h"
 
 void *
index b5ffb359e2adbecf6f4d8d556d48f115b61649a5..ab04b796eeaf3f620c643ff6cf76f53b7ff5cc41 100644 (file)
@@ -33,7 +33,7 @@
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/LocalIp.h"
 #include "acl/FilledChecklist.h"
 
index 33139670fc4b572b166aa3b248037ce5ba60d8f3..bf640cd9e02391e04f75c3ba5c4206a6d326fe30 100644 (file)
@@ -33,7 +33,7 @@
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/LocalPort.h"
 #include "acl/IntRange.h"
 #include "acl/Checklist.h"
index c44737d9c8c24f4d658a15b93ccba979b25cbb11..05fc0be9cb52dd34be451466030c7e6828bdad3e 100644 (file)
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/FilledChecklist.h"
 #include "acl/MaxConnection.h"
+#include "Debug.h"
+#include "protos.h"
 #include "wordlist.h"
 
-
-
 ACL *
 ACLMaxConnection::clone() const
 {
index 25574a27264a8a5d9e7b391e73cb9c3db824097a..5039967ee4950ddd6a016c5e8253f8de577f09e0 100644 (file)
@@ -33,7 +33,7 @@
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/Method.h"
 #include "acl/MethodData.h"
 #include "acl/Checklist.h"
index c5d71ec34a5edf58ae1fbb77ce4d0f89a9928a10..20ffbf2e34691215ef13a1ee7401e1f11ac51180 100644 (file)
 
 #include "acl/Strategy.h"
 #include "acl/Strategised.h"
+#include "HttpRequestMethod.h"
 
 /// \ingroup ACLAPI
 class ACLMethodStrategy : public ACLStrategy<HttpRequestMethod>
 {
 
 public:
-    virtual int match (ACLData<MatchType> * &, ACLFilledChecklist *);
+    virtual int match (ACLData<ACLStrategy::MatchType> * &, ACLFilledChecklist *);
     virtual bool requiresRequest() const {return true;}
 
     static ACLMethodStrategy *Instance();
index 8d43522795ce239a41e4463431ed5169a8cfe095..eaa9bdf525da6b1030a63ff5457899524273725e 100644 (file)
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/MethodData.h"
 #include "acl/Checklist.h"
 #include "HttpRequestMethod.h"
+#include "protos.h"
 #include "wordlist.h"
 
 int ACLMethodData::ThePurgeCount = 0;
index f94f936e4ccd4dde0a910ddc28dcc769a97638fa..5fecf6f22da89aa3b5613e87b106b175e43755ee 100644 (file)
@@ -38,6 +38,7 @@
 #include "acl/Acl.h"
 #include "acl/Data.h"
 #include "CbDataList.h"
+#include "HttpRequestMethod.h"
 
 /// \ingroup ACLAPI
 class ACLMethodData : public ACLData<HttpRequestMethod>
index 97b7f08d0d543b096db667f4286fcfc23a64246d..c86a2b49119835ce246401e0807b591ce09986d0 100644 (file)
@@ -33,7 +33,7 @@
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/MyPortName.h"
 #include "acl/StringData.h"
 #include "acl/Checklist.h"
index 314636b61c8cea32ef7fc28bb8459fb737b6b630..e8c7e27919e117858aeb4ba4a2d4800dbce8549c 100644 (file)
@@ -1,4 +1,4 @@
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/PeerName.h"
 #include "acl/RegexData.h"
 #include "acl/StringData.h"
index 76646cfb9055dcd3814e80a92cd525e6a58e239d..6d0a4e0a6e671c721693827fc52b61d3049fc0b8 100644 (file)
@@ -33,7 +33,7 @@
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/Protocol.h"
 #include "acl/ProtocolData.h"
 #include "acl/Checklist.h"
index 8f6838a7a58b570432df6fb4cb92afe985e349b0..6acc18a3d68da658bd8fda5099f5f76c669db7af 100644 (file)
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/ProtocolData.h"
 #include "acl/Checklist.h"
+#include "Debug.h"
+#include "protos.h"
 #include "URLScheme.h"
 #include "wordlist.h"
 
index 3b70b7458e2fa52ca2ccd4277a6f8e1e41ee17b9..7d6630910e6d0178dbc53a6151f3c9bd53c357df 100644 (file)
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 
 #include "acl/FilledChecklist.h"
 #include "acl/Random.h"
+#include "Debug.h"
+#include "protos.h"
 #include "wordlist.h"
 
 ACL *
index adf1876513963a7cdf50da8d7e2456de1384888c..415903aa6a6f2756a87f0adbe4a9557c75a33939 100644 (file)
@@ -34,7 +34,7 @@
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/Referer.h"
 #include "acl/Checklist.h"
 #include "acl/RegexData.h"
index 2a4a6d269e094c3c01a1c6f7224e33c3ae8b0a38..4fcb56f48b1bb1958c7db9d4a030d876a40b13bd 100644 (file)
  * Copyright (c) 2011, Marcus Kool
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/RegexData.h"
 #include "acl/Checklist.h"
 #include "acl/Acl.h"
-#include "wordlist.h"
 #include "ConfigParser.h"
+#include "Debug.h"
+#include "protos.h"
+#include "wordlist.h"
 
 static void
 aclDestroyRegexList(relist * data)
index 13a5c7957dc38b2598b43d2a9c9944c7489de75d..265be3efeb18c05a845cae4dec8dd7327814e4ba 100644 (file)
@@ -34,7 +34,7 @@
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/ReplyMimeType.h"
 #include "acl/Checklist.h"
 #include "acl/RegexData.h"
index 153796250cf2a32b2208d33a2067c6df5d7622cb..d7f96dd3f30d6c64800ad092cb35b97c4d4616c3 100644 (file)
@@ -34,7 +34,7 @@
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/RequestMimeType.h"
 #include "acl/Checklist.h"
 #include "acl/RegexData.h"
index ace22a3a4273a7fb943cff03312edd79fb36b237..61ff7fb1744128641bf409043ff219cbe3910fe0 100644 (file)
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/SourceDomain.h"
 #include "acl/Checklist.h"
 #include "acl/RegexData.h"
 #include "acl/DomainData.h"
 #include "HttpRequest.h"
+#include "protos.h"
 
 SourceDomainLookup SourceDomainLookup::instance_;
 
index 834ab282857ca86ca4484a902a75fdf6aa0051b1..654dbade07b1d88f1c7732f87f7968f6bf4ef774 100644 (file)
@@ -33,7 +33,7 @@
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/SourceIp.h"
 #include "acl/FilledChecklist.h"
 
index a062c127228871a5995c2fd96fa6f7bda5042647..c5d45b147c89b20558ff21a8439d60858e4f5e30 100644 (file)
@@ -3,7 +3,7 @@
  * $Id$
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/SslError.h"
 #include "acl/SslErrorData.h"
 #include "acl/Checklist.h"
index 12f3b88d234ab5c4a76419c21a184e29ce37e61c..2b55f8f4554ca7e804a0cd94983159e3f13f4e17 100644 (file)
@@ -2,9 +2,10 @@
  * $Id$
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/SslErrorData.h"
 #include "acl/Checklist.h"
+#include "protos.h"
 #include "wordlist.h"
 
 ACLSslErrorData::ACLSslErrorData() : values (NULL)
index bca4792b76cb9a47840354e50a16ca6a9e258e1a..278d8f2ec52483eb51dea3c850cf768e4890c8fd 100644 (file)
@@ -34,7 +34,7 @@
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/Strategised.h"
 
 /*
index ea71c016acfdc4489af1b00c56f628fb7700fb17..b257edad2ccddb5c44cbcdf9641c67f9a6bb54aa 100644 (file)
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/StringData.h"
 #include "acl/Checklist.h"
+#include "protos.h"
 #include "wordlist.h"
 
-
 ACLStringData::ACLStringData() : values (NULL)
 {}
 
index 79e919e5b8ba38583d7acc94510616ea2c90120a..ef4ac006950c85f0ffc345d125c7167b205a8e5b 100644 (file)
@@ -34,7 +34,7 @@
  * Copyright (c) 2009, Henrik Nordstrom <henrik@henriknordstrom.net>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/Tag.h"
 #include "acl/StringData.h"
 #include "acl/Checklist.h"
index 7a871dbe03f21224512b2c157ce087e41ab6b308..d4007ec071edb2f55d52774d6fc91ec3c9a56b3b 100644 (file)
@@ -34,7 +34,7 @@
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/Time.h"
 #include "acl/TimeData.h"
 #include "SquidTime.h"
index 01ff2c7bb26584ba6b22fbe42c2f4f3ffe04787a..68184f18d81488809d3ce56927af37990738a339 100644 (file)
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/TimeData.h"
 #include "acl/Checklist.h"
+#include "Debug.h"
+#include "protos.h"
 #include "wordlist.h"
 
 ACLTimeData::ACLTimeData () : weekbits (0), start (0), stop (0), next (NULL) {}
index 53bba00c9322a84b2c206c6ab915d06be16163b6..9457c43c85c7c7fd212006e9bc82ecf66e36b700 100644 (file)
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/Url.h"
 #include "acl/Checklist.h"
 #include "acl/RegexData.h"
+#include "protos.h"
 #include "rfc1738.h"
 
 int
index 792a7015a0f18b3670ced44efab6cb832eb154ee..cd1a8bae52ee9077df375b1ed039ab0584aa06e0 100644 (file)
@@ -34,7 +34,7 @@
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/UrlPath.h"
 #include "acl/Checklist.h"
 #include "acl/RegexData.h"
index 9078da23f68468929f98c6ab6931549423dfc58b..e575c563f8107dee26ddceb17362eff8a12ef321 100644 (file)
@@ -33,7 +33,7 @@
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/UrlPort.h"
 #include "acl/IntRange.h"
 #include "acl/Checklist.h"
index 4e1e732f0f2323782a45da16984c0f2416156fa1..bcebedd4f92e7eb36ccf84d6e4558d495debf9de 100644 (file)
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/UserData.h"
 #include "acl/Checklist.h"
+#include "Debug.h"
 #include "wordlist.h"
 #include "ConfigParser.h"
 
index 9a8ead819d5dd4fbe869b70e5a8a84cafd97bd25..0470b005d62133573ecefedc1d6caf7ad671afec 100644 (file)
@@ -1,17 +1,18 @@
-#include "squid-old.h"
-#include "structs.h"
-
-#include "ConfigParser.h"
-#include "HttpRequest.h"
-#include "HttpReply.h"
+#include "squid.h"
 #include "acl/FilledChecklist.h"
+#include "adaptation/AccessCheck.h"
+#include "adaptation/AccessRule.h"
+#include "adaptation/Config.h"
 #include "adaptation/Initiator.h"
 #include "adaptation/Service.h"
 #include "adaptation/ServiceGroups.h"
-#include "adaptation/AccessRule.h"
-#include "adaptation/Config.h"
-#include "adaptation/AccessCheck.h"
+#include "base/AsyncJobCalls.h"
 #include "base/TextException.h"
+#include "ConfigParser.h"
+#include "globals.h"
+#include "HttpReply.h"
+#include "HttpRequest.h"
+#include "structs.h"
 
 /** \cond AUTODOCS-IGNORE */
 cbdata_type Adaptation::AccessCheck::CBDATA_AccessCheck = CBDATA_UNKNOWN;
index e76e665966918100b159e1a53c35a106e802bcca..5dc18611445e6c74d0d2ca1c0b33f47eb49b824b 100644 (file)
@@ -1,4 +1,4 @@
-#include "squid-old.h"
+#include "squid.h"
 #include "structs.h"
 
 #include "ConfigParser.h"
@@ -6,7 +6,7 @@
 #include "adaptation/AccessRule.h"
 #include "adaptation/Service.h"
 #include "adaptation/ServiceGroups.h"
-
+#include "Debug.h"
 
 int Adaptation::AccessRule::LastId = 0;
 
index d22300b3dbe8bd86d52bc920c02fb5beb47dd0a8..9fc5fe978326f515adb9c7fabc02c01f5ff04570 100644 (file)
  *
  */
 
-#include "squid-old.h"
-#include "structs.h"
-
-#include "ConfigParser.h"
-#include "acl/Gadgets.h"
-#include "Store.h"
-#include "Array.h"    // really Vector
+#include "squid.h"
 #include "acl/FilledChecklist.h"
+#include "acl/Gadgets.h"
+#include "adaptation/AccessRule.h"
 #include "adaptation/Config.h"
+#include "adaptation/History.h"
 #include "adaptation/Service.h"
-#include "adaptation/AccessRule.h"
 #include "adaptation/ServiceGroups.h"
-#include "adaptation/History.h"
+#include "Array.h"
+#include "ConfigParser.h"
+#include "globals.h"
+#include "HttpReply.h"
 #include "HttpRequest.h"
-
+#include "Store.h"
+#include "structs.h"
 
 bool Adaptation::Config::Enabled = false;
 char *Adaptation::Config::masterx_shared_name = NULL;
index 20caf34e7d299c255d5e0d9f3ef0b08837ae0a15..da3234b7a5fc060db052af32a4d3b6dd88110167 100644 (file)
@@ -6,9 +6,12 @@
 #include "base/AsyncCall.h"
 #include "adaptation/forward.h"
 #include "adaptation/Elements.h"
+#include "SquidString.h"
 
 class acl_access;
 class ConfigParser;
+class HttpRequest;
+class HttpReply;
 
 namespace Adaptation
 {
index 8d55a4f36e77362274177deaadede5299ebdcfbf..613ea0ed08e7bb0c4d9e5c9b6e6e10cc1b477bdd 100644 (file)
@@ -1,4 +1,4 @@
-#include "squid-old.h"
+#include "squid.h"
 #include "adaptation/Elements.h"
 
 const char *Adaptation::crlf = "\r\n";
index ab58961b3e3afa7fc0888384da6af67aefddc4b5..3c4c4ded0b8a255e3166d28a2ff4dfafd2115323 100644 (file)
@@ -3,6 +3,7 @@
 #include "adaptation/History.h"
 #include "base/TextException.h"
 #include "globals.h"
+#include "protos.h"
 #include "SquidTime.h"
 
 /// impossible services value to identify unset theNextServices
index 38d29f0bab7fafd31fc5c0fe073da677970513e9..c40dd5bfb95dcd1fce08cbb43f6efda0ac6390ca 100644 (file)
@@ -2,7 +2,7 @@
  * DEBUG: section 93    ICAP (RFC 3507) Client
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "HttpMsg.h"
 #include "adaptation/Answer.h"
 #include "adaptation/Initiator.h"
index af6c481b0e570f863f7e41af52ca4ff6fcd8cbdd..511e3437dfaed7443acd5489a67e6e7620fab5f0 100644 (file)
@@ -2,7 +2,7 @@
  * DEBUG: section 93    ICAP (RFC 3507) Client
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "adaptation/Initiate.h"
 #include "adaptation/Initiator.h"
 #include "base/AsyncJobCalls.h"
index 1fb72680a2117863cecfe1c7cccf9e6205b28785..83302c78e36b63522169fafee68f420fa015b05b 100644 (file)
@@ -2,7 +2,7 @@
  * DEBUG: section 93    Adaptation
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "adaptation/Answer.h"
 #include "adaptation/Config.h"
 #include "adaptation/Iterator.h"
index 334a0f318bd1957cdb2b84fcb4961239850a523a..dd5ce3867fbdfcf405a7d73502d1f6262a7f74b3 100644 (file)
@@ -2,7 +2,7 @@
  * DEBUG: section 93    Adaptation
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "adaptation/Message.h"
 #include "base/TextException.h"
 #include "HttpMsg.h"
index 49a742598f5e60a0c52687394e10aba1cdc66828..dd297d8a91ae0682b23dfcc198440ba511502813 100644 (file)
@@ -2,7 +2,7 @@
  * DEBUG: section 93    Adaptation
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "HttpRequest.h"
 #include "adaptation/ServiceFilter.h"
 #include "adaptation/Service.h"
index b6f942de6dbd38709adb3e25936e486fb33c1d9f..779a288ed6729a0b9d2f2b311571d1a047cbfde9 100644 (file)
@@ -2,9 +2,11 @@
  * DEBUG: section 93    Adaptation
  */
 
-#include "squid-old.h"
-#include "ConfigParser.h"
+#include "squid.h"
 #include "adaptation/ServiceConfig.h"
+#include "ConfigParser.h"
+#include "Debug.h"
+#include "globals.h"
 #include "ip/tools.h"
 #include <set>
 
index 095cd2a383d150e2060058088ac9a32445cecc24..eb3965b89c49a3bfaf387eeaa7d8acd6a5ca69a1 100644 (file)
@@ -1,4 +1,4 @@
-#include "squid-old.h"
+#include "squid.h"
 #include "HttpRequest.h"
 #include "HttpReply.h"
 #include "adaptation/ServiceFilter.h"
index b77e56e2389f514b008020d7108cae97d740fee6..0838aad6e74d7982919a13ccf30a23377801e93b 100644 (file)
@@ -1,12 +1,14 @@
-#include "squid-old.h"
-
-#include "ConfigParser.h"
-#include "adaptation/Config.h"
+#include "squid.h"
 #include "adaptation/AccessRule.h"
+#include "adaptation/Config.h"
 #include "adaptation/DynamicGroupCfg.h"
 #include "adaptation/Service.h"
 #include "adaptation/ServiceFilter.h"
 #include "adaptation/ServiceGroups.h"
+#include "ConfigParser.h"
+#include "Debug.h"
+#include "protos.h"
+#include "wordlist.h"
 
 
 Adaptation::ServiceGroup::ServiceGroup(const String &aKind, bool allSame):
index 98ed01acb4c725ccd5367d4e1bcd9cb0fdc81e2f..e6cd269caeda422925846f25dd4d8c1d25c09bce 100644 (file)
@@ -2,7 +2,7 @@
  * $Id$
  * DEBUG: section 93    eCAP Interface
  */
-#include "squid-old.h"
+#include "squid.h"
 
 #include "adaptation/ecap/Host.h"
 #include "adaptation/ecap/ServiceRep.h"
index 3328910511c683cb8c0b1595cc5f8985ee467932..629ae1d2309380128789a8feb04bebb54f2b5d82 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * DEBUG: section 93    eCAP Interface
  */
-#include "squid-old.h"
+#include "squid.h"
 #include <libecap/adapter/service.h>
 #include <libecap/common/names.h>
 #include <libecap/common/registry.h>
index 25309e99ec1582c2791afcd2588a83351a339ae9..302da800ea7f6840e5274f29d14f555b48b4e188 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * DEBUG: section 93    eCAP Interface
  */
-#include "squid-old.h"
+#include "squid.h"
 #include "HttpRequest.h"
 #include "HttpReply.h"
 #include "BodyPipe.h"
index 65db515a3d9da76bf1c35a8d74d1067180383704..3378b7908a4adbba8a895a9692eb80f8d43bb9cb 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * DEBUG: section 93    eCAP Interface
  */
-#include "squid-old.h"
+#include "squid.h"
 #include <list>
 #include <libecap/adapter/service.h>
 #include <libecap/common/options.h>
index 85fecf563a177a03dac30a41abad2aacd80433ca..4a55190ad493964bba5a1def94a7408e2a691e52 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * DEBUG: section 93    eCAP Interface
  */
-#include "squid-old.h"
+#include "squid.h"
 #include <libecap/common/area.h>
 #include <libecap/common/delay.h>
 #include <libecap/common/named_values.h>
index c8b8fd1fd14528524f93eba939bd781ece8bb820..a335b83ea707289229ded8e6838d21c73cb41814 100644 (file)
@@ -1,4 +1,5 @@
-#include "squid-old.h"
+#include "squid.h"
+#include "Debug.h"
 #include "adaptation/icap/Client.h"
 
 void Adaptation::Icap::InitModule()
index 47da4f1e6bf8cd35199c7c3786d3f085161726b3..8555301653bb0afd4550033e63fc99aadfd2cb05 100644 (file)
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 
 #include "ConfigParser.h"
 #include "Store.h"
-#include "Array.h"     // really Vector
+#include "Array.h"
 #include "adaptation/icap/Config.h"
 #include "adaptation/icap/ServiceRep.h"
 #include "HttpRequest.h"
index 26de7d8db81a61de6e75066af945c8dd2794f9df..ac82c70ad419137f5150c7bf2a9ac88a505656af 100644 (file)
@@ -1,4 +1,4 @@
-#include "squid-old.h"
+#include "squid.h"
 #include "adaptation/icap/Elements.h"
 
 // TODO: remove this file?
index 8cfc856ca75ee87ca8fa5e2c4117b91066f5cadd..3ac7eb873d8ad1e719c17882a434757e3541c81f 100644 (file)
@@ -1,5 +1,6 @@
-#include "squid-old.h"
+#include "squid.h"
 #include "adaptation/icap/History.h"
+#include "Debug.h"
 #include "globals.h"
 #include "SquidTime.h"
 
index 2fb08343b53e22cd970c8b9801faeaa17fea4b05..d72c28705d2c7b4259307bf64f329024b4be5c7e 100644 (file)
@@ -1,8 +1,9 @@
 #ifndef SQUID_ICAPHISTORY_H
 #define SQUID_ICAPHISTORY_H
 
-#include "RefCount.h"
 #include "enums.h"
+#include "RefCount.h"
+#include "SquidString.h"
 
 namespace Adaptation
 {
index b59ba4d71ce5f487ce9c512c58e8a6efbc8a571d..49f56a821ee55ca85a396d100210e0b4c09467eb 100644 (file)
@@ -2,7 +2,7 @@
  * DEBUG: section 93    ICAP (RFC 3507) Client
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/FilledChecklist.h"
 #include "adaptation/Answer.h"
 #include "adaptation/icap/Launcher.h"
@@ -10,6 +10,7 @@
 #include "adaptation/icap/ServiceRep.h"
 #include "adaptation/icap/Config.h"
 #include "base/TextException.h"
+#include "globals.h"
 #include "HttpMsg.h"
 #include "HttpRequest.h"
 #include "HttpReply.h"
index daee78654ef7dfd35a927f3c08472f56b483fa95..49caee611b50ed85913a1b840d259720217458e2 100644 (file)
@@ -2,7 +2,7 @@
  * DEBUG: section 93    ICAP (RFC 3507) Client
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "AccessLogEntry.h"
 #include "adaptation/Answer.h"
 #include "adaptation/History.h"
 #include "ChunkedCodingParser.h"
 #include "comm.h"
 #include "comm/Connection.h"
+#include "err_detail_type.h"
 #include "HttpMsg.h"
-#include "HttpRequest.h"
 #include "HttpReply.h"
+#include "HttpRequest.h"
+#include "protos.h"
 #include "SquidTime.h"
-#include "err_detail_type.h"
 
 // flow and terminology:
 //     HTTP| --> receive --> encode --> write --> |network
index 9ae9d3e70c77c602e78cf5fb546b2b5b06af8a5b..4607d1543f64c228679e2263a32d5c000c01cc6a 100644 (file)
@@ -2,17 +2,17 @@
  * DEBUG: section 93    ICAP (RFC 3507) Client
  */
 
-#include "squid-old.h"
-#include "comm.h"
-#include "HttpReply.h"
-
+#include "squid.h"
 #include "adaptation/Answer.h"
-#include "adaptation/icap/OptXact.h"
-#include "adaptation/icap/Options.h"
 #include "adaptation/icap/Config.h"
+#include "adaptation/icap/Options.h"
+#include "adaptation/icap/OptXact.h"
 #include "base/TextException.h"
-#include "SquidTime.h"
+#include "comm.h"
+#include "HttpReply.h"
 #include "HttpRequest.h"
+#include "protos.h"
+#include "SquidTime.h"
 
 CBDATA_NAMESPACED_CLASS_INIT(Adaptation::Icap, OptXact);
 CBDATA_NAMESPACED_CLASS_INIT(Adaptation::Icap, OptXactLauncher);
index f216658027e75db2dcba8b697bf7f6aa1308cb75..f1db7cf2166595e53c4560dd6189331da609170c 100644 (file)
@@ -1,8 +1,9 @@
-#include "squid-old.h"
+#include "squid.h"
 #include "adaptation/icap/Config.h"
 #include "adaptation/icap/Options.h"
 #include "base/TextException.h"
 #include "HttpReply.h"
+#include "protos.h"
 #include "SquidTime.h"
 #include "wordlist.h"
 
index 22d93d183a089775254ac3d2fa2b6828146e8a71..641b3a6715c9279dc2c24487dd0acb5ebd156f26 100644 (file)
@@ -34,9 +34,9 @@
 #ifndef SQUID_ICAPOPTIONS_H
 #define SQUID_ICAPOPTIONS_H
 
-#include "squid-old.h"
 #include "adaptation/icap/ServiceRep.h"
 
+class HttpHeader;
 class wordlist;
 
 namespace Adaptation
index 37d3fe7c73cebc61faea983b8df7eee7b818d33a..f789e2655a29064f3a78fd6577a65636e18c7168 100644 (file)
@@ -2,7 +2,7 @@
  * DEBUG: section 93    ICAP (RFC 3507) Client
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "adaptation/Answer.h"
 #include "adaptation/icap/Config.h"
 #include "adaptation/icap/ModXact.h"
 #include "base/TextException.h"
 #include "comm/Connection.h"
 #include "ConfigParser.h"
-#include "ip/tools.h"
+#include "Debug.h"
+#include "fde.h"
 #include "HttpReply.h"
+#include "ip/tools.h"
+#include "protos.h"
 #include "SquidTime.h"
-#include "fde.h"
 
 CBDATA_NAMESPACED_CLASS_INIT(Adaptation::Icap, ServiceRep);
 
index 21e9cee53cbf4370c7658fad1333825e5d6e54c1..9f0edbe6a3b58a9cc7d5e05a1cc954a433ca3ac1 100644 (file)
@@ -2,26 +2,28 @@
  * DEBUG: section 93    ICAP (RFC 3507) Client
  */
 
-#include "squid-old.h"
+#include "squid.h"
+#include "acl/FilledChecklist.h"
+#include "adaptation/icap/Config.h"
+#include "adaptation/icap/Launcher.h"
+#include "adaptation/icap/Xaction.h"
+#include "base/TextException.h"
 #include "comm.h"
 #include "comm/Connection.h"
 #include "comm/ConnOpener.h"
 #include "comm/Write.h"
 #include "CommCalls.h"
+#include "err_detail_type.h"
+#include "fde.h"
+#include "globals.h"
 #include "HttpMsg.h"
-#include "adaptation/icap/Xaction.h"
-#include "adaptation/icap/Launcher.h"
-#include "adaptation/icap/Config.h"
-#include "base/TextException.h"
-#include "pconn.h"
-#include "HttpRequest.h"
 #include "HttpReply.h"
-#include "ipcache.h"
-#include "acl/FilledChecklist.h"
+#include "HttpRequest.h"
 #include "icap_log.h"
-#include "fde.h"
+#include "ipcache.h"
+#include "pconn.h"
+#include "protos.h"
 #include "SquidTime.h"
-#include "err_detail_type.h"
 
 
 //CBDATA_NAMESPACED_CLASS_INIT(Adaptation::Icap, Xaction);
index 88119bd3b855b98917a3c88929435f18ea8b8abd..f9b743cf7690b1baefbf5051b83e73caffb97970 100644 (file)
@@ -1,4 +1,4 @@
-#include "squid-old.h"
+#include "squid.h"
 #include "icap_log.h"
 #include "AccessLogEntry.h"
 #include "log/File.h"
index 1e981c6bd61e649eb5e2a378a23fbab1b183c3fc..5cb88c182627753aea096b28dbec4a140ac5ebb0 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef ICAP_LOG_H_
 #define ICAP_LOG_H_
 
+#include "AccessLogEntry.h"
 #include "RefCount.h"
 
 typedef RefCount<AccessLogEntry> AccessLogEntryPointer;
index 69606b917f2282425e42539d71759757ecc85835..fd70ba3f6699e64bb7bac3758cce400058d98fa0 100644 (file)
@@ -1,9 +1,10 @@
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/Acl.h"
 #include "acl/FilledChecklist.h"
 #include "auth/UserRequest.h"
 #include "auth/Acl.h"
 #include "auth/AclProxyAuth.h"
+#include "client_side.h"
 #include "HttpRequest.h"
 
 /**
index 11c157a1abcd542badceb3baf2c8875b5d8df37f..ef4230476344972952749639c5c67c04deb71686 100644 (file)
@@ -1,44 +1,15 @@
 /*
- * $Id$
- *
  * DEBUG: section 28    Access Control
  * AUTHOR: Duane Wessels
- *
- * 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.
- *
- *
- * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/FilledChecklist.h"
 #include "auth/Acl.h"
 #include "auth/AclMaxUserIp.h"
 #include "auth/UserRequest.h"
+#include "Debug.h"
+#include "protos.h"
 #include "wordlist.h"
 #include "ConfigParser.h"
 
index fda6df65bc78dc7385628b52f4025572400b62db..82913e2510d9613bf6b23b49091f9a4be5fa3f09 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * $Id$
- *
  *
  * SQUID Web Proxy Cache          http://www.squid-cache.org/
  * ----------------------------------------------------------
index d254a0718232952c2bea657169af6a2832c8b9fd..100d38e6a648ace37d6a3c4be56fe28d9f79167d 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * $Id$
- *
  * DEBUG: section 28    Access Control
  * AUTHOR: Duane Wessels
  *
@@ -34,7 +32,7 @@
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "auth/AclProxyAuth.h"
 #include "auth/Gadgets.h"
 #include "acl/FilledChecklist.h"
index 4be089198e73699d07c85e3cc82ebd01827cfde8..fb0854d02cf5b3322e8caf6d148612ecdafc6664 100644 (file)
@@ -1,7 +1,4 @@
 /*
- * $Id$
- *
- *
  * SQUID Web Proxy Cache          http://www.squid-cache.org/
  * ----------------------------------------------------------
  *
index 7fdeba71722edebabc2c5baa6ed53ed53d133da1..a2c64c1b057edd59e2e87fd2d3008f550982c686 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "auth/Config.h"
 #include "auth/UserRequest.h"
+#include "Debug.h"
+#include "globals.h"
 
 Auth::ConfigVector Auth::TheConfig;
 
index e5b0acc8a45a93d14271e7bfff29d5ea4a0c1842..57ec89e4faea2a5d9946f61cee5a2edba4603b52 100644 (file)
@@ -36,7 +36,7 @@
  * They DO NOT perform access control or auditing.
  * See acl.c for access control and client_side.c for auditing */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/Acl.h"
 #include "acl/FilledChecklist.h"
 #include "client_side.h"
@@ -46,6 +46,7 @@
 #include "auth/User.h"
 #include "auth/UserRequest.h"
 #include "auth/AclProxyAuth.h"
+#include "globals.h"
 #include "HttpReply.h"
 #include "HttpRequest.h"
 
index e63f6d3060214c37826a8e4bfc58a26a2c8458c7..b3fb1a5c416abb3297fafc765c06be043f7debd1 100644 (file)
  * Copyright (c) 2004, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "auth/Scheme.h"
 #include "auth/Gadgets.h"
 #include "auth/Config.h"
+#include "globals.h"
 
 Vector<Auth::Scheme::Pointer> *Auth::Scheme::_Schemes = NULL;
 
index 696d91405445c8e7c39888a85232e84bd75e754b..8e76310e8eb14b4fb5d897401d573e8f436862dd 100644 (file)
@@ -33,7 +33,7 @@
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "auth/User.h"
 #include "auth/UserRequest.h"
 #include "auth/Config.h"
@@ -41,6 +41,7 @@
 #include "acl/Acl.h"
 #include "acl/Gadgets.h"
 #include "event.h"
+#include "globals.h"
 #include "SquidTime.h"
 #include "Store.h"
 
index 198790efccd6b956e28f06a680a96692657b78d8..15bdc5a9a88d0a2402652ac5dcd836ae2c613d9e 100644 (file)
  * They DO NOT perform access control or auditing.
  * See acl.c for access control and client_side.c for auditing */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "auth/Config.h"
 #include "auth/Scheme.h"
 #include "auth/UserRequest.h"
 #include "auth/User.h"
+#include "client_side.h"
 #include "comm/Connection.h"
 #include "HttpReply.h"
 #include "HttpRequest.h"
index 2628b024924ffb69398b9bab4857f9f997718f15..7b52a855314a7776c95d0aaad57aadc34d4848ae 100644 (file)
@@ -32,6 +32,7 @@
 
 #include "squid.h"
 #include "auth/basic/Scheme.h"
+#include "Debug.h"
 #include "helper.h"
 
 /* for Auth::Config */
index bcd1841839a55ecc367396d4fa1565d6f90711d3..59c9afb948859624645e3597f621ed53d47a426f 100644 (file)
@@ -3,6 +3,7 @@
 #include "auth/basic/User.h"
 #include "Debug.h"
 #include "SquidTime.h"
+#include "structs.h"
 
 Auth::Basic::User::User(Auth::Config *aConfig) :
         Auth::User(aConfig),
index 490b2626bceece080b6ea6459615aa255480d0c4..a990818461e8581849c4a4ff5c0fec72426d36e9 100644 (file)
@@ -4,6 +4,7 @@
 #include "auth/basic/UserRequest.h"
 #include "auth/State.h"
 #include "charset.h"
+#include "Debug.h"
 #include "rfc1738.h"
 #include "SquidTime.h"
 
index cf506c55b8a921fe4c69885a4f48ea4a6bfb3c59..dde49bfe2c86b802cd3a6ca713f649e0cff83f8c 100644 (file)
@@ -37,7 +37,7 @@
  * See acl.c for access control and client_side.c for auditing */
 
 
-#include "squid-old.h"
+#include "squid.h"
 #include "auth/basic/auth_basic.h"
 #include "auth/basic/Scheme.h"
 #include "auth/basic/User.h"
@@ -48,6 +48,7 @@
 #include "mgr/Registration.h"
 #include "Store.h"
 #include "HttpReply.h"
+#include "protos.h"
 #include "rfc1738.h"
 #include "uudecode.h"
 #include "wordlist.h"
index 3060589a86114d97bc7501e3d8c299b32bc843a4..c70f25161120c7fe6ba77e8687949b518070e5d0 100644 (file)
@@ -32,6 +32,8 @@
 
 #include "squid.h"
 #include "auth/digest/Scheme.h"
+#include "Debug.h"
+#include "globals.h"
 #include "helper.h"
 
 Auth::Scheme::Pointer Auth::Digest::Scheme::_instance = NULL;
index c89d797b08e9e771f456d6732c3bf7a5c8556853..9166e5e32eeddfc02533fe4c2a0253ca650c2207 100644 (file)
@@ -4,6 +4,7 @@
 #include "Debug.h"
 #include "dlink.h"
 #include "SquidTime.h"
+#include "structs.h"
 
 Auth::Digest::User::User(Auth::Config *aConfig) :
         Auth::User(aConfig),
index 3305db575fc45dd6ef6ad5f94519d5bba602e9d3..920c7290f0ee9b4309a2e5a9473da824cc2a8ea2 100644 (file)
@@ -6,6 +6,7 @@
 #include "charset.h"
 #include "HttpReply.h"
 #include "HttpRequest.h"
+#include "protos.h"
 #include "SquidTime.h"
 
 Auth::Digest::UserRequest::UserRequest() :
index 5aefe77ae878b1980f1b78cd7c0f389c0856d09b..48715c112c846f5d7cda87c49951abd648c1559f 100644 (file)
@@ -37,7 +37,7 @@
  * See acl.c for access control and client_side.c for auditing */
 
 
-#include "squid-old.h"
+#include "squid.h"
 #include "rfc2617.h"
 #include "auth/digest/auth_digest.h"
 #include "auth/digest/Scheme.h"
@@ -52,6 +52,7 @@
 #include "Store.h"
 #include "HttpRequest.h"
 #include "HttpReply.h"
+#include "protos.h"
 #include "wordlist.h"
 #include "SquidTime.h"
 
index ea988110072edc645a9299f01fa5a788a99ec241..a1ec60b5f4ff2abeeecff92cb093324e9a0fdafa 100644 (file)
@@ -32,6 +32,7 @@
 
 #include "squid.h"
 #include "auth/negotiate/Scheme.h"
+#include "Debug.h"
 #include "helper.h"
 
 Auth::Scheme::Pointer Auth::Negotiate::Scheme::_instance = NULL;
index 1750c68ee59caec73853ad6e80c3310eb7d95a9e..59c43d7c0a07401e4947cb9e8dee1103b826c7bc 100644 (file)
@@ -3,9 +3,12 @@
 #include "auth/negotiate/UserRequest.h"
 #include "auth/State.h"
 #include "auth/User.h"
+#include "client_side.h"
+#include "globals.h"
 #include "helper.h"
 #include "HttpReply.h"
 #include "HttpRequest.h"
+#include "protos.h"
 #include "SquidTime.h"
 
 Auth::Negotiate::UserRequest::UserRequest()
index 453ee986568e87530a8e7c3a601838928075bc9a..5bd3f75f2c742f773c171f57ec2cd940a4d31cbc 100644 (file)
@@ -37,7 +37,7 @@
  * See acl.c for access control and client_side.c for auditing */
 
 
-#include "squid-old.h"
+#include "squid.h"
 #include "auth/negotiate/auth_negotiate.h"
 #include "auth/Gadgets.h"
 #include "auth/State.h"
@@ -46,6 +46,7 @@
 #include "client_side.h"
 #include "HttpReply.h"
 #include "HttpRequest.h"
+#include "protos.h"
 #include "SquidTime.h"
 #include "auth/negotiate/Scheme.h"
 #include "auth/negotiate/User.h"
index e1236ea76145a59c7885fd6400e9509a1f08bacf..41e5e5d1b38ae29ed05e3b0026dd0f9fca2412bd 100644 (file)
@@ -33,6 +33,7 @@
 #include "squid.h"
 #include "auth/ntlm/auth_ntlm.h"
 #include "auth/ntlm/Scheme.h"
+#include "Debug.h"
 #include "helper.h"
 
 Auth::Scheme::Pointer Auth::Ntlm::Scheme::_instance = NULL;
index 5e4de53b93b9e626065b252c36dba32b32c0306f..bd2b4ffe13c93317a37f624b5ff747ebac9e79c7 100644 (file)
@@ -3,6 +3,8 @@
 #include "auth/ntlm/UserRequest.h"
 #include "auth/State.h"
 #include "cbdata.h"
+#include "client_side.h"
+#include "globals.h"
 #include "HttpRequest.h"
 #include "SquidTime.h"
 
index 4d2d3ad60a4fea95308aafde6a6f8b7bb65022f2..b4c2ea00e8886a7b3a5ebe8bde129ee14adb918e 100644 (file)
@@ -37,7 +37,7 @@
  * See acl.c for access control and client_side.c for auditing */
 
 
-#include "squid-old.h"
+#include "squid.h"
 #include "auth/Gadgets.h"
 #include "auth/ntlm/auth_ntlm.h"
 #include "auth/ntlm/Scheme.h"
@@ -49,6 +49,7 @@
 #include "client_side.h"
 #include "HttpReply.h"
 #include "HttpRequest.h"
+#include "protos.h"
 #include "wordlist.h"
 #include "SquidTime.h"
 
index 39ac588e9c1ae49162ec9f900518af8f2c9e1ff1..621353b50395f98f174837922aeb30391e4c1fbd 100644 (file)
@@ -2,11 +2,11 @@
  * $Id$
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "base/AsyncCall.h"
 #include "base/AsyncCallQueue.h"
 #include "cbdata.h"
-
+#include "Debug.h"
 #include <ostream>
 
 InstanceIdDefinitions(AsyncCall, "call");
index 3c63810300e0c0bc4b97d9c75d9ed9f7bbdf0f99..ee899be624fa2c444d65850cb2a8d804237f0ffa 100644 (file)
@@ -9,6 +9,7 @@
 #include "squid.h"
 #include "base/AsyncCallQueue.h"
 #include "base/AsyncCall.h"
+#include "Debug.h"
 
 AsyncCallQueue *AsyncCallQueue::TheInstance = 0;
 
index 451c40c9ce0a5384669440962525d86142b9132f..e7447c6f56dfeeee4f346489539420e7ed5d023f 100644 (file)
@@ -1,13 +1,6 @@
-
-/*
- * $Id$
- *
- */
-
 #ifndef SQUID_ASYNCCALLQUEUE_H
 #define SQUID_ASYNCCALLQUEUE_H
 
-#include "squid-old.h"
 #include "base/AsyncCall.h"
 
 //class AsyncCall;
index cbb3629cf77f4e4a40808008d98a8cc20bf467bd..34c5bc57edd0eeb66e12c3ba0b164aa1f8138542 100644 (file)
@@ -2,7 +2,7 @@
  * DEBUG: section 93    ICAP (RFC 3507) Client
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "base/AsyncCall.h"
 #include "base/AsyncJob.h"
 #include "base/AsyncJobCalls.h"
index 380eec5817e3c6fbe00bf10afaa2539733b83f2e..c2c861f7c1ee1ac4fd7e09fdaf28a90e6f3ebd9b 100644 (file)
@@ -8,6 +8,7 @@
 
 #include "base/AsyncJob.h"
 #include "base/CbcPointer.h"
+#include "Debug.h"
 
 /**
  \ingroup AsyncJobAPI
index ef66a3793101c25d44db89e59233772a8717de6f..555433b3ab3dd8bf03fa30237afc8ccb39b0fce3 100644 (file)
@@ -1,4 +1,4 @@
-#include "squid-old.h"
+#include "squid.h"
 #include "base/TextException.h"
 #include "Debug.h"
 #include "util.h"
index dc903b5f35ca96dc2a6c202d16a7349280ae76ac..58a693b974653e56305e0b74a51dc612a4e55b33 100644 (file)
  *
  */
 
-#include "squid-old.h"
-
+#include "squid.h"
 #include "acl/Acl.h"
 #include "acl/Gadgets.h"
 #include "acl/MethodData.h"
+#include "anyp/PortCfg.h"
+#include "base/RunnersRegistry.h"
+#include "ConfigParser.h"
+#include "CpuAffinityMap.h"
+#include "DiskIO/DiskIOModule.h"
+#include "eui/Config.h"
+#include "format/Format.h"
+#include "globals.h"
+#include "HttpRequestMethod.h"
+#include "ident/Config.h"
+#include "ip/Intercept.h"
+#include "ip/QosConfig.h"
+#include "ip/tools.h"
+#include "ipc/Kids.h"
+#include "log/Config.h"
+#include "MemBuf.h"
+#include "mgr/Registration.h"
+#include "Parsing.h"
+#include "protos.h"
+#include "rfc1738.h"
+#include "Store.h"
+#include "StoreFileSystem.h"
+#include "structs.h"
+#include "SwapDir.h"
+#include "wordlist.h"
 #if USE_ADAPTATION
 #include "adaptation/Config.h"
 #endif
@@ -46,7 +70,6 @@
 #if USE_ECAP
 #include "adaptation/ecap/Config.h"
 #endif
-#include "anyp/PortCfg.h"
 #if USE_SSL
 #include "ssl/support.h"
 #include "ssl/Config.h"
 #include "auth/Config.h"
 #include "auth/Scheme.h"
 #endif
-#include "base/RunnersRegistry.h"
-#include "ConfigParser.h"
-#include "CpuAffinityMap.h"
-#include "DiskIO/DiskIOModule.h"
-#include "eui/Config.h"
 #if USE_SQUID_ESI
 #include "esi/Parser.h"
 #endif
-#include "format/Format.h"
-#include "HttpRequestMethod.h"
-#include "ident/Config.h"
-#include "ip/Intercept.h"
-#include "ip/QosConfig.h"
-#include "ip/tools.h"
-#include "log/Config.h"
-#include "MemBuf.h"
-#include "mgr/Registration.h"
-#include "Parsing.h"
-#include "rfc1738.h"
 #if SQUID_SNMP
 #include "snmp.h"
 #endif
-#include "Store.h"
-#include "StoreFileSystem.h"
-#include "SwapDir.h"
-#include "wordlist.h"
-#include "ipc/Kids.h"
+
+
+
 
 #if HAVE_GLOB_H
 #include <glob.h>
 #if HAVE_LIST
 #include <list>
 #endif
+#if HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#if HAVE_PWD_H
+#include <pwd.h>
+#endif
+#if HAVE_GRP_H
+#include <grp.h>
+#endif
+#if HAVE_SYS_STAT_H
+#include <sys/stat.h>
+#endif
 
 #if USE_SSL
 #include "ssl/gadgets.h"
index 181095ed6e104155d64f3dca4639203fd45a65ae..5ac819c55ad70a49c96762451769d0205688cc2c 100644 (file)
@@ -38,7 +38,7 @@
  * Reports the percentage of common files and other stats
  */
 
-#include "squid-old.h"
+#include "squid.h"
 
 typedef struct {
     const char *name;
index ae5a423d93ac816826ad2e137549250c216dd2b3..982bd5770b439154e5b0b718457dee9f0adab314 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "HttpRequest.h"
 #include "mgr/Registration.h"
+#include "protos.h"
 #include "Store.h"
 #include "URLScheme.h"
 
+#if HAVE_MATH_H
+#include <math.h>
+#endif
+
 #define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
 
 static int n_carp_peers = 0;
index 57547236310e3aec77a58f4405ec971ab12dd340..59a639ad2924277d440cdbacbd3ad4e091dd9f45 100644 (file)
 #endif
 #include "Generic.h"
 
+#if HAVE_LIMITS_H
+#include <limits.h>
+#endif
+
 #if WITH_VALGRIND
 #define HASHED_CBDATA 1
 #endif
index d23c51e7c897940e0df80e50859e40d80d2b4c75..bee15725ffa3148507fc55697794357c4f32c13f 100644 (file)
@@ -34,7 +34,7 @@
 #ifndef   SQUID_CBDATA_H
 #define   SQUID_CBDATA_H
 
-#include "squid-old.h"
+#include "typedefs.h"
 
 /**
  \defgroup CBDATAAPI Callback Data Allocator API
index 1ecbc523b7b49ad1e640f6b871f375d204bce98a..1744dabc177262e9e37ce8fab5c202dc9814b511 100644 (file)
@@ -33,7 +33,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "clientStream.h"
 #include "HttpReply.h"
 #include "HttpRequest.h"
index 61741f79cb8df2be36497a0ff645d0bc8f2e6606..a22bd296b176f6d1a90d6017315eebea1f730e7a 100644 (file)
@@ -34,8 +34,9 @@
 #ifndef SQUID_CLIENTSTREAM_H
 #define SQUID_CLIENTSTREAM_H
 
-#include "StoreIOBuffer.h"
+#include "dlink.h"
 #include "RefCount.h"
+#include "StoreIOBuffer.h"
 
 /**
  \defgroup ClientStreamAPI Client Streams API
 typedef RefCount<RefCountable_> ClientStreamData;
 
 class clientStreamNode;
-
 class ClientHttpRequest;
+class HttpReply;
 
 /* client stream read callback */
 /// \ingroup ClientStreamAPI
index 63c6fce787381013c42aaa7abf0ae4f713572e14..362c310aa46244e713c0ac92901aacf72287669f 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "event.h"
 #include "format/Token.h"
 #include "ClientInfo.h"
 #include "ip/Address.h"
 #include "mgr/Registration.h"
+#include "protos.h"
 #include "SquidMath.h"
 #include "SquidTime.h"
 #include "StatCounters.h"
index 4276eeb2d8c3d4f44c99068b3e8dcd723ad55308..0e6c8c75b035352f2e40a8b47889cf7d5677baf5 100644 (file)
  * data flow.
  */
 
-#include "squid-old.h"
+#include "squid.h"
 
 #include "acl/FilledChecklist.h"
-#if USE_AUTH
-#include "auth/UserRequest.h"
-#endif
 #include "anyp/PortCfg.h"
 #include "base/Subscription.h"
 #include "base/TextException.h"
 #include "ChunkedCodingParser.h"
-#include "client_side.h"
 #include "client_side_reply.h"
 #include "client_side_request.h"
-#if USE_DELAY_POOLS
-#include "ClientInfo.h"
-#endif
+#include "client_side.h"
 #include "ClientRequestContext.h"
 #include "clientStream.h"
 #include "comm.h"
 #include "comm/Connection.h"
-#include "CommCalls.h"
 #include "comm/Loops.h"
-#include "comm/Write.h"
 #include "comm/TcpAcceptor.h"
+#include "comm/Write.h"
+#include "CommCalls.h"
 #include "errorpage.h"
 #include "eui/Config.h"
 #include "fde.h"
 #include "ipc/StartListening.h"
 #include "MemBuf.h"
 #include "MemObject.h"
+#include "profiler/Profiler.h"
+#include "protos.h"
 #include "rfc1738.h"
+#include "SquidTime.h"
 #include "StatCounters.h"
 #include "StatHist.h"
-#include "SquidTime.h"
+#include "Store.h"
+#include "TimeOrTag.h"
+
+#if USE_AUTH
+#include "auth/UserRequest.h"
+#endif
+#if USE_DELAY_POOLS
+#include "ClientInfo.h"
+#endif
 #if USE_SSL
 #include "ssl/context_storage.h"
 #include "ssl/helper.h"
 #include "ssl/crtd_message.h"
 #include "ssl/certificate_db.h"
 #endif
-#include "Store.h"
-#include "TimeOrTag.h"
 
+#if HAVE_LIMITS_H
+#include <limits.h>
+#endif
+#if HAVE_MATH_H
+#include <math.h>
+#endif
 #if HAVE_LIMITS
 #include <limits>
 #endif
index 6713da50f92053f8b76d817f406832e1c3a77f27..3ce723e1f09fa657c32de26d246fe7beb64cf9af 100644 (file)
 #ifndef SQUID_CLIENTSIDE_H
 #define SQUID_CLIENTSIDE_H
 
-#if USE_AUTH
-#include "auth/UserRequest.h"
-#endif
 #include "base/AsyncJob.h"
 #include "BodyPipe.h"
 #include "comm.h"
 #include "CommCalls.h"
+#include "HttpRequest.h"
 #include "HttpControlMsg.h"
 #include "HttpParser.h"
 #include "RefCount.h"
 #include "StoreIOBuffer.h"
+#if USE_AUTH
+#include "auth/UserRequest.h"
+#endif
 #if USE_SSL
 #include "ssl/support.h"
 #endif
index b55ad9fea8aca2c895fc1b20f2c6f7ef165abbcf..64b9cd46d8a58981643ebdc993b26ff8d0fac1c1 100644 (file)
  *
  */
 #include "squid.h"
-
-/* for ClientActiveRequests global */
-#include "dlink.h"
-
-/* old includes without reasons given. */
-#include "squid-old.h"
 #include "acl/FilledChecklist.h"
 #include "acl/Gadgets.h"
 #include "anyp/PortCfg.h"
-#if USE_AUTH
-#include "auth/UserRequest.h"
-#endif
-#include "client_side.h"
 #include "client_side_reply.h"
+#include "client_side.h"
 #include "clientStream.h"
-#if USE_DELAY_POOLS
-#include "DelayPools.h"
-#endif
+#include "dlink.h"
 #include "errorpage.h"
-#if USE_SQUID_ESI
-#include "esi/Esi.h"
-#endif
 #include "fde.h"
-#include "forward.h"
 #include "format/Token.h"
+#include "forward.h"
+#include "globals.h"
+#include "globals.h"
 #include "HttpReply.h"
 #include "HttpRequest.h"
 #include "ip/QosConfig.h"
 #include "ipcache.h"
 #include "MemObject.h"
+#include "protos.h"
 #include "SquidTime.h"
-#include "StoreClient.h"
 #include "Store.h"
+#include "StoreClient.h"
+#if USE_AUTH
+#include "auth/UserRequest.h"
+#endif
+#if USE_DELAY_POOLS
+#include "DelayPools.h"
+#endif
+#if USE_SQUID_ESI
+#include "esi/Esi.h"
+#endif
 
 CBDATA_CLASS_INIT(clientReplyContext);
 
index 1c983f6844656969bbc531137ecbf4db2c3ca75e..ffbc2e48f467ae175bd27b31e9c4d2cad69a4863 100644 (file)
  * From that point on it's up to reply management.
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/FilledChecklist.h"
 #include "acl/Gadgets.h"
-#if USE_ADAPTATION
-#include "adaptation/AccessCheck.h"
-#include "adaptation/Answer.h"
-#include "adaptation/Iterator.h"
-#include "adaptation/Service.h"
-#if ICAP_CLIENT
-#include "adaptation/icap/History.h"
-#endif
-#endif
 #include "anyp/PortCfg.h"
-#if USE_AUTH
-#include "auth/UserRequest.h"
-#endif
-#include "clientStream.h"
+#include "ClientRequestContext.h"
 #include "client_side.h"
 #include "client_side_reply.h"
 #include "client_side_request.h"
-#include "ClientRequestContext.h"
+#include "clientStream.h"
 #include "comm/Connection.h"
 #include "comm/Write.h"
 #include "compat/inet_pton.h"
+#include "err_detail_type.h"
 #include "errorpage.h"
 #include "fde.h"
 #include "format/Token.h"
 #include "HttpHdrCc.h"
 #include "HttpReply.h"
 #include "HttpRequest.h"
+#include "ipcache.h"
 #include "ip/QosConfig.h"
 #include "MemObject.h"
-#include "Store.h"
+#include "profiler/Profiler.h"
+#include "protos.h"
 #include "SquidTime.h"
+#include "Store.h"
 #include "wordlist.h"
-#include "err_detail_type.h"
+#if USE_AUTH
+#include "auth/UserRequest.h"
+#endif
+#if USE_ADAPTATION
+#include "adaptation/AccessCheck.h"
+#include "adaptation/Answer.h"
+#include "adaptation/Iterator.h"
+#include "adaptation/Service.h"
+#if ICAP_CLIENT
+#include "adaptation/icap/History.h"
+#endif
+#endif
 #if USE_SSL
 #include "ssl/support.h"
 #include "ssl/ServerBump.h"
index 517ee698b3d48aba3efacca811a33ce4829059b1..c1bfd29a7aa8465780aba5af25b487500ef04218 100644 (file)
@@ -1,8 +1,4 @@
-
 /*
- * $Id$
- *
- *
  * SQUID Web Proxy Cache          http://www.squid-cache.org/
  * ----------------------------------------------------------
  *
@@ -35,7 +31,6 @@
 #ifndef SQUID_CLIENTSIDEREQUEST_H
 #define SQUID_CLIENTSIDEREQUEST_H
 
-#include "squid-old.h"
 #include "HttpHeader.h"
 #include "clientStream.h"
 #include "client_side.h"
index 32adceb3527f3da36b63d56c3bd363b036e6f504..de0bada35a4aa1431c2e59a037b432e3968a527d 100644 (file)
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "base/AsyncCall.h"
-#include "StoreIOBuffer.h"
 #include "comm.h"
-#include "event.h"
-#include "fde.h"
+#include "ClientInfo.h"
+#include "CommCalls.h"
 #include "comm/AcceptLimiter.h"
 #include "comm/comm_internal.h"
 #include "comm/Connection.h"
 #include "comm/Write.h"
 #include "comm/TcpAcceptor.h"
 #include "CommRead.h"
-#include "MemBuf.h"
-#include "pconn.h"
-#include "SquidTime.h"
-#include "CommCalls.h"
+#include "compat/cmsg.h"
 #include "DescriptorSet.h"
+#include "event.h"
+#include "fde.h"
+#include "globals.h"
 #include "icmp/net_db.h"
 #include "ip/Address.h"
 #include "ip/Intercept.h"
 #include "ip/QosConfig.h"
 #include "ip/tools.h"
-#include "ClientInfo.h"
+#include "MemBuf.h"
+#include "pconn.h"
+#include "protos.h"
+#include "profiler/Profiler.h"
+#include "SquidTime.h"
 #include "StatCounters.h"
+#include "StoreIOBuffer.h"
 #if USE_SSL
 #include "ssl/support.h"
 #endif
 #ifdef HAVE_NETINET_TCP_H
 #include <netinet/tcp.h>
 #endif
+#if HAVE_SYS_UN_H
+#include <sys/un.h>
+#endif
+#if HAVE_MATH_H
+#include <math.h>
+#endif
 
 /*
  * New C-like simple comm code. This stuff is a mess and doesn't really buy us anything.
index 2cd9b6d229cd617998177bd7d25e25c75a4aa9cf..191e1232223ffbcfd39715510ccc9e5b67f2bbcc 100644 (file)
@@ -1,12 +1,12 @@
 #ifndef __COMM_H__
 #define __COMM_H__
 
-#include "squid-old.h"
 #include "AsyncEngine.h"
 #include "base/AsyncCall.h"
 #include "CommCalls.h"
 #include "comm_err_t.h"
 #include "comm/IoCallback.h"
+#include "ip/Address.h"
 #include "StoreIOBuffer.h"
 
 /* comm.c */
index bb5b115ecb860f434dcc871cde433de37dff3c32..a61b19e2c832d8b543658877d8445cda48c0dade 100644 (file)
@@ -3,6 +3,7 @@
 #include "comm/Connection.h"
 #include "comm/TcpAcceptor.h"
 #include "fde.h"
+#include "globals.h"
 
 Comm::AcceptLimiter Comm::AcceptLimiter::Instance_;
 
index 0f20b3c1cd32b8ef4e898a9673aebf6de8907c65..25f33efc61537d865698cd3ea2599c72f64f3085 100644 (file)
@@ -8,9 +8,11 @@
 #include "comm/Loops.h"
 #include "comm.h"
 #include "fde.h"
+#include "globals.h"
 #include "icmp/net_db.h"
 #include "ipcache.h"
 #include "SquidTime.h"
+#include "protos.h"
 
 CBDATA_NAMESPACED_CLASS_INIT(Comm, ConnOpener);
 
index b0b41368bc1be81127eb1f353005538ae0394e05..ec5b9fc67a85769aec3cfc4da1603b61b5f8d667 100644 (file)
@@ -38,6 +38,7 @@
 #define _SQUIDCONNECTIONDETAIL_H_
 
 #include "comm/forward.h"
+#include "defines.h"
 #include "hier_code.h"
 #include "ip/Address.h"
 #include "MemPool.h"
index 66e985f3963751ba255d6889a9a25241004103f5..67b8d039e6a4478c0021a58aacea402d6bbeced6 100644 (file)
@@ -6,6 +6,7 @@
 #include "comm/Write.h"
 #include "CommCalls.h"
 #include "fde.h"
+#include "globals.h"
 
 Comm::CbEntry *Comm::iocb_table;
 
index cdaed4fc42e170af73d02e5fe7e0a05d3c423c22..5c114183b3e9c080c7e952866a1bafbe5fd214bc 100644 (file)
 
 #if USE_DEVPOLL
 
-#include "squid-old.h"
 #include "comm/Loops.h"
 #include "fde.h"
 #include "mgr/Registration.h"
+#include "profiler/Profiler.h"
 #include "SquidTime.h"
 #include "StatCounters.h"
 #include "StatHist.h"
index 1216f87dd911fb4d1a3b051e971eb51d8ee7c39e..1a09a7013ff223b796ba83b1a0034ebdcf980c6e 100644 (file)
 
 #if USE_EPOLL
 
-#include "squid-old.h"
 #include "comm/Loops.h"
 #include "fde.h"
+#include "globals.h"
 #include "mgr/Registration.h"
+#include "profiler/Profiler.h"
 #include "SquidTime.h"
 #include "StatCounters.h"
 #include "StatHist.h"
index 072091afef6d0cbab3d79a6285a2d3d1e6b2e49f..aed809f94f533d9aa8f6c9e7cdf615c53dc3cb60 100644 (file)
 #include "squid.h"
 
 #if USE_KQUEUE
-
-#include "squid-old.h"
 #include "comm/Loops.h"
 #include "fde.h"
-#include "Store.h"
 #include "SquidTime.h"
 #include "StatCounters.h"
+#include "Store.h"
 
 #if HAVE_SYS_EVENT_H
 #include <sys/event.h>
index fbce2143db351b62e1df6661742bd61406ffdce6..2569d5b0294b587835ebeafcda9b80fc8d993e88 100644 (file)
 #include "squid.h"
 
 #if USE_POLL
-
-#include "squid-old.h"
 #include "anyp/PortCfg.h"
 #include "comm/Connection.h"
 #include "comm/Loops.h"
 #include "fde.h"
+#include "globals.h"
 #include "ICP.h"
 #include "mgr/Registration.h"
+#include "profiler/Profiler.h"
+#include "protos.h"
 #include "SquidTime.h"
 #include "StatCounters.h"
 #include "Store.h"
index bdfcd1b50e8ec314487125c01c5d4143a597f67f..540c560dbd591a409347c077c979a8d5b0fbe1c9 100644 (file)
 
 #if USE_SELECT
 
-#include "squid-old.h"
 #include "anyp/PortCfg.h"
 #include "comm/Connection.h"
 #include "comm/Loops.h"
 #include "fde.h"
+#include "globals.h"
 #include "ICP.h"
 #include "mgr/Registration.h"
 #include "SquidTime.h"
 #include "StatHist.h"
 #include "Store.h"
 
+#if HAVE_SYS_STAT_H
+#include <sys/stat.h>
+#endif
+
 static int MAX_POLL_TIME = 1000;       /* see also Comm::QuickPollRequired() */
 
 #ifndef        howmany
index b7af3cc9d1878c0b8d3dff3968620e823443852f..9f73253fd88ff3b0783f7bf7719924337481a799 100644 (file)
@@ -33,8 +33,6 @@
 #include "squid.h"
 
 #if USE_SELECT_WIN32
-
-#include "squid-old.h"
 #include "anyp/PortCfg.h"
 #include "comm/Connection.h"
 #include "comm/Loops.h"
index 31fb6651cfdebdf0f7a179a5681d551d2a4ee512..07c81873cfc6696bd80bd2dce05296dd0d538191 100644 (file)
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "base/TextException.h"
-#include "CommCalls.h"
 #include "comm/AcceptLimiter.h"
+#include "CommCalls.h"
 #include "comm/comm_internal.h"
 #include "comm/Connection.h"
 #include "comm/Loops.h"
 #include "comm/TcpAcceptor.h"
 #include "fde.h"
 #include "ip/Intercept.h"
+#include "profiler/Profiler.h"
 #include "protos.h"
 #include "SquidTime.h"
 #include "StatCounters.h"
index 455b1f0183a4627ab266b5057070a1f052cc4a8d..a3f5f444d5f9a7f612cc35223ee64fbc8faf55cc 100644 (file)
@@ -6,9 +6,12 @@
 #include "comm/IoCallback.h"
 #include "comm/Write.h"
 #include "fde.h"
+#include "globals.h"
 #include "StatCounters.h"
 #include "SquidTime.h"
 #include "MemBuf.h"
+#include "profiler/Profiler.h"
+#include "protos.h"
 
 void
 Comm::Write(const Comm::ConnectionPointer &conn, MemBuf *mb, AsyncCall::Pointer &callback)
index 87aba9de2399c8fc9005d74f4506bd28f935234d..fea22020317c8b380346acd979c26ba06ac32168 100644 (file)
@@ -3,7 +3,9 @@
 
 #include "base/AsyncCall.h"
 #include "comm/forward.h"
+#include "typedefs.h"
 
+class MemBuf;
 namespace Comm
 {
 
index 758816e57aba8b9c5342d796cc6e749e29d4b167..08169d24ac7dd99fd14def531b9667ef0ad94d22 100644 (file)
 #include "squid.h"
 
 #if USE_DELAY_POOLS
-#include "squid-old.h"
-#include "mgr/Registration.h"
-#include "DelaySpec.h"
-#include "DelayPools.h"
-#include "event.h"
-#include "StoreClient.h"
-#include "Store.h"
-#include "MemObject.h"
-#include "client_side_request.h"
-#include "ConfigParser.h"
-#include "DelayId.h"
 #include "Array.h"
-#include "SquidString.h"
-#include "SquidTime.h"
+#include "client_side_request.h"
+#include "comm/Connection.h"
 #include "CommonPool.h"
 #include "CompositePoolNode.h"
-#include "DelayPool.h"
-#include "DelayVector.h"
-#include "NullDelayId.h"
+#include "ConfigParser.h"
 #include "DelayBucket.h"
-#include "DelayUser.h"
+#include "DelayId.h"
+#include "DelayPool.h"
+#include "DelayPools.h"
+#include "DelaySpec.h"
 #include "DelayTagged.h"
+#include "DelayUser.h"
+#include "DelayVector.h"
+#include "event.h"
 #include "ip/Address.h"
-#include "comm/Connection.h"
+#include "MemObject.h"
+#include "mgr/Registration.h"
+#include "NullDelayId.h"
+#include "SquidString.h"
+#include "SquidTime.h"
+#include "StoreClient.h"
+#include "Store.h"
 
 /// \ingroup DelayPoolsInternal
 long DelayPools::MemoryUsed = 0;
index 89cbf811572f0795cd1fbf5a9bfe9c32ceaaa665..fe5440e6e16aba128c94e36d3aee04cfd38bf4d6 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "comm/Loops.h"
 #include "fde.h"
 #include "MemBuf.h"
+#include "profiler/Profiler.h"
+#include "protos.h"
 #include "StatCounters.h"
 
 static PF diskHandleRead;
index 38a816a2d708295717c845aff320ea52eb3ae123..3f69c21b9f83d1a87241000fdd799b69b299dc4b 100644 (file)
@@ -33,7 +33,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "Store.h"
 #include "wordlist.h"
 #include "SquidTime.h"
index 69c3df79eb1ac4f046f91ca2b10d1be192c6fd44..f1af98de1668f86e6a21eaa529e3a79bb9afef40 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
+#include "base/InstanceId.h"
 #include "comm/Connection.h"
 #include "comm/ConnOpener.h"
 #include "comm.h"
 #include "comm/Loops.h"
 #include "comm/Write.h"
 #include "event.h"
-#include "SquidTime.h"
-#include "Store.h"
 #include "fde.h"
 #include "ip/tools.h"
 #include "MemBuf.h"
 #include "mgr/Registration.h"
+#include "protos.h"
+#include "rfc3596.h"
+#include "SquidTime.h"
+#include "Store.h"
 #include "util.h"
 #include "wordlist.h"
-#include "base/InstanceId.h"
 
 #if HAVE_ARPA_NAMESER_H
 #include <arpa/nameser.h>
index 5aef7ed777b19fa5f0398a948be28630247912d1..e37e51063fa802b160b517111de546a149f32e46 100644 (file)
@@ -34,6 +34,7 @@
 #include "squid.h"
 #include "comm/Connection.h"
 #include "comm/Write.h"
+#include "err_detail_type.h"
 #include "errorpage.h"
 #if USE_AUTH
 #include "auth/UserRequest.h"
 #include "MemObject.h"
 #include "fde.h"
 #include "MemBuf.h"
+#include "protos.h"
 #include "rfc1738.h"
 #include "URLScheme.h"
 #include "wordlist.h"
-#include "err_detail_type.h"
 
 /**
  \defgroup ErrorPageInternal Error Page Internals
index 22e6228eee8aa4bbe222ac0c12852e1952724923..8e739eb194bc3d2668516c5fce03610641251dcf 100644 (file)
 #ifndef   SQUID_ERRORPAGE_H
 #define   SQUID_ERRORPAGE_H
 
-#include "squid-old.h"
-#if USE_AUTH
-#include "auth/UserRequest.h"
-#endif
 #include "cbdata.h"
 #include "comm/forward.h"
 #include "err_detail_type.h"
+#include "err_type.h"
 #include "ip/Address.h"
 #include "MemBuf.h"
+#include "SquidString.h"
+#if USE_AUTH
+#include "auth/UserRequest.h"
+#endif
 #if USE_SSL
 #include "ssl/ErrorDetail.h"
 #endif
@@ -90,6 +91,7 @@
  */
 
 class HttpReply;
+class HttpRequest;
 class MemBuf;
 
 /// \ingroup ErrorPageAPI
index 04de070bcb7f522c29ad1389695217e30cafd760..6b5aed741e402e56303934817ab1dd3d2924b5ef 100644 (file)
@@ -33,7 +33,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 
 /* MS Visual Studio Projects are monolithic, so we need the following
  * #if to exclude the ESI code from compile process when not needed.
index 563b06a4f2eb49d9d21b062b0c9024870a6d271e..6a1f34714b849e2aaf8df3d6d8c133d952d96752 100644 (file)
 #ifndef SQUID_ESIASSIGN_H
 #define SQUID_ESIASSIGN_H
 
-#include "squid-old.h"
 #include "esi/Element.h"
-#include "SquidString.h"
 #include "esi/VarState.h"
+#include "SquidString.h"
 
 /* ESIVariableExpression */
 /* This is a variable that is itself and expression */
index ee4f85f6ff22afce725f5b269b637066b1a54f99..7d5da5809981be314b0532fb9e758d05fdbf5b07 100644 (file)
@@ -36,7 +36,6 @@
 #ifndef SQUID_ESIATTEMPT_H
 #define SQUID_ESIATTEMPT_H
 
-#include "squid-old.h"
 #include "esi/Element.h"
 #include "esi/Sequence.h"
 
index db7a77e8df5d89447e38223107a24745d647d130..2db6adbcf551fc17c1e8e685ab16dc12b4c0e707 100644 (file)
@@ -33,7 +33,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 
 /* MS Visual Studio Projects are monolithic, so we need the following
  * #if to exclude the ESI code from compile process when not needed.
index 3294435eb82d66244f2b30a17c9a9fd72433635b..811d2ef20b82642d2589d9c60715eac3d7cadcc1 100644 (file)
 #ifndef SQUID_ESICONTEXT_H
 #define SQUID_ESICONTEXT_H
 
+#include "esi/Parser.h"
 #include "esi/Element.h"
 #include "clientStream.h"
+#include "err_type.h"
 
 class ESIVarState;
-
 class ClientHttpRequest;
 
-#include "esi/Parser.h"
-
 /* ESIContext */
 
 class ESIContext : public esiTreeParent, public ESIParserClient
index 04f869facd35aa0d6ca08baf6c524f02add43cdb..26058f004c501449e10eee99f4e952c40c9e2cdc 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
+#include "Array.h"
 #include "esi/CustomParser.h"
+#include "Debug.h"
 #include "Trie.h"
 #include "TrieCharTransform.h"
-#include "Array.h"
 
 Trie *ESICustomParser::SearchTrie=NULL;
 
index b2f6d0c393fc71d3dddcce2b5ad9156d2ca58dd2..2654b1e9db1444cf684b87427fd064402b2fe000 100644 (file)
@@ -33,8 +33,9 @@
 #ifndef SQUID_ESIELEMENT_H
 #define SQUID_ESIELEMENT_H
 
-#include "RefCount.h"
+#include "Debug.h"
 #include "esi/Segment.h"
+#include "RefCount.h"
 
 typedef enum {
     ESI_PROCESS_COMPLETE = 0,
index 96977f54e3bbc1d09e3f4413d7cc9ce4c0f02f59..d73a1fb79ffa10c264631a34b9e4f57ff005f062 100644 (file)
@@ -36,7 +36,6 @@
 #ifndef SQUID_ELEMENTLIST_H
 #define SQUID_ELEMENTLIST_H
 
-#include "squid-old.h"
 #include "esi/Element.h"
 
 class ElementList
index e5967098b1472f68c191b3b24cdf082caa6f9f8f..d00c8e165e9f6da3ca8ada67992cab75f2e39064 100644 (file)
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 
 /* MS Visual Studio Projects are monolithic, so we need the following
  * #if to exclude the ESI code from compile process when not needed.
  */
 #if (USE_SQUID_ESI == 1)
 
-#include "esi/Esi.h"
-#include "clientStream.h"
 #include "client_side_request.h"
+#include "client_side.h"
+#include "clientStream.h"
 #include "comm/Connection.h"
 #include "errorpage.h"
-#include "esi/Segment.h"
-#include "esi/Element.h"
+#include "esi/Assign.h"
+#include "esi/Attempt.h"
 #include "esi/Context.h"
+#include "esi/Element.h"
+#include "esi/Esi.h"
+#include "esi/Except.h"
+#include "esi/Expression.h"
+#include "esi/Segment.h"
+#include "esi/VarState.h"
 #include "HttpHdrSc.h"
 #include "HttpHdrScTarget.h"
 #include "HttpReply.h"
-#include "esi/Attempt.h"
-#include "esi/Except.h"
-#include "client_side.h"
-#include "esi/VarState.h"
-#include "esi/Assign.h"
-#include "esi/Expression.h"
 #include "HttpRequest.h"
-#include "MemBuf.h"
 #include "ip/Address.h"
+#include "MemBuf.h"
+#include "profiler/Profiler.h"
+#include "protos.h"
 
 /* quick reference on behaviour here.
  * The ESI specification 1.0 requires the ESI processor to be able to
index 71b331b2c21040e08dc58c3ddb621075808bfe6b..a3f66e95f9eca1c8e363d79085d3b64ce1d4c815 100644 (file)
@@ -36,7 +36,6 @@
 #ifndef SQUID_ESIEXCEPT_H
 #define SQUID_ESIEXCEPT_H
 
-#include "squid-old.h"
 #include "esi/Element.h"
 #include "esi/Sequence.h"
 
index 786c832153a43dbf5f5e93fc414cd99fa2e36c55..3019af08ec8d1e55622f4fe6cf042493becc01f0 100644 (file)
@@ -33,7 +33,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 
 #if USE_SQUID_ESI && HAVE_LIBEXPAT
 
index 98dfacb950c70bb3b670742c9388ce4ca1f7ba95..378a4772cfe2033aa8d28a304560b8a3fc04d750 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
+#include "Debug.h"
 #include "esi/Expression.h"
+#include "profiler/Profiler.h"
+
+#if HAVE_MATH_H
+#include <math.h>
+#endif
 
 /* stack precedence rules:
  * before pushing an operator onto the stack, the
index 60b83e22a2a16c8e373b88f457fe5e07b1932934..e6c9e6d3fd6d053b0d0c19132a56825595829b62 100644 (file)
@@ -36,8 +36,6 @@
 #ifndef SQUID_ESIEXPRESSION_H
 #define SQUID_ESIEXPRESSION_H
 
-#include "squid-old.h"
-
 class ESIExpression
 {
 
index 5ed666326be45bf273f846df50baa8901a99f9d3..523b5420bd78475f143669766a84eb85aad95e57 100644 (file)
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 
 /* MS Visual Studio Projects are monolithic, so we need the following
  * #if to exclude the ESI code from compile process when not needed.
  */
 #if (USE_SQUID_ESI == 1)
 
+#include "client_side_request.h"
 #include "esi/Include.h"
 #include "esi/VarState.h"
-#include "client_side_request.h"
 #include "HttpReply.h"
+#include "protos.h"
 
 CBDATA_CLASS_INIT (ESIStreamContext);
 
index 79bb5d413894e48c094f0437e08c03a29f64cff5..b600c2fc89680cee2992d65f6489ffbdfca9d3e1 100644 (file)
 #ifndef SQUID_ESIINCLUDE_H
 #define SQUID_ESIINCLUDE_H
 
-#include "squid-old.h"
-#include "esi/Segment.h"
-#include "esi/Element.h"
 #include "esi/Context.h"
+#include "esi/Element.h"
+#include "esi/Segment.h"
 
 class ESIInclude;
 typedef RefCount<ESIInclude> ESIIncludePtr;
index b5427c297d037bcc3ad8154c923abeda4fd0b2df..4a36874627bdf2652cfe0393f0284c975e68d091 100644 (file)
@@ -37,7 +37,7 @@
  * mail@joachim-bauch.de
  */
 
-#include "squid-old.h"
+#include "squid.h"
 
 #if USE_SQUID_ESI && HAVE_LIBXML2
 
index b74c608b210e28276456a1d315bc832c4d024c04..b73cd818145158089e6b79c346711401a492c65e 100644 (file)
@@ -36,7 +36,6 @@
 #ifndef SQUID_ESILITERAL_H
 #define SQUID_ESILITERAL_H
 
-#include "squid-old.h"
 #include "esi/Element.h"
 
 class ESIContext;
index 16d1bc9aa2afca16472a8f657b8eec664ea67b44..71b9be035eaa2bf8b6b2c313f6d6bb83bbb6dcc7 100644 (file)
@@ -1,4 +1,4 @@
-#include "squid-old.h"
+#include "squid.h"
 #include "esi/Module.h"
 #include "esi/CustomParser.h"
 #include "esi/Libxml2Parser.h"
index 75e9c6e40a7b064e918140c99bfde344a92bba63..dbe18b68a06cef6ecf65fea4b2609499706195de 100644 (file)
@@ -32,8 +32,9 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "esi/Parser.h"
+#include "fatal.h"
 
 char *ESIParser::Type = NULL;
 ESIParser::Register *ESIParser::Parsers = NULL;
index 32ca9fcceda64afb15375c2e5b6c3159cce3b334..c496268471d5cf1599bc730c87e02dd8be0aa0a8 100644 (file)
@@ -33,7 +33,8 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
+#include "Debug.h"
 #include "esi/Segment.h"
 #include "SquidString.h"
 
index ac841512426b353d4ed8af643d2262a89fac29f6..ef1648db093564e77b1ad1b6c868e38690d0df13 100644 (file)
@@ -38,6 +38,7 @@
  */
 
 #include "cbdata.h"
+#include "defines.h"
 #include "RefCount.h"
 #include "SquidString.h"
 
index 27ce3410d8a3699dcbf250bfdae03dea7f5b0bed..707d4f7701874181d960483b0661fdbfdcca9010 100644 (file)
@@ -33,7 +33,9 @@
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
+#include "Debug.h"
+#include "fatal.h"
 
 /* MS Visual Studio Projects are monolithic, so we need the following
  * #if to exclude the ESI code from compile process when not needed.
index 1f20c6b78eca4c049d5d23812a3dee4b13a18ef3..ec8e1a21da3b9e764a5e602fb1912c33463ac926 100644 (file)
@@ -36,9 +36,9 @@
 #ifndef SQUID_ESISEQUENCE_H
 #define SQUID_ESISEQUENCE_H
 
-#include "squid-old.h"
 #include "esi/Element.h"
 #include "esi/ElementList.h"
+#include "MemPool.h"
 
 /* esiSequence */
 
index 9ea8c245a47186ca3ef5773b3824e21dc5391eed..0c48eb192068c20b82baae7e7c5e69f8d2b15550 100644 (file)
@@ -36,7 +36,6 @@
 #ifndef SQUID_ESIVAR_H
 #define SQUID_ESIVAR_H
 
-#include "squid-old.h"
 #include "esi/Element.h"
 #include "esi/Sequence.h"
 
index 8b899745e962ea0e76f7bf58b72582e0e1bdb029..4b29ef5321219626d89b519c99a2c092913b2f78 100644 (file)
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "esi/VarState.h"
 #include "HttpReply.h"
+#include "protos.h"
 
 CBDATA_TYPE (ESIVarState);
 FREE ESIVarStateFree;
index 33185b5f869ebbe97a3b02f58ae251661a8d8b27..d03050a2ac8a46ec8fea8b0b1f195bbc6c6116dd 100644 (file)
@@ -38,6 +38,8 @@
 #include "mgr/Registration.h"
 #include "Store.h"
 #include "SquidTime.h"
+#include "profiler/Profiler.h"
+#include "protos.h"
 
 /* The list of event processes */
 
index a8d8c459be7b66f170453125af354cfe2ef21d42..6aa949b8998a1b5ca4f6b6a91a8875547a7b67c8 100644 (file)
 #ifndef SQUID_EVENT_H
 #define SQUID_EVENT_H
 
-#include "squid-old.h"
 #include "Array.h"
 #include "AsyncEngine.h"
+#include "MemPool.h"
+#include "RefCount.h"
 
 /* forward decls */
 
index 4f3ecee0c3c6daa6d09d204057204938d849e9d8..6eef5a2216c968c557d27869b76b6af79b984fba 100644 (file)
  *
  */
 
-#include "squid-old.h"
-#include "mgr/Registration.h"
-#include "ExternalACL.h"
-#include "ExternalACLEntry.h"
-#if USE_AUTH
-#include "auth/Acl.h"
-#include "auth/Gadgets.h"
-#include "auth/UserRequest.h"
-#endif
-#include "SquidTime.h"
-#include "Store.h"
-#include "fde.h"
-#include "acl/FilledChecklist.h"
+#include "squid.h"
 #include "acl/Acl.h"
-#if USE_IDENT
-#include "ident/AclIdent.h"
-#endif
-#include "ip/tools.h"
+#include "acl/FilledChecklist.h"
 #include "client_side.h"
 #include "comm/Connection.h"
-#include "HttpRequest.h"
-#include "HttpReply.h"
+#include "ExternalACLEntry.h"
+#include "ExternalACL.h"
+#include "fde.h"
 #include "helper.h"
+#include "HttpReply.h"
+#include "HttpRequest.h"
+#include "ip/tools.h"
 #include "MemBuf.h"
+#include "mgr/Registration.h"
+#include "protos.h"
 #include "rfc1738.h"
+#include "SquidTime.h"
+#include "Store.h"
 #include "URLScheme.h"
 #include "wordlist.h"
 #if USE_SSL
 #include "ssl/support.h"
 #endif
+#if USE_AUTH
+#include "auth/Acl.h"
+#include "auth/Gadgets.h"
+#include "auth/UserRequest.h"
+#endif
+#if USE_IDENT
+#include "ident/AclIdent.h"
+#endif
 
 #ifndef DEFAULT_EXTERNAL_ACL_TTL
 #define DEFAULT_EXTERNAL_ACL_TTL 1 * 60 * 60
index e828e1b09cd002b7cfa418f742f49a093d8d9464..29a9164ab407d484bd4ef30f319de51ebae7bbf2 100644 (file)
--- a/src/fd.cc
+++ b/src/fd.cc
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "comm/Loops.h"
+#include "Debug.h"
 #include "fde.h"
+#include "globals.h"
+#include "profiler/Profiler.h"
 #include "SquidTime.h"
-#include "Debug.h"
 
 
 // Solaris and possibly others lack MSG_NOSIGNAL optimization
index 05cc7d524ebe0f3be5b7406fdcbf92fe146ab262..f877d503077f8b413e0175ee1e65f07f07bed9b7 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
+#include "comm.h"
 #include "fde.h"
+#include "globals.h"
+#include "protos.h"
 #include "SquidTime.h"
 #include "Store.h"
-#include "comm.h"
 
 bool
 fde::readPending(int fdNumber)
index f7ffa1c0c4de714f66d6e7df0a6e5d6ea8d3cbeb..a78cff4cd3c7a610a25b5e5718c456c1dd720aee 100644 (file)
--- a/src/fde.h
+++ b/src/fde.h
@@ -32,6 +32,7 @@
 
 #include "comm.h"
 #include "ip/Address.h"
+#include "structs.h"
 
 #if USE_DELAY_POOLS
 class ClientInfo;
index bfd4f0455bbbfbb07df77603815ff22ac5944e13..efb187397be0b38ea835edfcf26ca1b6d60f5817 100644 (file)
@@ -1,5 +1,6 @@
 #include "squid.h"
 #include "AccessLogEntry.h"
+#include "client_side.h"
 #include "comm/Connection.h"
 #include "err_detail_type.h"
 #include "errorpage.h"
@@ -9,6 +10,7 @@
 #include "format/Token.h"
 #include "HttpRequest.h"
 #include "MemBuf.h"
+#include "protos.h"
 #include "rfc1738.h"
 #include "SquidTime.h"
 #include "Store.h"
index c4b69950b8ba5cd811d4c1361a87735dd0c68367..905e9d9272ba9a73129bbb0619c405a31e613d7d 100644 (file)
  */
 
 
-#include "squid-old.h"
-#include "forward.h"
+#include "squid.h"
 #include "AccessLogEntry.h"
 #include "acl/FilledChecklist.h"
 #include "acl/Gadgets.h"
 #include "anyp/PortCfg.h"
 #include "CacheManager.h"
+#include "client_side.h"
 #include "comm/Connection.h"
 #include "comm/ConnOpener.h"
-#include "CommCalls.h"
 #include "comm/Loops.h"
-#include "event.h"
+#include "CommCalls.h"
 #include "errorpage.h"
+#include "event.h"
 #include "fde.h"
+#include "forward.h"
+#include "globals.h"
 #include "hier_code.h"
 #include "HttpReply.h"
 #include "HttpRequest.h"
+#include "icmp/net_db.h"
+#include "ip/Intercept.h"
 #include "ip/QosConfig.h"
+#include "ip/tools.h"
 #include "MemObject.h"
+#include "mgr/Registration.h"
 #include "pconn.h"
 #include "PeerSelectState.h"
+#include "protos.h"
 #include "SquidTime.h"
 #include "Store.h"
-#include "icmp/net_db.h"
-#include "ip/Intercept.h"
-#include "ip/tools.h"
-#include "mgr/Registration.h"
 #if USE_SSL
 #include "ssl/support.h"
 #include "ssl/ErrorDetail.h"
index f2d0fbf2fc8f557577aa90e2bc46636a079a81c6..32bd039d7f32747f089f9c52859a7e9c55752b11 100644 (file)
@@ -1,6 +1,13 @@
 #ifndef SQUID_FORWARD_H
 #define SQUID_FORWARD_H
 
+#include "Array.h"
+#include "comm.h"
+#include "comm/Connection.h"
+#include "fde.h"
+#include "ip/Address.h"
+#include "RefCount.h"
+
 /* forward decls */
 
 class AccessLogEntry;
@@ -8,11 +15,6 @@ typedef RefCount<AccessLogEntry> AccessLogEntryPointer;
 class ErrorState;
 class HttpRequest;
 
-#include "comm.h"
-#include "comm/Connection.h"
-#include "fde.h"
-#include "ip/Address.h"
-#include "Array.h"
 
 /**
  * Returns the TOS value that we should be setting on the connection
index 774d1fcba72cd428b038298fcf745d4cbb13ceff..42e80aca19339926b5f09d437459a0e19e095615 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "cbdata.h"
 #include "DnsLookupDetails.h"
 #include "event.h"
 #include "mgr/Registration.h"
+#include "protos.h"
 #include "SquidDns.h"
 #include "SquidTime.h"
 #include "StatCounters.h"
index 5175e08e6fc89039af8f263ab1d9fe97d2b277e5..4668e6751f9c17c0e3b6240a60f85eac073547f3 100644 (file)
@@ -1,4 +1,4 @@
-#include "squid-old.h"
+#include "squid.h"
 #include "Module.h"
 #if defined(HAVE_FS_UFS) || defined(HAVE_FS_AUFS) || defined(HAVE_FS_DISKD)
 #include "fs/ufs/StoreFSufs.h"
index 2fe6d16e94474ab58e7b90ae957f5ff0a59408ad..3eb75eea0351013b20d20f1b615a073c5d368883 100644 (file)
 /* TODO: remove this file as unused */
 
 #include "squid.h"
-
-#if 0
-#include "squid-old.h"
-#include "StoreFileSystem.h"
-#include "DiskIO/DiskIOModule.h"
-#endif
-
 #include "fs/ufs/StoreFSufs.h"
-
 #include "fs/ufs/UFSSwapDir.h"
 
 /**
index b4bd61e7321e7c6cf5fdfe6b73efc4c5e7428fc0..a59527100051ce3dcb81ccc1a4de17c1de3e3d26 100644 (file)
@@ -33,7 +33,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "CossSwapDir.h"
 #include "Store.h"
 
@@ -899,7 +899,14 @@ CossSwapDir::create()
 
     if (::stat(path, &swap_sb) < 0) {
         debugs (47, 2, "COSS swap space space being allocated.");
+#if _SQUID_MSWIN_
+
+        mkdir(path);
+#else
+
         mkdir(path, 0700);
+#endif
+
     }
 
     /* should check here for directories instead of files, and for file size
index 3feb544b6d6b6e99ee88203b43f03f209b45c690..1ad50d13f1215373bf64fe1353e90bae94d586ef 100644 (file)
@@ -33,7 +33,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "CossSwapDir.h"
 #include "Store.h"
 #include "store_coss.h"
index d755efe90c2e0e2a3969c07d256257a7755d0a5a..1cabf795265b13a98149f485c8113f32dca2a4fa 100644 (file)
@@ -13,6 +13,7 @@
 #include "fs/rock/RockIoState.h"
 #include "fs/rock/RockIoRequests.h"
 #include "fs/rock/RockSwapDir.h"
+#include "globals.h"
 
 Rock::IoState::IoState(SwapDir *dir,
                        StoreEntry *anEntry,
index 552abb81f27e940456c80835e4dce96e22241f11..7832a9f993a3d53c35c6a808327fcb28acc27223 100644 (file)
@@ -8,6 +8,9 @@
 #include "fs/rock/RockRebuild.h"
 #include "fs/rock/RockSwapDir.h"
 #include "fs/rock/RockDbCell.h"
+#include "md5.h"
+#include "protos.h"
+#include "typedefs.h"
 #include "SquidTime.h"
 
 CBDATA_NAMESPACED_CLASS_INIT(Rock, Rebuild);
index 09931909dfccef2f928b64127ce8a12320f51a29..bb43a416a7531823c34fb25b493f072c9a053aa0 100644 (file)
@@ -3,6 +3,7 @@
 
 #include "StoreFileSystem.h"
 
+class StoreEntry;
 namespace Rock
 {
 
index 51114f22a13938302ebc134ec1eedc9850b7098e..667ba1724b4b512746870497da1e27c4812a928f 100644 (file)
 #include "ipc/mem/Pages.h"
 #include "MemObject.h"
 #include "Parsing.h"
+#include "protos.h"
 #include "SquidMath.h"
 #include <cstdlib>
 #include <iomanip>
 
+#if HAVE_SYS_STAT_H
+#include <sys/stat.h>
+#endif
+
 const int64_t Rock::SwapDir::HeaderSize = 16*1024;
 
 Rock::SwapDir::SwapDir(): ::SwapDir("rock"), filePath(NULL), io(NULL), map(NULL)
index 09ce6ef9fc029e1233de92dcfa05b7c011e82c08..4bfbef37bee3ab860eb8980e480a0a897d007480 100644 (file)
  */
 
 #include "squid.h"
+#include "protos.h"
 #include "RebuildState.h"
 #include "SquidTime.h"
 #include "StoreSwapLogData.h"
 #include "UFSSwapLogParser.h"
 
+#if HAVE_MATH_H
+#include <math.h>
+#endif
+#if HAVE_SYS_STAT_H
+#include <sys/stat.h>
+#endif
+
 CBDATA_NAMESPACED_CLASS_INIT(Fs::Ufs,RebuildState);
 
 Fs::Ufs::RebuildState::RebuildState(RefCount<UFSSwapDir> aSwapDir) :
index cfe8592e6f1c57cc1f8e45d2003e407c9b33738d..c0e0b77e62d08524b81641f3e3a828a7e87295f4 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "Store.h"
 #include "Generic.h"
 #include "DiskIO/DiskFile.h"
 #include "DiskIO/DiskIOStrategy.h"
 #include "DiskIO/ReadRequest.h"
 #include "DiskIO/WriteRequest.h"
-
+#include "protos.h"
 #include "SwapDir.h"
 #include "UFSStrategy.h"
 #include "UFSStoreState.h"
index a8ea3fa8df7af26eb2fbe915369f9af63d54ffc7..6e3e46f823137525e6be59f5324addd66ca45e70 100644 (file)
@@ -29,7 +29,7 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
  */
 
-#include "squid-old.h"
+#include "squid.h"
 
 #define CLEAN_BUF_SZ 16384
 
 #include "StatCounters.h"
 #include "UFSSwapDir.h"
 
+#if HAVE_MATH_H
+#include <math.h>
+#endif
+#if HAVE_SYS_STAT_H
+#include <sys/stat.h>
+#endif
 
 int Fs::Ufs::UFSSwapDir::NumberOfUFSDirs = 0;
 int *Fs::Ufs::UFSSwapDir::UFSDirToGlobalDirMapping = NULL;
index d25ab7913e416bc522b51acb158daf46136e5d84..c4ef8c59594c67a25acf90ee1e0795064c23af28 100644 (file)
  */
 
 #include "squid.h"
+#include "Debug.h"
 #include "md5.h"
 #include "StoreSwapLogData.h"
 #include "swap_log_op.h"
 #include "UFSSwapLogParser.h"
 
+#if HAVE_SYS_STAT_H
+#include <sys/stat.h>
+#endif
+
 /// Parse a swap header entry created on a system with 32-bit size_t and sfileno
 /// this is typical of 32-bit systems without large file support
 /// NP: SQUID_MD5_DIGEST_LENGTH is very risky still.
index 18c7ee80a28a01f90e5d348a627d412260b464e3..5e3d09b4559aba2c3f1b2a2db094291934ee6abc 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "comm.h"
 #include "comm/ConnOpener.h"
-#include "CommCalls.h"
 #include "comm/TcpAcceptor.h"
 #include "comm/Write.h"
+#include "CommCalls.h"
 #include "compat/strtoll.h"
 #include "errorpage.h"
 #include "fde.h"
 #include "forward.h"
 #include "html_quote.h"
 #include "HttpHdrContRange.h"
-#include "HttpHeaderRange.h"
 #include "HttpHeader.h"
-#include "HttpRequest.h"
+#include "HttpHeaderRange.h"
 #include "HttpReply.h"
+#include "HttpRequest.h"
 #include "ip/tools.h"
 #include "MemBuf.h"
+#include "protos.h"
 #include "rfc1738.h"
 #include "Server.h"
 #include "SquidString.h"
index 4463ee90792d515e2f75fd7455703d073a8657b8..edab3da30d9a8e99b5464da368f9b997679d962b 100644 (file)
 #include "structs.h"
 
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-//MOVED:Debug.h    extern FILE *debug_log;             /* NULL */
-//MOVED:structs.h    extern SquidConfig Config;
-//MOVED:structs.h    extern SquidConfig2 Config2;
     extern char *ConfigFile;   /* NULL */
     extern char *IcpOpcodeStr[];
     extern char tmp_error_buf[ERROR_BUF_SZ];
@@ -60,13 +53,11 @@ extern "C" {
     extern char config_input_line[BUFSIZ];
     extern const char *DefaultConfigFile;      /* DEFAULT_CONFIG_FILE */
     extern const char *cfg_filename;   /* NULL */
-//MOVED:version.h:APP_SHORTNAME    extern const char *const appname;   /* "squid" */
-    extern const char *const dash_str; /* "-" */
-    extern const char *const null_string;      /* "" */
-    extern const char *const version_string;   /* VERSION */
-//MOVED:versions.h:APP_FULLNAME    extern const char *const full_appname_string;       /* PACKAGE "/" VERSION */
-    extern const char *const appname_string;   /* PACKAGE */
-    extern char const * visible_appname_string; /* NULL */
+    extern const char *dash_str;       /* "-" */
+    extern const char *null_string;    /* "" */
+    extern const char *version_string; /* VERSION */
+    extern const char *appname_string; /* PACKAGE */
+    extern char const *visible_appname_string; /* NULL */
     extern const char *fdTypeStr[];
     extern const char *hier_strings[];
     extern const char *memStatusStr[];
@@ -84,7 +75,6 @@ extern "C" {
     extern int config_lineno;  /* 0 */
     extern int do_mallinfo;            /* 0 */
     extern int opt_reuseaddr;  /* 1 */
-//DEAD    extern int icmp_sock;                /* -1 */
     extern int neighbors_do_private_keys;      /* 1 */
     extern int opt_catch_signals;      /* 1 */
     extern int opt_foreground_rebuild; /* 0 */
@@ -110,16 +100,14 @@ extern "C" {
     extern double request_failure_ratio;       /* 0.0 */
     extern int store_hash_buckets;     /* 0 */
     extern hash_table *store_table;    /* NULL */
-//MOVED:dlink.h    extern dlink_list ClientActiveRequests;
     extern int hot_obj_count;  /* 0 */
-    extern const int CacheDigestHashFuncCount; /* 4 */
+    extern int CacheDigestHashFuncCount;       /* 4 */
     extern CacheDigest *store_digest;  /* NULL */
     extern const char *StoreDigestFileName;            /* "store_digest" */
     extern const char *StoreDigestMimeStr;     /* "application/cache-digest" */
 
     extern const char *MultipartMsgBoundaryStr;        /* "Unique-Squid-Separator" */
 #if USE_HTTP_VIOLATIONS
-
     extern int refresh_nocache_hack;   /* 0 */
 #endif
 
@@ -132,7 +120,6 @@ extern "C" {
     extern hash_table *proxy_auth_username_cache;      /* NULL */
     extern int incoming_sockets_accepted;
 #if _SQUID_MSWIN_
-
     extern unsigned int WIN32_Socks_initialized;       /* 0 */
 #endif
 #if _SQUID_WINDOWS_
@@ -144,7 +131,6 @@ extern "C" {
     extern unsigned int WIN32_run_mode;     /* _WIN_SQUID_RUN_MODE_INTERACTIVE */
 #endif
 #if HAVE_SBRK
-
     extern void *sbrk_start;   /* 0 */
 #endif
 
@@ -164,9 +150,4 @@ extern "C" {
 /// Zero for SMP-unaware code and in no-SMP mode.
     extern int KidIdentifier; /* 0 */
 
-#ifdef __cplusplus
-}
-
-#endif
-
 #endif /* SQUID_GLOBALS_H */
index 84ef54dbe430991ee59c7650cc831f241e59f330..648268b868cd35b561c6e511c6096b54b28e9f72 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
+#include "comm.h"
 #include "comm/Write.h"
 #include "errorpage.h"
-#include "Store.h"
+#include "forward.h"
 #include "html_quote.h"
-#include "HttpRequest.h"
 #include "HttpReply.h"
-#include "comm.h"
+#include "HttpRequest.h"
+#include "MemBuf.h"
+#include "protos.h"
+#include "rfc1738.h"
+#include "SquidTime.h"
+#include "StatCounters.h"
+#include "Store.h"
+
 #if USE_DELAY_POOLS
 #include "DelayPools.h"
 #include "MemObject.h"
 #endif
-#include "MemBuf.h"
-#include "forward.h"
-#include "rfc1738.h"
-#include "StatCounters.h"
-#include "SquidTime.h"
 
 /**
  \defgroup ServerProtocolGopherInternal Server-Side Gopher Internals
index a6f2b92892deb53d3d07ad547abf8224c922c005..0754333106261e4c6ab44ee28186d3441e9443c6 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "base/AsyncCbdataCalls.h"
 #include "comm.h"
 #include "comm/Connection.h"
 #include "comm/Write.h"
-#include "helper.h"
 #include "format/Quoting.h"
+#include "helper.h"
 #include "MemBuf.h"
+#include "protos.h"
 #include "SquidMath.h"
 #include "SquidTime.h"
 #include "Store.h"
index 7d70316a078b092dbc7b197626c17e296056325e..d1a5fc271698dd44414891fef7efef350f876415 100644 (file)
 #ifndef SQUID_HELPER_H
 #define SQUID_HELPER_H
 
-#include "squid-old.h"
 #include "base/AsyncCall.h"
 #include "cbdata.h"
 #include "comm/forward.h"
+#include "dlink.h"
 #include "ip/Address.h"
 #include "HelperChildConfig.h"
 
@@ -132,6 +132,8 @@ public:
 
 };
 
+class MemBuf;
+
 class helper_server : public HelperServerBase
 {
 public:
index 61538e2e82bb82d66d58210c30b8e6016f26bbfb..74c9639af04095f13de00d523536466933eecf1d 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "AccessLogEntry.h"
-#include "acl/FilledChecklist.h"
 #include "acl/Acl.h"
+#include "acl/FilledChecklist.h"
 #include "comm.h"
 #include "comm/Connection.h"
 #include "comm/Loops.h"
 #include "comm/UdpOpenDialer.h"
+#include "compat/xalloc.h"
+#include "globals.h"
 #include "htcp.h"
 #include "http.h"
 #include "HttpRequest.h"
 #include "icmp/net_db.h"
 #include "ip/tools.h"
+#include "md5.h"
 #include "MemBuf.h"
+#include "protos.h"
 #include "SquidTime.h"
 #include "StatCounters.h"
 #include "Store.h"
 #include "StoreClient.h"
-#include "compat/xalloc.h"
 
 typedef struct _Countstr Countstr;
 
index 500faddee99f9c8df118d59583d4f4c11ae354f8..368709ff5bc9a2d8bd5e7fb0a412e7684881d06a 100644 (file)
 #if USE_HTCP
 
 #include "HttpHeader.h"
-
+#include "HttpRequestMethod.h"
 #include "ip/forward.h"
 
+class HttpRequest;
+
 /// \ingroup ServerProtocolHTCP
 class HtcpReplyData
 {
index c1e3619d146c022239af7bbdffbe718a18deddc9..412a8a9727d77aa9d0cca8cc97ceec00ce9641af 100644 (file)
  * have a look into http-anon.c to get more informations.
  */
 
-#include "squid-old.h"
-
+#include "squid.h"
 #include "acl/FilledChecklist.h"
-#if USE_AUTH
-#include "auth/UserRequest.h"
-#endif
+#include "base64.h"
 #include "base/AsyncJobCalls.h"
 #include "base/TextException.h"
-#include "base64.h"
+#include "client_side.h"
 #include "comm/Connection.h"
 #include "comm/Write.h"
-#if USE_DELAY_POOLS
-#include "DelayPools.h"
-#endif
 #include "err_detail_type.h"
 #include "errorpage.h"
 #include "fde.h"
-#include "http.h"
 #include "HttpControlMsg.h"
-#include "HttpHdrContRange.h"
+#include "http.h"
 #include "HttpHdrCc.h"
+#include "HttpHdrContRange.h"
 #include "HttpHdrSc.h"
 #include "HttpHdrScTarget.h"
 #include "HttpReply.h"
 #include "HttpRequest.h"
 #include "MemBuf.h"
 #include "MemObject.h"
+#include "profiler/Profiler.h"
 #include "protos.h"
 #include "rfc1738.h"
 #include "SquidTime.h"
 #include "StatCounters.h"
 #include "Store.h"
 
+#if USE_AUTH
+#include "auth/UserRequest.h"
+#endif
+#if USE_DELAY_POOLS
+#include "DelayPools.h"
+#endif
 
 #define SQUID_ENTER_THROWING_CODE() try {
 #define SQUID_EXIT_THROWING_CODE(status) \
index 838319da0a1f98bf1ccd4e9984887a9e28b6104e..8be6d58637678c5235a26db8e21c3950414256fc 100644 (file)
@@ -31,7 +31,7 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
  *
  */
-#include "squid-old.h"
+#include "squid.h"
 #include "Icmp.h"
 #include "SquidTime.h"
 #include "Debug.h"
index 704b690d12dcc5f259dd8d6d85d171b7a451d1b8..a39b9d2b9433d19407825df1d0965e64f5dd9512 100644 (file)
  */
 //#define SQUID_HELPER 1
 
-#include "squid-old.h"
+#include "squid.h"
 
 #if USE_ICMP
 
+#include "leakcheck.h"
 #include "SquidTime.h"
 #include "Icmp4.h"
 #include "IcmpPinger.h"
index 3a245a56b104a3f522cc7339ded9f04e830422a5..80324072d872f127e6bd6af10d567749dfa02fc8 100644 (file)
  */
 //#define SQUID_HELPER 1
 
-#include "squid-old.h"
+#include "squid.h"
 
 #if USE_ICMP
 
+#include "leakcheck.h"
 #include "SquidTime.h"
 #include "Debug.h"
 #include "Icmp6.h"
index dc25ed9bc9b6eedaf68748e73bd3bd6ab2609eeb..79f55e5bed8cd5bdb5f42cedb19366cbd0c8e865 100644 (file)
@@ -34,7 +34,7 @@
 
 #define SQUID_HELPER 1
 
-#include "squid-old.h"
+#include "squid.h"
 
 #if USE_ICMP
 
index 4ff85a9ff6bf3f80501377d2fbbce90e1f85568a..b6f37212fa44842f4c9ff42ca94ee313ebc28518 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "comm.h"
 #include "comm/Loops.h"
 #include "icmp/IcmpSquid.h"
 #include "icmp/net_db.h"
 #include "ip/tools.h"
+#include "protos.h"
 #include "SquidTime.h"
 
 // Instance global to be available in main() and elsewhere.
index 6ca9c9d0e0a9163a8f008d0825ed59f38b661f25..80b94799fd78b5c723324cfedd5694d0deecc7b5 100644 (file)
@@ -38,7 +38,7 @@
  * (adrian@squid-cache.org) to sort them out.
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "icmp/net_db.h"
 #include "log/File.h"
 #include "cbdata.h"
 #include "MemObject.h"
 #include "fde.h"
 #include "forward.h"
+#include "protos.h"
 #include "SquidTime.h"
 #include "wordlist.h"
 #include "ip/Address.h"
 
+#if HAVE_SYS_STAT_H
+#include <sys/stat.h>
+#endif
+
 #if USE_ICMP
 #include "icmp/IcmpSquid.h"
 #include "ipcache.h"
index 539115259c91b956f9c4e5b970d3fd82ff0e0978..809c78505fce5f9293af285f1ee8440d752940e4 100644 (file)
@@ -63,7 +63,8 @@
  *      ICP_OP_MISS_NOFETCH for sites which it cannot ping.
  */
 
-#include "squid-old.h"
+#include "squid.h"
+#include "Debug.h"
 #include "SquidTime.h"
 
 #if USE_ICMP
index f628abde3681d5eda9689599b73a15887269c0de..2532f4e72aaee3e9e3f443aff232a13178231e6c 100644 (file)
@@ -1,7 +1,7 @@
 #define SQUID_UNIT_TEST 1
 #define SQUID_HELPER 1
 
-#include "squid-old.h"
+#include "squid.h"
 
 #include <cppunit/TestAssert.h>
 
index 3b32688bd904c8fd87d6dc5a1905e1a513f70136..fc11cab16f8799e0d2a1fbd311b575fcc98ff191 100644 (file)
  \ingroup ServerProtocolICPAPI
  */
 
-#include "squid-old.h"
-#include "Store.h"
+#include "squid.h"
+#include "AccessLogEntry.h"
+#include "acl/Acl.h"
+#include "acl/FilledChecklist.h"
 #include "comm.h"
 #include "comm/Connection.h"
 #include "comm/Loops.h"
 #include "comm/UdpOpenDialer.h"
-#include "ICP.h"
 #include "HttpRequest.h"
-#include "acl/FilledChecklist.h"
-#include "acl/Acl.h"
-#include "AccessLogEntry.h"
-#include "wordlist.h"
-#include "StatCounters.h"
-#include "SquidTime.h"
-#include "SwapDir.h"
 #include "icmp/net_db.h"
+#include "ICP.h"
 #include "ip/Address.h"
 #include "ip/tools.h"
 #include "ipcache.h"
+#include "md5.h"
+#include "protos.h"
 #include "rfc1738.h"
+#include "SquidTime.h"
+#include "StatCounters.h"
+#include "Store.h"
+#include "SwapDir.h"
+#include "wordlist.h"
 
 static void icpIncomingConnectionOpened(const Comm::ConnectionPointer &conn, int errNo);
 
index a86203dd005295e5287cd94c8e14af0954470c05..96a83045c5c9a93f834c5836ff53201d256375e2 100644 (file)
@@ -37,7 +37,7 @@
  \ingroup ServerProtocolICPAPI
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "Store.h"
 #include "ICP.h"
 #include "HttpRequest.h"
index 7b4a0d29ff20c10058cca57c8950e0c1cb7956ea..aac64644ce995d95d305ff1c0d0c874f9e885698 100644 (file)
@@ -34,7 +34,7 @@
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 
 #if USE_IDENT
 
@@ -43,6 +43,7 @@
 #include "acl/UserData.h"
 #include "client_side.h"
 #include "comm/Connection.h"
+#include "globals.h"
 #include "ident/AclIdent.h"
 #include "ident/Ident.h"
 
index d9d7b89c51ff124f437a8dbc539c3b56e674772a..773e2dacb4c3c0f8552b404ad822080336b89749 100644 (file)
 #include "squid.h"
 
 #if USE_IDENT
-#include "squid-old.h"
 #include "comm.h"
 #include "comm/Connection.h"
 #include "comm/ConnOpener.h"
 #include "CommCalls.h"
 #include "comm/Write.h"
+#include "globals.h"
 #include "ident/Config.h"
 #include "ident/Ident.h"
 #include "MemBuf.h"
index 6076c01baaef1c0287b0a444aa4088d4b58b5e8e..69ba03cd889a3c522882dc58f93290abf8bc7a88 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
+
+#if HAVE_MATH_H
+#include <math.h>
+#endif
+
 int
 isPowTen(int count)
 {
index 090a3e71dd25025793325d8005592210f15102ef..118df8a8a70fd9e4752940dbfc6253254d9e1804 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "CacheManager.h"
 #include "comm/Connection.h"
 #include "errorpage.h"
+#include "icmp/net_db.h"
 #include "Store.h"
 #include "HttpRequest.h"
 #include "HttpReply.h"
 #include "MemBuf.h"
+#include "protos.h"
 #include "SquidTime.h"
 #include "wordlist.h"
-#include "icmp/net_db.h"
 
 /* called when we "miss" on an internal object;
  * generate known dynamic objects,
index 035f8a864eac55361c48c7e26f2cb4b9647403aa..7551e66e204f16d14579a568ddc15504d80d1d1e 100644 (file)
@@ -1,5 +1,6 @@
 /* Inline QOS functions */
 #include "comm/Connection.h"
+#include "Debug.h"
 
 int
 Ip::Qos::setSockTos(const Comm::ConnectionPointer &conn, tos_t tos)
index 1bda01f6a17f2e3501d14617e41568dae3277228..49e501981c19e1658570e10caa10ceac59ca4169 100644 (file)
@@ -1,13 +1,15 @@
-#include "squid-old.h"
+#include "squid.h"
 
 #include "acl/Gadgets.h"
 #include "comm/Connection.h"
 #include "ConfigParser.h"
 #include "fde.h"
+#include "globals.h"
 #include "hier_code.h"
 #include "ip/tools.h"
 #include "ip/QosConfig.h"
 #include "Parsing.h"
+#include "protos.h"
 
 /* Qos namespace */
 
index 559c4358be28371ecebd28c4c4d88520dc9be7b5..2bb4dbdf685cdb5394adab765bc44682b1483a1c 100644 (file)
@@ -1,4 +1,4 @@
-#include "squid-old.h"
+#include "squid.h"
 
 #include "ip/QosConfig.h"
 #include "Store.h"
index a44231ebf6b13aec13df7c79df3cf19b3a71b734..9f0cb0cdab7bb84542192577ab0aab47a3fdd485 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "comm/Connection.h"
 #include "fde.h"
+#include "globals.h"
 #include "ip/Address.h"
+#include "protos.h"
 #include "rfc1738.h"
 
 static const char *hello_string = "hi there\n";
index 2eec25b43feb491098579e9cd7013b008da62b2c..d1a08991459f1e32aec37bbe9ab8325fa5cbef89 100644 (file)
@@ -17,6 +17,7 @@
 #include "mgr/Inquirer.h"
 #include "mgr/Request.h"
 #include "mgr/Response.h"
+#include "protos.h"
 #if SQUID_SNMP
 #include "snmp/Inquirer.h"
 #include "snmp/Request.h"
index 7fc164fb1a9ce0b4b3a7475930a07425a0c23a47..f319264f88af4303724ec03ab3bedbf75b7b858f 100644 (file)
@@ -4,7 +4,7 @@
  * DEBUG: section 54    Interprocess Communication
  */
 
-#include "squid-old.h"
+#include "squid.h"
 
 #include "Store.h"
 #include "ipc/ReadWriteLock.h"
index 8453f05a318606f57d424a1629e95c6684396c88..eaedc02dc0c2d38b1bf88a232514b766d066f878 100644 (file)
 #include "comm.h"
 #include "base/TextException.h"
 #include "comm/Connection.h"
+#include "globals.h"
 #include "ipc/Port.h"
 #include "ipc/Messages.h"
 #include "ipc/Kids.h"
 #include "ipc/TypedMsgHdr.h"
 #include "ipc/StartListening.h"
 #include "ipc/SharedListen.h"
+#include "protos.h"
 
 /// holds information necessary to handle JoinListen response
 class PendingOpenRequest
index c13cc0ac223c0ce60860b47d3bcf31209a1969c2..aec726397ba206fdfe04eeafc68659a0b9f7760f 100644 (file)
@@ -11,7 +11,7 @@
 #include "comm/Connection.h"
 #include "ipc/SharedListen.h"
 #include "ipc/StartListening.h"
-
+#include "protos.h"
 
 Ipc::StartListeningCb::StartListeningCb(): conn(NULL), errNo(0)
 {
index 86bc94156559361c6da032dee8624e6e00298d33..22185ed0f9cea200b1bc41c2fb4c8f04e89987a8 100644 (file)
@@ -4,8 +4,9 @@
  * DEBUG: section 54    Interprocess Communication
  */
 
-#include "squid-old.h"
+#include "squid.h"
 
+#include "protos.h"
 #include "Store.h"
 #include "ipc/StoreMap.h"
 
index 5576eb14a0311a095dc1989322434acd9ced18f0..f7eba0150e92ee6b96c690490734aa1930365242 100644 (file)
@@ -9,6 +9,7 @@
 #include "base/Subscription.h"
 #include "base/TextException.h"
 #include "comm/Connection.h"
+#include "globals.h"
 #include "ipc/Strand.h"
 #include "ipc/StrandCoord.h"
 #include "ipc/Messages.h"
index e66a7785fbdf23ac3f90fc7e48f416bd15ce816a..cccc6b2bd8d0c7ae886694cfe0f30df27329d85c 100644 (file)
@@ -11,6 +11,7 @@
 
 #include "SquidString.h"
 #include "base/AsyncJob.h"
+#include "cbdata.h"
 #include "comm/forward.h"
 #include "ipc/TypedMsgHdr.h"
 #include "ipc/FdNotes.h"
index 27051f15e00bfc8215b0173fc00b1b0b038e94f8..ffef2f722434cb39d05d48576df4f2563e8efa3e 100644 (file)
@@ -10,6 +10,7 @@
 #include "base/RunnersRegistry.h"
 #include "ipc/mem/PagePool.h"
 #include "ipc/mem/Pages.h"
+#include "protos.h"
 #include "structs.h"
 #include "SwapDir.h"
 
index 60223f7390f6ffef9944cfb5ac17e361055ce2cb..194e3f263f0255b695c7a523f94075700af687df 100644 (file)
@@ -33,7 +33,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "comm.h"
 #include "fde.h"
 #include "ip/Address.h"
index 0fd64c81cc66ee043e5d98fba60baa06ac4b988c..8a231245f89714e1ef90316cdf18c516ab097037 100644 (file)
@@ -30,7 +30,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "cbdata.h"
 #include "CacheManager.h"
 #include "DnsLookupDetails.h"
@@ -39,6 +39,8 @@
 #include "ip/tools.h"
 #include "ipcache.h"
 #include "mgr/Registration.h"
+#include "protos.h"
+#include "rfc3596.h"
 #include "SquidDns.h"
 #include "SquidTime.h"
 #include "StatCounters.h"
index 2d9d26eb49a46953cee489f19f28a7d792a86815..8ec4e96a72329fcf0b29d9369d62826139a2b7fd 100644 (file)
@@ -33,7 +33,9 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
+#include "protos.h"
+#include "typedefs.h"
 
 /* This should go away, in favour of the List template class */
 
index 0b71f093f6d8eb9862e76389c6748c0af7d5c7f3..fe81754776469b20f072bc52ff76cdf87b44b8fc 100644 (file)
@@ -32,7 +32,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "fde.h"
 #include "log/File.h"
 #include "log/ModDaemon.h"
index b3aae86344c7350532ce4f72bafd7dc2743c164a..ce9b4f7a47d66581472abe5f107c12ef7ebe387e 100644 (file)
@@ -36,6 +36,7 @@
 #include "AccessLogEntry.h"
 #include "format/Token.h"
 #include "format/Quoting.h"
+#include "globals.h"
 #include "HttpRequest.h"
 #include "log/File.h"
 #include "log/Formats.h"
index 612afc65338210fb80a8269733afdde3dd72a447..ab9f8b59f549b1eb1f00339f0fb6ea7af05c8c7c 100644 (file)
@@ -36,6 +36,7 @@
 #include "AccessLogEntry.h"
 #include "format/Quoting.h"
 #include "format/Token.h"
+#include "globals.h"
 #include "log/File.h"
 #include "log/Formats.h"
 #include "SquidTime.h"
index 15b8104e0512a3baa092bd0ac424fd1e75b94ebb..1c8c6086f3cee1361376129911bc2bc16142dbee 100644 (file)
@@ -41,6 +41,7 @@
 #include "HttpRequest.h"
 #include "log/File.h"
 #include "log/Formats.h"
+#include "protos.h"
 #include "SquidTime.h"
 
 void
index 4cde4eca2dc831aaaabe854d2f84e3f675333b3d..dc0b38f4839a1e54a5fb6655e7cdaa630d5323a5 100644 (file)
@@ -36,6 +36,7 @@
 #include "AccessLogEntry.h"
 #include "format/Quoting.h"
 #include "format/Token.h"
+#include "globals.h"
 #include "log/File.h"
 #include "log/Formats.h"
 #include "SquidTime.h"
index f7ac5d3ca5b63924468981dd6d645d02783867cc..81199861b8be33d5384714653d379c125acc1e47 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "cbdata.h"
 #include "comm/Loops.h"
 #include "fde.h"
+#include "globals.h"
 #include "log/Config.h"
 #include "log/File.h"
 #include "log/ModDaemon.h"
+#include "protos.h"
 #include "SquidTime.h"
 
 /* How many buffers to keep before we say we've buffered too much */
index 879ae53f6434b6ab90a74638fe975c1601973cac..80a3c92ea33bb0255b45781081393455c48bae15 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "fde.h"
+#include "globals.h"
 #include "log/File.h"
 #include "log/ModStdio.h"
+#include "protos.h"
 
 typedef struct {
     int fd;
index 2d5dd3820b72dc1f4c72a40cde8277cf3f14eca6..4cf66665ca84f7def02aefa97c2b739fb4ea3f0f 100644 (file)
@@ -30,7 +30,8 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
+#include "Debug.h"
 
 #if HAVE_SYSLOG
 
index 9fd4d49262891a884e3ce8f69a60c842017d103b..cb7a1265d32d0076c577ce8c83d0d0b1ff6d602f 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "comm.h"
 #include "comm/Connection.h"
 #include "log/File.h"
 #include "log/ModTcp.h"
 #include "Parsing.h"
+#include "protos.h"
+#include "structs.h"
 
 /*
  * This logfile TCP module is mostly inspired by a patch by Tim Starling
index cc6c3ac7c43c40eba27ec3301c3161e56fff6732..7cee39a622cd5687ff8955a6ce9758e4bcb83ced 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "comm.h"
 #include "comm/Connection.h"
 #include "log/File.h"
 #include "log/ModUdp.h"
 #include "Parsing.h"
+#include "protos.h"
+#include "structs.h"
 
 /*
  * This logfile UDP module is mostly inspired by a patch by Tim Starling
index 355946cb2d7708775bfe12109a08879f0cabb5a3..b30d9eefd4cc02710a696deba80af6a04ee2f119 100644 (file)
@@ -33,7 +33,7 @@
  */
 
 
-#include "squid-old.h"
+#include "squid.h"
 #include "AccessLogEntry.h"
 
 // Store.h Required by configuration directives parsing/dumping only
@@ -48,6 +48,7 @@
 #include "eui/Eui64.h"
 #endif
 #include "format/Token.h"
+#include "globals.h"
 #include "hier_code.h"
 #include "HttpReply.h"
 #include "HttpRequest.h"
index 7d307591e8e04547b3d15304c81818f7a973e90e..5e69193cb427cd1da05dc61bdc89e58852e8e7e2 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "AccessLogEntry.h"
-#if USE_ADAPTATION
-#include "adaptation/Config.h"
-#endif
-#if USE_ECAP
-#include "adaptation/ecap/Config.h"
-#endif
-#if ICAP_CLIENT
-#include "adaptation/icap/Config.h"
-#include "adaptation/icap/icap_log.h"
-#endif
-#if USE_AUTH
-#include "auth/Gadgets.h"
-#endif
+#include "acl/Acl.h"
+#include "acl/Asn.h"
 #include "base/RunnersRegistry.h"
 #include "base/Subscription.h"
 #include "base/TextException.h"
-#if USE_DELAY_POOLS
-#include "ClientDelayConfig.h"
-#endif
 #include "comm.h"
 #include "ConfigParser.h"
 #include "CpuAffinity.h"
-#if USE_DELAY_POOLS
-#include "DelayPools.h"
-#endif
+#include "DiskIO/DiskIOModule.h"
 #include "errorpage.h"
 #include "event.h"
 #include "EventLoop.h"
 #include "ExternalACL.h"
 #include "format/Token.h"
+#include "forward.h"
 #include "fs/Module.h"
-#include "PeerSelectState.h"
-#include "SquidDns.h"
-#include "Store.h"
+#include "fs/Module.h"
+#include "htcp.h"
+#include "HttpReply.h"
+#include "icmp/IcmpSquid.h"
+#include "icmp/net_db.h"
 #include "ICP.h"
 #include "ident/Ident.h"
-#include "HttpReply.h"
-#include "pconn.h"
-#include "Mem.h"
-#include "acl/Asn.h"
-#include "acl/Acl.h"
-#include "htcp.h"
-#include "StoreFileSystem.h"
-#include "DiskIO/DiskIOModule.h"
-#include "ipc/Kids.h"
 #include "ipc/Coordinator.h"
+#include "ipc/Kids.h"
 #include "ipc/Strand.h"
 #include "ip/tools.h"
+#include "Mem.h"
+#include "MemPool.h"
+#include "pconn.h"
+#include "PeerSelectState.h"
+#include "profiler/Profiler.h"
+#include "protos.h"
+#include "SquidDns.h"
 #include "SquidTime.h"
 #include "StatCounters.h"
+#include "StoreFileSystem.h"
+#include "Store.h"
 #include "SwapDir.h"
-#include "forward.h"
-#include "MemPool.h"
-#include "icmp/IcmpSquid.h"
-#include "icmp/net_db.h"
 
+#if USE_ADAPTATION
+#include "adaptation/Config.h"
+#endif
+#if USE_ECAP
+#include "adaptation/ecap/Config.h"
+#endif
+#if ICAP_CLIENT
+#include "adaptation/icap/Config.h"
+#include "adaptation/icap/icap_log.h"
+#endif
+#if USE_AUTH
+#include "auth/Gadgets.h"
+#endif
+#if USE_DELAY_POOLS
+#include "ClientDelayConfig.h"
+#endif
+#if USE_DELAY_POOLS
+#include "DelayPools.h"
+#endif
 #if USE_LOADABLE_MODULES
 #include "LoadableModules.h"
 #endif
-
 #if USE_SSL_CRTD
 #include "ssl/helper.h"
 #include "ssl/certificate_db.h"
 #endif
-
 #if USE_SSL
 #include "ssl/context_storage.h"
 #endif
-
 #if ICAP_CLIENT
 #include "adaptation/icap/Config.h"
 #endif
 #if USE_SQUID_ESI
 #include "esi/Module.h"
 #endif
-#include "fs/Module.h"
 
 #if HAVE_PATHS_H
 #include <paths.h>
 #endif
+#if HAVE_SYS_WAIT_H
+#include <sys/wait.h>
+#endif
 
 #if USE_WIN32_SERVICE
 #include "squid_windows.h"
@@ -655,7 +657,6 @@ serverConnectionsOpen(void)
 {
     if (IamPrimaryProcess()) {
 #if USE_WCCP
-
         wccpConnectionOpen();
 #endif
 
index 9f84a127e41808f61bcae22d4c5ac43c69297df9..038f38c7ca2f8a86e10aadb97548d7691cbda81e 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "event.h"
-#include "mgr/Registration.h"
 #include "ClientInfo.h"
 #include "Mem.h"
+#include "md5.h"
+#include "MemBuf.h"
 #include "memMeter.h"
+#include "mgr/Registration.h"
+#include "protos.h"
+#include "SquidTime.h"
 #include "Store.h"
 #include "StoreEntryStream.h"
-#include "MemBuf.h"
-#include "SquidTime.h"
 
 #if HAVE_IOMANIP
 #include <iomanip>
index afac91e7529fc809afc0d0bd28dbe0c2647c2825..ca8287fec1024710043bf195f21dc991aee30730 100644 (file)
@@ -33,8 +33,9 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "mem_node.h"
+#include "protos.h"
 
 static ptrdiff_t makeMemNodeDataOffset();
 
index c122ef23963463ed211b686bde0ca15e2a8ff13c..2638e031098e353df6a6b7aa7daf9d7b74e4aa2d 100644 (file)
@@ -34,6 +34,8 @@
 #ifndef SQUID_MEM_NODE_H
 #define SQUID_MEM_NODE_H
 
+#include "defines.h"
+#include "MemPool.h"
 #include "StoreIOBuffer.h"
 #include "Range.h"
 
index 7ed43318f685a71251ec1559a37101a13ac9e93c..1b93c07413091086a4a8247fa2213820d0801a37 100644 (file)
@@ -12,9 +12,9 @@
 #include "mgr/ActionProfile.h"
 #include "mgr/BasicActions.h"
 #include "mgr/Registration.h"
+#include "protos.h"
 #include "Store.h"
 
-
 Mgr::IndexAction::Pointer
 Mgr::IndexAction::Create(const Command::Pointer &cmd)
 {
index f9fa61e0ba0d7b16c49070bc309c978ee0d7d01e..a033e6fdb5b73bb7d491f5139b23488f37da74f4 100644 (file)
@@ -10,6 +10,7 @@
 #include "ipc/Messages.h"
 #include "ipc/TypedMsgHdr.h"
 #include "mgr/CountersAction.h"
+#include "protos.h"
 #include "SquidTime.h"
 #include "Store.h"
 
index 9d6f2170a20bb6b14c44455cfac683e7c8652edd..19493a37b94b1430fe8560b97ced2aa79ad2ca25 100644 (file)
@@ -11,6 +11,7 @@
 #include "CommCalls.h"
 #include "comm/Connection.h"
 #include "errorpage.h"
+#include "globals.h"
 #include "HttpReply.h"
 #include "HttpRequest.h"
 #include "ipc/Port.h"
index c2823acb103fcbdda116c899b3070ab764c4dcf7..8757d2e6e411c5a992a37942efd692148c0ba485 100644 (file)
@@ -8,11 +8,13 @@
 #include "squid.h"
 #include "base/TextException.h"
 #include "comm/Connection.h"
+#include "globals.h"
 #include "ipc/UdsOp.h"
 #include "mgr/Command.h"
 #include "mgr/Filler.h"
 #include "mgr/FunAction.h"
 #include "mgr/Request.h"
+#include "protos.h"
 #include "Store.h"
 
 
index bd1028e18fb5dbdd17681d07dc48afdff621a971..24eb410af91f970192ae6c22a65b7930454b2a35 100644 (file)
@@ -8,6 +8,7 @@
 #include "squid.h"
 #include "base/TextException.h"
 #include "comm/Connection.h"
+#include "globals.h"
 #include "HttpReply.h"
 #include "ipc/Messages.h"
 #include "ipc/UdsOp.h"
@@ -16,6 +17,7 @@
 #include "mgr/InfoAction.h"
 #include "mgr/Request.h"
 #include "mgr/Response.h"
+#include "protos.h"
 #include "SquidTime.h"
 #include "Store.h"
 
index 294c0045c53b6407ee6d8dde23aa102b635b1ee6..2ad65fa9432299fb02311c1d6d76e23e4d5d3640 100644 (file)
@@ -7,6 +7,7 @@
 
 #include "squid.h"
 #include "base/TextException.h"
+#include "comm.h"
 #include "comm/Connection.h"
 #include "comm/Write.h"
 #include "CommCalls.h"
index e6d67b843b1ae6da10e378cd293fa35097c4444d..2a780bc29a934c67ea10939dccff966df3370d6e 100644 (file)
@@ -10,6 +10,7 @@
 #include "ipc/Messages.h"
 #include "ipc/TypedMsgHdr.h"
 #include "mgr/IntervalAction.h"
+#include "protos.h"
 #include "SquidMath.h"
 #include "Store.h"
 
index a6fc39ddb720903ce68a5d14a63b9b5cc63eebc1..676b7f544d96a9bc2be8b7aacd4bc367a421a6e7 100644 (file)
@@ -10,6 +10,7 @@
 #include "ipc/Messages.h"
 #include "ipc/TypedMsgHdr.h"
 #include "mgr/IoAction.h"
+#include "protos.h"
 #include "SquidMath.h"
 #include "Store.h"
 
index fe4f54cbf4f1df9cb92b1d6ca064a0cb0657da08..f2f982fb4c517c432dee63570193ce02f1a8d6eb 100644 (file)
@@ -10,9 +10,9 @@
 #include "ipc/Messages.h"
 #include "ipc/TypedMsgHdr.h"
 #include "mgr/ServiceTimesAction.h"
+#include "protos.h"
 #include "Store.h"
 
-
 extern void GetServiceTimesStats(Mgr::ServiceTimesActionData& stats);
 extern void DumpServiceTimesStats(Mgr::ServiceTimesActionData& stats, StoreEntry* sentry);
 
index 2365974aa1969658d9a36478f70e8a85c10dbf00..be1bc6a021bcd2a2c4692530eb018d86b98fc47f 100644 (file)
@@ -10,6 +10,7 @@
 #include "ipc/Messages.h"
 #include "ipc/TypedMsgHdr.h"
 #include "mgr/StoreIoAction.h"
+#include "protos.h"
 #include "Store.h"
 
 
index 5764ec7e53a0eb8e59d252ae9d0603be01422c14..a5e390c1fdc89fe3861ba3543b3171b054f52144 100644 (file)
@@ -12,6 +12,7 @@
 #include "comm/Write.h"
 #include "ipc/FdNotes.h"
 #include "mgr/StoreToCommWriter.h"
+#include "protos.h"
 #include "StoreClient.h"
 #include "Store.h"
 
index 1dfe35c1fd423c8ec643ac151ccee86e91ffca91..8e06998d3550f2e9e1448c4f46684d95770fc5a4 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
+#include "fde.h"
+#include "globals.h"
 #include "HttpHdrCc.h"
-#include "Store.h"
-#include "StoreClient.h"
 #include "HttpReply.h"
 #include "HttpRequest.h"
-#include "MemObject.h"
-#include "fde.h"
 #include "MemBuf.h"
+#include "MemObject.h"
+#include "protos.h"
+#include "Store.h"
+#include "StoreClient.h"
+
+#if HAVE_SYS_STAT_H
+#include <sys/stat.h>
+#endif
 
 #define GET_HDR_SZ 1024
 
index d7437f20a2c4cd072a869462ac7c2e7cf28df020..d24e20469ec2e6939bc9fdeb93c6bd9e43e4c5e8 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 
 #define GET_HDR_SZ 1024
-
-/* returns a pointer to a field-value of the first matching field-name */
-char *
-mime_get_header(const char *mime, const char *name)
-{
-    return mime_get_header_field(mime, name, NULL);
-}
+#include "Debug.h"
+#include "profiler/Profiler.h"
 
 /*
  * returns a pointer to a field-value of the first matching field-name where
@@ -117,6 +112,14 @@ mime_get_header_field(const char *mime, const char *name, const char *prefix)
     return NULL;
 }
 
+/* returns a pointer to a field-value of the first matching field-name */
+char *
+mime_get_header(const char *mime, const char *name)
+{
+    return mime_get_header_field(mime, name, NULL);
+}
+
+
 size_t
 headersEnd(const char *mime, size_t l)
 {
index d3ac44d65b5a3afcca8d5d6526f52476a320bc8a..842823d013cc4a910bf045fbca3024b26d16c298 100644 (file)
@@ -33,8 +33,9 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "comm/Connection.h"
+#include "Debug.h"
 // XXX: for icpIncomingConn - need to pass it as a generic parameter.
 #include "ICP.h"
 #include "ipcache.h"
index 8c5b9589ca54bb5defa9cdf59cb1212bb16a6508..10a07e60befd7d3307c45a47282893ef68864a33 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/FilledChecklist.h"
 #include "anyp/PortCfg.h"
 #include "comm/Connection.h"
 #include "comm/ConnOpener.h"
 #include "event.h"
+#include "globals.h"
 #include "htcp.h"
 #include "HttpRequest.h"
+#include "icmp/net_db.h"
 #include "ICP.h"
+#include "ip/Address.h"
 #include "ip/tools.h"
 #include "ipcache.h"
 #include "MemObject.h"
+#include "mgr/Registration.h"
 #include "PeerDigest.h"
 #include "PeerSelectState.h"
+#include "protos.h"
 #include "SquidMath.h"
 #include "SquidTime.h"
 #include "Store.h"
-#include "icmp/net_db.h"
-#include "ip/Address.h"
-#include "ip/tools.h"
-#include "mgr/Registration.h"
 
 /* count mcast group peers every 15 minutes */
 #define MCAST_COUNT_RATE 900
index 9593201a43f73dbdecbf05bb52e6b2a0208c91b7..a987c4b31d0a4d80db741fb64194eb0846ca56e1 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
+#include "comm.h"
 #include "comm/Connection.h"
+#include "fde.h"
+#include "globals.h"
 #include "mgr/Registration.h"
-#include "Store.h"
 #include "pconn.h"
-#include "comm.h"
-#include "fde.h"
+#include "protos.h"
+#include "Store.h"
 
 #define PCONN_FDS_SZ   8       /* pconn set size, increase for better memcache hit rate */
 
index daf62db9a9099688767c54112c79d77dab0c08c7..3452281b1112b690d29c9b711a985be73c0676c1 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #if USE_CACHE_DIGESTS
-
 #include "event.h"
 #include "forward.h"
-#include "Store.h"
-#include "HttpRequest.h"
 #include "HttpReply.h"
+#include "HttpRequest.h"
 #include "MemObject.h"
 #include "PeerDigest.h"
+#include "protos.h"
 #include "SquidTime.h"
+#include "Store.h"
 #include "StoreClient.h"
 
 /* local types */
index 9747af8f2c360cd0e84070548ebe276e672270c0..de8e41cc2b645cda4989be299c5da0d0e0ad5d1c 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
+#include "acl/FilledChecklist.h"
+#include "client_side.h"
 #include "DnsLookupDetails.h"
 #include "errorpage.h"
 #include "event.h"
-#include "PeerSelectState.h"
-#include "Store.h"
+#include "forward.h"
 #include "hier_code.h"
-#include "ICP.h"
-#include "HttpRequest.h"
-#include "acl/FilledChecklist.h"
 #include "htcp.h"
-#include "forward.h"
-#include "SquidTime.h"
+#include "HttpRequest.h"
 #include "icmp/net_db.h"
+#include "ICP.h"
 #include "ipcache.h"
+#include "PeerSelectState.h"
+#include "protos.h"
+#include "SquidTime.h"
+#include "Store.h"
 
 static struct {
     int timeouts;
index 0f9da6ae8d28a5027e137b45b8706e94caf58b17..57ad36ab07c795c51e48c1529f7864fdef33bc31 100644 (file)
  *
  */
 
-#include "squid-old.h"
-#include "Store.h"
+#include "squid.h"
 #include "HttpRequest.h"
 #include "mgr/Registration.h"
+#include "protos.h"
+#include "Store.h"
+
+#if HAVE_MATH_H
+#include <math.h>
+#endif
 
 #define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
 
index 62c9ffa98a8d2944825c70a75f8f6801f4d9a649..342119209ce21e48f51170b9171a6aeb6e011ece 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 
 #if USE_AUTH
 
+#include "auth/UserRequest.h"
+#include "globals.h"
+#include "HttpRequest.h"
 #include "mgr/Registration.h"
+#include "protos.h"
 #include "Store.h"
-#include "HttpRequest.h"
-#include "auth/UserRequest.h"
+
+#if HAVE_MATH_H
+#include <math.h>
+#endif
 
 #define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
 
index 520863954b50574dee9eef43d926041acd65c1f7..ad0d82460ffa6b62addc5cd5ffdff6ecd4115ed7 100644 (file)
@@ -51,21 +51,21 @@ class ClientInfo;
 
 
 #if USE_FORW_VIA_DB
-SQUIDCEXTERN void fvdbCountVia(const char *key);
-SQUIDCEXTERN void fvdbCountForw(const char *key);
+extern void fvdbCountVia(const char *key);
+extern void fvdbCountForw(const char *key);
 #endif
 #if HEADERS_LOG
 SQUIDCEXTERN void headersLog(int cs, int pq, const HttpRequestMethod& m, void *data);
 #endif
-SQUIDCEXTERN int logTypeIsATcpHit(log_type);
+extern int logTypeIsATcpHit(log_type);
 
 /*
  * cache_cf.c
  */
 SQUIDCEXTERN void configFreeMemory(void);
 class MemBuf;
-SQUIDCEXTERN void wordlistCat(const wordlist *, MemBuf * mb);
-SQUIDCEXTERN void self_destruct(void);
+extern void wordlistCat(const wordlist *, MemBuf * mb);
+extern void self_destruct(void);
 SQUIDCEXTERN void add_http_port(char *portspec);
 extern int xatoi(const char *token);
 extern long xatol(const char *token);
@@ -125,13 +125,13 @@ SQUIDCEXTERN void file_write_mbuf(int fd, off_t, MemBuf mb, DWCB * handler, void
 SQUIDCEXTERN void file_read(int, char *, int, off_t, DRCB *, void *);
 SQUIDCEXTERN void disk_init(void);
 
-SQUIDCEXTERN void fd_close(int fd);
-SQUIDCEXTERN void fd_open(int fd, unsigned int type, const char *);
-SQUIDCEXTERN void fd_note(int fd, const char *);
-SQUIDCEXTERN void fd_bytes(int fd, int len, unsigned int type);
-SQUIDCEXTERN void fdDumpOpen(void);
-SQUIDCEXTERN int fdUsageHigh(void);
-SQUIDCEXTERN void fdAdjustReserved(void);
+extern void fd_close(int fd);
+extern void fd_open(int fd, unsigned int type, const char *);
+extern void fd_note(int fd, const char *);
+extern void fd_bytes(int fd, int len, unsigned int type);
+extern void fdDumpOpen(void);
+extern int fdUsageHigh(void);
+extern void fdAdjustReserved(void);
 
 SQUIDCEXTERN void fqdncache_nbgethostbyaddr(const Ip::Address &, FQDNH *, void *);
 
@@ -144,7 +144,7 @@ SQUIDCEXTERN const char *fqdnFromAddr(const Ip::Address &);
 SQUIDCEXTERN int fqdncacheQueueDrain(void);
 SQUIDCEXTERN void fqdncacheFreeMemory(void);
 SQUIDCEXTERN void fqdncache_restart(void);
-void fqdncache_purgelru(void *);
+extern void fqdncache_purgelru(void *);
 SQUIDCEXTERN void fqdncacheAddEntryFromHosts(char *addr, wordlist * hostnames);
 
 class FwdState;
@@ -195,10 +195,9 @@ SQUIDCEXTERN mb_size_t httpBuildRequestPrefix(HttpRequest * request,
         StoreEntry * entry,
         MemBuf * mb,
         http_state_flags);
-SQUIDCEXTERN const char *httpMakeVaryMark(HttpRequest * request, HttpReply const * reply);
+extern const char *httpMakeVaryMark(HttpRequest * request, HttpReply const * reply);
 
 #include "HttpStatusCode.h"
-SQUIDCEXTERN const char *httpStatusString(http_status status);
 
 class StatHist;
 
@@ -206,7 +205,7 @@ class StatHist;
 SQUIDCEXTERN void httpHdrCcInitModule(void);
 SQUIDCEXTERN void httpHdrCcCleanModule(void);
 SQUIDCEXTERN void httpHdrCcUpdateStats(const HttpHdrCc * cc, StatHist * hist);
-void httpHdrCcStatDumper(StoreEntry * sentry, int idx, double val, double size, int count);
+extern void httpHdrCcStatDumper(StoreEntry * sentry, int idx, double val, double size, int count);
 
 /* Http Header Tools */
 class HttpHeaderFieldInfo;
@@ -222,9 +221,7 @@ SQUIDCEXTERN int strListIsSubstr(const String * list, const char *s, char del);
 SQUIDCEXTERN int strListGetItem(const String * str, char del, const char **item, int *ilen, const char **pos);
 SQUIDCEXTERN const char *getStringPrefix(const char *str, const char *end);
 SQUIDCEXTERN int httpHeaderParseInt(const char *start, int *val);
-SQUIDCEXTERN int httpHeaderParseOffset(const char *start, int64_t * off);
-SQUIDCEXTERN void
-httpHeaderPutStrf(HttpHeader * hdr, http_hdr_type id, const char *fmt,...) PRINTF_FORMAT_ARG3;
+SQUIDCEXTERN void httpHeaderPutStrf(HttpHeader * hdr, http_hdr_type id, const char *fmt,...) PRINTF_FORMAT_ARG3;
 
 
 /* Http Header */
@@ -260,9 +257,9 @@ extern variable_list *snmp_meshCtblFn(variable_list *, snint *);
 #endif /* SQUID_SNMP */
 
 #if USE_WCCP
-SQUIDCEXTERN void wccpInit(void);
-SQUIDCEXTERN void wccpConnectionOpen(void);
-SQUIDCEXTERN void wccpConnectionClose(void);
+extern void wccpInit(void);
+extern void wccpConnectionOpen(void);
+extern void wccpConnectionClose(void);
 #endif /* USE_WCCP */
 
 #if USE_WCCPv2
@@ -271,23 +268,23 @@ extern void wccp2ConnectionOpen(void);
 extern void wccp2ConnectionClose(void);
 #endif /* USE_WCCPv2 */
 
-SQUIDCEXTERN char *mime_get_header(const char *mime, const char *header);
-SQUIDCEXTERN char *mime_get_header_field(const char *mime, const char *name, const char *prefix);
-SQUIDCEXTERN size_t headersEnd(const char *, size_t);
+extern char *mime_get_header(const char *mime, const char *header);
+extern char *mime_get_header_field(const char *mime, const char *name, const char *prefix);
+extern size_t headersEnd(const char *, size_t);
 
-SQUIDCEXTERN void mimeInit(char *filename);
-SQUIDCEXTERN void mimeFreeMemory(void);
-SQUIDCEXTERN char *mimeGetContentEncoding(const char *fn);
-SQUIDCEXTERN char *mimeGetContentType(const char *fn);
-SQUIDCEXTERN char const *mimeGetIcon(const char *fn);
-SQUIDCEXTERN const char *mimeGetIconURL(const char *fn);
-SQUIDCEXTERN char mimeGetTransferMode(const char *fn);
-SQUIDCEXTERN int mimeGetDownloadOption(const char *fn);
-SQUIDCEXTERN int mimeGetViewOption(const char *fn);
+extern void mimeInit(char *filename);
+extern void mimeFreeMemory(void);
+extern char *mimeGetContentEncoding(const char *fn);
+extern char *mimeGetContentType(const char *fn);
+extern char const *mimeGetIcon(const char *fn);
+extern const char *mimeGetIconURL(const char *fn);
+extern char mimeGetTransferMode(const char *fn);
+extern int mimeGetDownloadOption(const char *fn);
+extern int mimeGetViewOption(const char *fn);
 
 #include "ipcache.h"
-SQUIDCEXTERN int mcastSetTtl(int, int);
-SQUIDCEXTERN IPH mcastJoinGroups;
+extern int mcastSetTtl(int, int);
+extern IPH mcastJoinGroups;
 
 SQUIDCEXTERN peer *getFirstPeer(void);
 SQUIDCEXTERN peer *getFirstUpParent(HttpRequest *);
@@ -405,15 +402,15 @@ SQUIDCEXTERN void memConfigure(void);
 /* ----------------------------------------------------------------- */
 
 /* repl_modules.c */
-SQUIDCEXTERN void storeReplSetup(void);
+extern void storeReplSetup(void);
 
 /*
  * store_log.c
  */
-SQUIDCEXTERN void storeLog(int tag, const StoreEntry * e);
-SQUIDCEXTERN void storeLogRotate(void);
-SQUIDCEXTERN void storeLogClose(void);
-SQUIDCEXTERN void storeLogOpen(void);
+extern void storeLog(int tag, const StoreEntry * e);
+extern void storeLogRotate(void);
+extern void storeLogClose(void);
+extern void storeLogOpen(void);
 
 
 /*
@@ -437,10 +434,10 @@ SQUIDCEXTERN HASHCMP storeKeyHashCmp;
 /*
  * store_digest.c
  */
-SQUIDCEXTERN void storeDigestInit(void);
-SQUIDCEXTERN void storeDigestNoteStoreReady(void);
-SQUIDCEXTERN void storeDigestScheduleRebuild(void);
-SQUIDCEXTERN void storeDigestDel(const StoreEntry * entry);
+extern void storeDigestInit(void);
+extern void storeDigestNoteStoreReady(void);
+extern void storeDigestScheduleRebuild(void);
+extern void storeDigestDel(const StoreEntry * entry);
 extern void storeDigestReport(StoreEntry *);
 
 /*
@@ -452,18 +449,18 @@ SQUIDCEXTERN void storeRebuildComplete(struct _store_rebuild_data *);
 SQUIDCEXTERN void storeRebuildProgress(int sd_index, int total, int sofar);
 
 /// loads entry from disk; fills supplied memory buffer on success
-bool storeRebuildLoadEntry(int fd, int diskIndex, MemBuf &buf, struct _store_rebuild_data &counts);
+extern bool storeRebuildLoadEntry(int fd, int diskIndex, MemBuf &buf, struct _store_rebuild_data &counts);
 /// parses entry buffer and validates entry metadata; fills e on success
-bool storeRebuildParseEntry(MemBuf &buf, StoreEntry &e, cache_key *key, struct _store_rebuild_data &counts, uint64_t expectedSize);
+extern bool storeRebuildParseEntry(MemBuf &buf, StoreEntry &e, cache_key *key, struct _store_rebuild_data &counts, uint64_t expectedSize);
 /// checks whether the loaded entry should be kept; updates counters
-bool storeRebuildKeepEntry(const StoreEntry &e, const cache_key *key, struct _store_rebuild_data &counts);
+extern bool storeRebuildKeepEntry(const StoreEntry &e, const cache_key *key, struct _store_rebuild_data &counts);
 
 
 /*
  * store_swapin.c
  */
 class store_client;
-SQUIDCEXTERN void storeSwapInStart(store_client *);
+extern void storeSwapInStart(store_client *);
 
 /*
  * store_client.c
@@ -481,10 +478,10 @@ SQUIDCEXTERN const char *uniqueHostname(void);
 SQUIDCEXTERN void safeunlink(const char *path, int quiet);
 
 #include "fatal.h"
-void death(int sig);
-void sigusr2_handle(int sig);
-void sig_child(int sig);
-void sig_shutdown(int sig); ///< handles shutdown notifications from kids
+extern void death(int sig);
+extern void sigusr2_handle(int sig);
+extern void sig_child(int sig);
+extern void sig_shutdown(int sig); ///< handles shutdown notifications from kids
 SQUIDCEXTERN void leave_suid(void);
 SQUIDCEXTERN void enter_suid(void);
 SQUIDCEXTERN void no_suid(void);
@@ -508,7 +505,7 @@ SQUIDCEXTERN bool IamCoordinatorProcess();
 /// whether the current process handles HTTP transactions and such
 SQUIDCEXTERN bool IamWorkerProcess();
 /// whether the current process is dedicated to managing a cache_dir
-bool IamDiskProcess();
+extern bool IamDiskProcess();
 /// Whether we are running in daemon mode
 SQUIDCEXTERN bool InDaemonMode(); // try using specific Iam*() checks above first
 /// Whether there should be more than one worker process running
@@ -516,7 +513,7 @@ SQUIDCEXTERN bool UsingSmp(); // try using specific Iam*() checks above first
 /// number of Kid processes as defined in src/ipc/Kid.h
 SQUIDCEXTERN int NumberOfKids();
 /// a string describing this process roles such as worker or coordinator
-String ProcessRoles();
+extern String ProcessRoles();
 SQUIDCEXTERN int DebugSignal;
 
 /* AYJ debugs function to show locations being reset with memset() */
@@ -577,7 +574,7 @@ 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);
-SQUIDCEXTERN int isPowTen(int);
+extern int isPowTen(int);
 SQUIDCEXTERN void parseEtcHosts(void);
 SQUIDCEXTERN int getMyPort(void);
 SQUIDCEXTERN void setUmask(mode_t mask);
index ceed8468c47fefd81faebe164a62f87aeb365685..5751ad4c8316efbd2bbe792d2f5f332008cc74cc 100644 (file)
  *
  */
 
-#include "squid-old.h"
-#if USE_AUTH
-#include "auth/UserRequest.h"
-#endif
-#include "comm/Connection.h"
-#include "mgr/Registration.h"
-#include "Store.h"
-#include "fde.h"
-#include "client_side_request.h"
+#include "squid.h"
 #include "acl/Checklist.h"
-#include "HttpRequest.h"
 #include "client_side.h"
 #include "client_side_reply.h"
+#include "client_side_request.h"
+#include "comm/Connection.h"
+#include "fde.h"
+#include "globals.h"
+#include "HttpRequest.h"
 #include "helper.h"
+#include "mgr/Registration.h"
+#include "protos.h"
 #include "rfc1738.h"
+#include "Store.h"
+#if USE_AUTH
+#include "auth/UserRequest.h"
+#endif
 #if USE_SSL
 #include "ssl/support.h"
 #endif
index 97114741f6cd5c98cdea64c46082f87d072cd7d4..09d23627101624eee7986b96c3fcd4172d29bb9f 100644 (file)
 #define USE_POSIX_REGEX                /* put before includes; always use POSIX */
 #endif
 
-#include "squid-old.h"
-#include "HttpHdrCc.h"
+#include "squid.h"
 #include "mgr/Registration.h"
-#include "Store.h"
-#include "MemObject.h"
+#include "HttpHdrCc.h"
 #include "HttpRequest.h"
 #include "HttpReply.h"
+#include "MemObject.h"
+#include "protos.h"
 #include "SquidTime.h"
+#include "Store.h"
 
 typedef enum {
     rcHTTP,
index 68ee1b938cc7142ff13f5aa3aae11c41e71f1eaf..a0e607cc1b55ac042f78db6fefa99f633956d7b8 100644 (file)
  *  http://www.hpl.hp.com/techreports/1999/HPL-1999-69.html
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "heap.h"
 #include "store_heap_replacement.h"
 #include "Store.h"
 #include "MemObject.h"
 #include "SquidTime.h"
 
+#if HAVE_MATH_H
+#include <math.h>
+#endif
+
 /*
  * Key generation function to implement the LFU-DA policy (Least
  * Frequently Used with Dynamic Aging).  Similar to classical LFU
index 2ff00bcbd1ae23b2a5a7bd41791cde81c7c4dd38..575ae1514c0059b8af450006f1bec081664d4fd9 100644 (file)
@@ -41,8 +41,9 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "heap.h"
+#include "protos.h"
 #include "store_heap_replacement.h"
 #include "Store.h"
 #include "MemObject.h"
index fc70225324c42700721abc75f6d5d8ae3ca74889..dd0cb70885bb613fd04c55af7e52b8a83332ba0c 100644 (file)
@@ -33,7 +33,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "Store.h"
 #include "MemObject.h"
 #include "SquidTime.h"
index 41a9e2bb38b84bfa476050c0f2835f9dfb1e2df6..b5ee95a87f80f6baf390ae8d085bf35ecac3ccb1 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "comm/Connection.h"
 #include "event.h"
 #include "fde.h"
+#include "globals.h"
 #include "ICP.h"
 #include "ipcache.h"
+#include "protos.h"
 #include "SquidTime.h"
 
 static IPH send_announce;
index 8f63020b5009532c5160dd107ac7dca83cad8008..4bf1f9185a734f8468ee3eaaa8faf1d4f8955f4a 100644 (file)
@@ -9,6 +9,7 @@
 #include "base/TextException.h"
 #include "CommCalls.h"
 #include "comm.h"
+#include "globals.h"
 #include "ipc/Port.h"
 #include "snmp_core.h"
 #include "snmp/Forwarder.h"
index 2461851571c16731a8f2554580ac32dc91a4f5a9..d0ab68419e245dfad4f19c36aa40e3eb62c6bb01 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "cache_snmp.h"
-#include "Store.h"
+#include "globals.h"
 #include "mem_node.h"
+#include "protos.h"
 #include "StatCounters.h"
 #include "StatHist.h"
 #include "SquidMath.h"
 #include "SquidTime.h"
+#include "Store.h"
 
 /************************************************************************
 
index 6316a2c491a2e9b1f09a147ec580871cffb9fccd..b96d624f830fd2b841a7d57c9c501c0ab281a1c8 100644 (file)
@@ -29,7 +29,7 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
  *
  */
-#include "squid-old.h"
+#include "squid.h"
 #include "acl/FilledChecklist.h"
 #include "base/CbcPointer.h"
 #include "comm.h"
@@ -38,6 +38,7 @@
 #include "comm/UdpOpenDialer.h"
 #include "ip/Address.h"
 #include "ip/tools.h"
+#include "protos.h"
 #include "snmp_core.h"
 #include "snmp/Forwarder.h"
 
diff --git a/src/squid-old.h b/src/squid-old.h
deleted file mode 100644 (file)
index 9c54dc2..0000000
+++ /dev/null
@@ -1,170 +0,0 @@
-/*
- * AUTHOR: Duane Wessels
- *
- * 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_H
-#define SQUID_H
-
-#include "squid.h"
-
-#if HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-#if HAVE_STDIO_H
-#include <stdio.h>
-#endif
-#if HAVE_CTYPE_H
-#include <ctype.h>
-#endif
-#if HAVE_ERRNO_H
-#include <errno.h>
-#endif
-#if HAVE_GRP_H
-#include <grp.h>
-#endif
-#if HAVE_GNUMALLOC_H
-#include <gnumalloc.h>
-#elif HAVE_MALLOC_H
-#include <malloc.h>
-#endif
-#if HAVE_MEMORY_H
-#include <memory.h>
-#endif
-#if HAVE_NETDB_H
-#include <netdb.h>
-#endif
-#if HAVE_PATHS_H
-#include <paths.h>
-#endif
-#if HAVE_PWD_H
-#include <pwd.h>
-#endif
-#if HAVE_SIGNAL_H
-#include <signal.h>
-#endif
-#if HAVE_TIME_H
-#include <time.h>
-#endif
-#if HAVE_SYS_PARAM_H
-#include <sys/param.h>
-#endif
-#if HAVE_SYS_TIME_H
-#include <sys/time.h>
-#endif
-#if HAVE_SYS_RESOURCE_H
-#include <sys/resource.h>      /* needs sys/time.h above it */
-#endif
-#if HAVE_SYS_SOCKET_H
-#include <sys/socket.h>
-#endif
-#if HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-#if HAVE_ARPA_INET_H
-#include <arpa/inet.h>
-#endif
-#if HAVE_SYS_STAT_H
-#include <sys/stat.h>
-#endif
-#if HAVE_SYS_UN_H
-#include <sys/un.h>
-#endif
-#if HAVE_SYS_WAIT_H
-#include <sys/wait.h>
-#endif
-#if HAVE_LIBC_H
-#include <libc.h>
-#endif
-#if HAVE_SYS_SYSCALL_H
-#include <sys/syscall.h>
-#endif
-#if HAVE_STRING_H
-#include <string.h>
-#endif
-#if HAVE_STRINGS_H
-#include <strings.h>
-#endif
-#if HAVE_BSTRING_H
-#include <bstring.h>
-#endif
-#if HAVE_GETOPT_H
-#include <getopt.h>
-#endif
-#if HAVE_LIMITS_H
-#include <limits.h>
-#endif
-#if _SQUID_WINDOWS_
-#include <io.h>
-#endif
-#if HAVE_SYS_MOUNT_H
-#include <sys/mount.h>
-#endif
-#if HAVE_MATH_H
-#include <math.h>
-#endif
-
-#ifndef MAXPATHLEN
-#define MAXPATHLEN SQUID_MAXPATHLEN
-#endif
-
-#include "md5.h"
-#if SQUID_SNMP
-#include "cache_snmp.h"
-#endif
-#include "hash.h"
-#include "rfc3596.h"
-#include "defines.h"
-#include "enums.h"
-#include "typedefs.h"
-#include "util.h"
-#include "profiler/Profiler.h"
-#include "MemPool.h"
-#include "ip/Address.h"
-#include "structs.h"
-#include "protos.h"
-#include "globals.h"
-
-/*
- * I'm sick of having to keep doing this ..
- */
-#define INDEXSD(i)   (Config.cacheSwap.swapDirs[(i)].getRaw())
-
-#define FD_READ_METHOD(fd, buf, len) (*fd_table[fd].read_method)(fd, buf, len)
-#define FD_WRITE_METHOD(fd, buf, len) (*fd_table[fd].write_method)(fd, buf, len)
-
-#ifndef IPPROTO_UDP
-#define IPPROTO_UDP 0
-#endif
-
-#ifndef IPPROTO_TCP
-#define IPPROTO_TCP 0
-#endif
-
-#endif /* SQUID_H */
index 31eb8edf33fd42f657407fd3813fb359fd3483a2..bc83b577104ff2d20a0cb607272c0cf23f48cd9b 100644 (file)
@@ -1,9 +1,12 @@
-#include "squid-old.h"
+#include "squid.h"
 #include "errorpage.h"
 #include "ssl/ErrorDetail.h"
 #if HAVE_MAP
 #include <map>
 #endif
+#if HAVE_CLIMITS
+#include <climits>
+#endif
 
 struct SslErrorEntry {
     Ssl::ssl_error_t value;
index 8d24bcc2d29e616d616b48253f31db157e74b957..da299df308af16c5044475181ca52d29f0d654b3 100644 (file)
@@ -1,7 +1,8 @@
-#include "squid-old.h"
+#include "squid.h"
 #include "ErrorDetail.h"
 #include "errorpage.h"
 #include "ErrorDetailManager.h"
+#include "protos.h"
 
 void Ssl::errorDetailInitialize()
 {
index 5d30b1971ae333bfd571bd3c280c410b11db0c92..13de8021109894c454d3ee15eb2ae1f56c66bc09 100644 (file)
@@ -9,6 +9,7 @@
 
 #include "client_side.h"
 #include "forward.h"
+#include "protos.h"
 #include "ssl/ServerBump.h"
 #include "Store.h"
 
index acaf91b0b103740596e6b0c613cbaae3eb6c82d7..f214e726aa1362719218a9e12e78aebf0d745d8b 100644 (file)
@@ -8,6 +8,7 @@
 #include "ip/Address.h"
 
 class ConnStateData;
+class store_client;
 
 namespace Ssl
 {
index c3e970745d0d988d522fec3814ed7362248a3153..b1cc20dc39ba0614c15b9e6c0343d5ae3cb35120 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 
 /* MS Visual Studio Projects are monolithic, so we need the following
  * #if to exclude the SSL code from compile process when not needed.
  */
 #if USE_SSL
 
-#include "fde.h"
 #include "acl/FilledChecklist.h"
+#include "fde.h"
+#include "globals.h"
+#include "protos.h"
 #include "ssl/ErrorDetail.h"
 #include "ssl/support.h"
 #include "ssl/gadgets.h"
index 3699308c4c57249757cf554c986454181349aa97..b6f63e3062aab07e728e9b7eb912582eb917dd01 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
+#include "client_side_request.h"
+#include "client_side.h"
+#include "comm/Connection.h"
 #include "comm/Loops.h"
 #include "event.h"
+#include "fde.h"
 #include "format/Token.h"
-#include "StoreClient.h"
-#if USE_AUTH
-#include "auth/UserRequest.h"
-#endif
-#include "comm/Connection.h"
-#include "mgr/Registration.h"
-#include "Store.h"
+#include "globals.h"
 #include "HttpRequest.h"
 #include "MemObject.h"
-#include "fde.h"
 #include "mem_node.h"
-#if USE_DELAY_POOLS
-#include "DelayId.h"
-#endif
-#include "client_side_request.h"
-#include "client_side.h"
 #include "MemBuf.h"
-#include "SquidMath.h"
-#include "SquidTime.h"
-#include "StatCounters.h"
 #include "mgr/CountersAction.h"
 #include "mgr/FunAction.h"
 #include "mgr/InfoAction.h"
 #include "mgr/IntervalAction.h"
 #include "mgr/IoAction.h"
+#include "mgr/Registration.h"
 #include "mgr/ServiceTimesAction.h"
+#include "protos.h"
+#include "SquidMath.h"
+#include "SquidTime.h"
+#include "StatCounters.h"
+#include "StoreClient.h"
+#include "Store.h"
+#if USE_AUTH
+#include "auth/UserRequest.h"
+#endif
+#if USE_DELAY_POOLS
+#include "DelayId.h"
+#endif
 #if USE_SSL
 #include "ssl/support.h"
 #endif
index 49c0db62c2684f4ac5328d090327a916b42ece2c..d277df270cce3344a98e7de8148f98d57b69e15c 100644 (file)
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
-#include "stmem.h"
+#include "squid.h"
+#include "Generic.h"
 #include "mem_node.h"
 #include "MemObject.h"
-#include "Generic.h"
+#include "profiler/Profiler.h"
+#include "stmem.h"
 
 /*
  * NodeGet() is called to get the data buffer to pass to storeIOWrite().
index 2654beac9803f13a34700c996540d548d90efc21..fdbead6f35fcca4d06f87822ed3b1c2e8f706d8f 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "CacheManager.h"
 #include "comm/Connection.h"
 #include "ETag.h"
 #include "event.h"
 #include "fde.h"
-#include "Store.h"
-#include "mgr/Registration.h"
-#include "StoreClient.h"
-#include "stmem.h"
+#include "http.h"
 #include "HttpReply.h"
 #include "HttpRequest.h"
-#include "MemObject.h"
 #include "mem_node.h"
+#include "MemObject.h"
+#include "mgr/Registration.h"
+#include "mgr/StoreIoAction.h"
+#include "profiler/Profiler.h"
+#include "protos.h"
+#include "SquidTime.h"
+#include "Stack.h"
 #include "StatCounters.h"
+#include "stmem.h"
+#include "StoreClient.h"
+#include "Store.h"
+#include "StoreIOState.h"
 #include "StoreMeta.h"
 #include "SwapDir.h"
-#include "StoreIOState.h"
+#include "swap_log_op.h"
 #if USE_DELAY_POOLS
 #include "DelayPools.h"
 #endif
-#include "Stack.h"
-#include "SquidTime.h"
-#include "swap_log_op.h"
-#include "mgr/StoreIoAction.h"
+#if HAVE_LIMITS_H
+#include <limits.h>
+#endif
 
 static STMCB storeWriteComplete;
 
index b2d0c7b6278b957d475119bfcf201d763084a0d1..f5bc7dfadb9a584181860e52cbbe04e4b3eb04a4 100644 (file)
  * Portions copyright (c) 2003 Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "event.h"
-#include "StoreClient.h"
-#include "Store.h"
 #include "HttpReply.h"
+#include "HttpRequest.h"
+#include "MemBuf.h"
 #include "MemObject.h"
+#include "profiler/Profiler.h"
+#include "protos.h"
 #include "StatCounters.h"
+#include "StoreClient.h"
+#include "Store.h"
 #include "StoreMeta.h"
 #include "StoreMetaUnpacker.h"
 #if USE_DELAY_POOLS
 #include "DelayPools.h"
 #endif
-#include "HttpRequest.h"
-#include "MemBuf.h"
 
 /*
  * NOTE: 'Header' refers to the swapfile metadata header.
index 3e68bf06226217d0c3721ce003befda83edcef50..141e928adc3da0a212999a4f73164ace7c09774c 100644 (file)
  *       storeDigestRebuild/write schedule to be activated
  */
 
-#include "squid-old.h"
+#include "squid.h"
+#include "Debug.h"
 #include "event.h"
+#include "globals.h"
 #include "mgr/Registration.h"
+#include "protos.h"
 #if USE_CACHE_DIGESTS
 
-#include "Store.h"
-#include "HttpRequest.h"
 #include "HttpReply.h"
+#include "HttpRequest.h"
 #include "MemObject.h"
 #include "PeerDigest.h"
 #include "SquidTime.h"
+#include "Store.h"
 #include "StoreSearch.h"
 
+#if HAVE_MATH_H
+#include <math.h>
+#endif
+
 /*
  * local types
  */
index e4560d2ba3bf08ae95c77a40e9355244250af763..1faf5dd67ebc4417caec04daa16f89f0c470a855 100644 (file)
  *
  */
 
-#include "squid-old.h"
-#include "Store.h"
+#include "squid.h"
+#include "globals.h"
+#include "mem_node.h"
 #include "MemObject.h"
 #include "MemStore.h"
-#include "mem_node.h"
+#include "profiler/Profiler.h"
+#include "protos.h"
 #include "SquidMath.h"
 #include "SquidTime.h"
+#include "Store.h"
 #include "SwapDir.h"
 #include "swap_log_op.h"
 
@@ -59,6 +62,9 @@
 #if HAVE_SYS_VFS_H
 #include <sys/vfs.h>
 #endif
+#if HAVE_SYS_WAIT_H
+#include <sys/wait.h>
+#endif
 
 #include "StoreHashIndex.h"
 
index ebdbe6eefabe91104e1c4c373dab12cb07c95ff9..797a5b34156b45a63840f18ca7571f06b46c4e70 100644 (file)
@@ -1,4 +1,4 @@
-#include "squid-old.h"
+#include "squid.h"
 #include "Store.h"
 #include "MemObject.h"
 #include "SwapDir.h"
index 49dd475d8b0e9b44e106ba3fe69450e329c43dbc..8ebb91fad841eed5d366e40a0858938e7972138c 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "HttpRequest.h"
+#include "md5.h"
+#include "protos.h"
 
 static cache_key null_key[SQUID_MD5_DIGEST_LENGTH];
 
index 0c7b534306d5edf337a9d85abcf90feab026a305..91688b7f4c496bd598ccefbff730493373a204c2 100644 (file)
@@ -32,7 +32,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "format/Token.h"
 #include "HttpReply.h"
 #include "log/File.h"
index 460290f09d5b09c592ca680e090f034fe6ba4595..e6cf618a81578dd05b3f4c4b9effd3ccdf9500a0 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "event.h"
+#include "globals.h"
+#include "md5.h"
+#include "protos.h"
 #include "StatCounters.h"
 #include "Store.h"
 #include "SwapDir.h"
index 8ad355217dbd2936db72fbad6a384a6491cbd05e..26f62b65a4be2dcec5d9f0f2dd0e7a30093a0642 100644 (file)
@@ -33,7 +33,8 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
+#include "globals.h"
 #include "StatCounters.h"
 #include "StoreClient.h"
 #include "Store.h"
index c3698e6ca83ecbdf477b542895ded64b55a33179..98a9d0efddb26f3b5a98ad54a65798c8a4b8bbb2 100644 (file)
  *
  */
 
-#include "squid-old.h"
-#include "Store.h"
+#include "squid.h"
+#include "md5.h"
 #include "MemObject.h"
+#include "Store.h"
 #include "StoreMeta.h"
 #include "StoreMetaUnpacker.h"
 
+#if HAVE_SYS_WAIT_H
+#include <sys/wait.h>
+#endif
+
 void
 storeSwapTLVFree(tlv * n)
 {
index 718c35ffe013129be1156c120c6304cf4a88d16f..25a4c4c5e0ae1babda95ccf9a860a0e301a98799 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "cbdata.h"
 #include "StoreClient.h"
 #include "Store.h"
 /* FIXME: Abstract the use of this more */
 #include "mem_node.h"
 #include "MemObject.h"
+#include "protos.h"
 #include "SwapDir.h"
 #include "StatCounters.h"
 #include "swap_log_op.h"
index cec592bb3fd0e4eb60646b158868f6392d30e5f6..672fcee0e3fa2f6048151dea122690fb887f4fe8 100644 (file)
 
 #include "RefCount.h"
 #include "cbdata.h"
+#include "defines.h"
 #include "dlink.h"
 #include "err_type.h"
+#include "hash.h"
+#include "ip/Address.h"
 
 /* needed for the global config */
 #include "HttpHeader.h"
@@ -63,6 +66,7 @@ class ACLChecklist;
 
 #if SQUID_SNMP
 
+#include "snmp_session.h"
 struct _snmp_request_t {
     u_char *buf;
     u_char *outbuf;
index a02e53bee2310aad5015d09b513354dee2ba82c9..a9d95faeac689a6d96f9f102d33d836374d34511 100644 (file)
@@ -36,7 +36,7 @@
  * Test-suite for playing with cache digests
  */
 
-#include "squid-old.h"
+#include "squid.h"
 
 typedef struct {
     int query_count;
index 19cc0e8786b681a49f82ea69265e0bcd8ad61476..b43dbd354fc834077d3ecf67d7274e500e71e9d6 100644 (file)
@@ -1,6 +1,4 @@
 #include "squid.h"
-
-#include "squid-old.h"
 #include "TestSwapDir.h"
 
 uint64_t
index 5785249c2eef18d00ae60fd38065050930b50916..f0f57574fa1b7cc0444b3dbd9c35f5cf80d1e47a 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef TEST_TESTSWAPDIR
 #define TEST_TESTSWAPDIR
 
-#include "squid-old.h"
 #include "SwapDir.h"
 
 class TestSwapDir : public SwapDir
index 3fb5ac0922d08955fb36302a1750d4fe5a5c255f..4f55df121aa8a6150a6b32910c51d5f883e50417 100644 (file)
@@ -35,7 +35,6 @@
 #include "squid.h"
 
 #if USE_DELAY_POOLS
-#include "squid-old.h"
 #include "DelayId.h"
 
 #define STUB_API "stub_DelayId.cc"
index 836a87a0d817ff75482fc452ad9b866e54800c36..2c8afff80f4f4c76a9024347ca127906386fe5eb 100644 (file)
@@ -1,4 +1,4 @@
-#include "squid-old.h"
+#include "squid.h"
 #include "HierarchyLogEntry.h"
 
 #define STUB_API "access.log.cc"
index 81421d2a0b0f7c1d3fe40d8fe71e23d164deff4d..7b82af51e5f896874cfd73a6c3259bea26043420 100644 (file)
@@ -32,7 +32,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 
 /*
  * DO NOT MODIFY:
index e5e9b0c679566c611f13c0b32204fb6c6d6553f4..6e7ffbdab7c4006e98ab7a9cd519bdf05e5f87a6 100644 (file)
@@ -32,8 +32,9 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "ConfigParser.h"
+#include "protos.h"
 #include "wordlist.h"
 
 #define STUB_API "cache_cf.cc"
index 819182a4c2d532dbb817f98f974e7fea2c53b2b7..b364a080b9772605c1d5019fc6b947e14b6e2628 100644 (file)
@@ -1,5 +1,6 @@
-#include "squid-old.h"
+#include "squid.h"
 #include "CacheManager.h"
+#include "Debug.h"
 #include "mgr/Registration.h"
 
 #define STUB_API "cache_manager.cc"
index 90eb844d2d653964cc2b5ba3c19c29248f48b877..f3ca968062d62bcfdff5e9c8eb4a0c2cbd56cf43 100644 (file)
@@ -1,5 +1,6 @@
 #include "squid.h"
 #include "errorpage.h"
+#include "protos.h"
 
 #define STUB_API "errorpage.cc"
 #include "tests/STUB.h"
index a5eab4b03f3440867df6bc6ba0cb6b97e7c1d53d..5fb6b27c59153d19dbc1c10b534343bda2714513 100644 (file)
@@ -1,5 +1,6 @@
 #include "squid.h"
 #include "fde.h"
+#include "protos.h"
 
 #define STUB_API "fd.cc"
 #include "tests/STUB.h"
index e6d2302a57be9977b3ffb9aa8c6b2292b31e2c9a..95497c218874b0847836e6fbc8cc00f0b7d516c6 100644 (file)
@@ -1,4 +1,7 @@
-#include "squid-old.h"
+#include "squid.h"
+
+#include "HttpRequest.h"
+#include "HttpReply.h"
 
 #define STUB_API "http.cc"
 #include "tests/STUB.h"
index b40e3f51bf700c1c463e7438981e0666749e5540..8e62c37d4b3d8ba071d142e42b230149508d3134 100644 (file)
@@ -32,7 +32,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 
 /*
  * DO NOT MODIFY:
index d58703fad53d06d5a320b8e64d84e6bceac3853f..0be956e7ab7c93a082b3b072b884e7d67c5d3b1f 100644 (file)
@@ -1,4 +1,4 @@
-#include "squid-old.h"
+#include "squid.h"
 
 #define STUB_API "store.cc"
 #include "tests/STUB.h"
index 16e87d28c062074b1164e7e5d094d954b736ac9b..65a9913862a2b2a4e3530f622c3df524f993951e 100644 (file)
@@ -1,6 +1,7 @@
-#include "squid-old.h"
+#include "squid.h"
 #include "StoreClient.h"
 #include "Store.h"
+#include "protos.h"
 
 #define STUB_API "store_client.cc"
 #include "tests/STUB.h"
index 744ea932bcdb4955691c7bab99f4e49b9dc844ac..9328898474e461473b840031d70f76f91a9077f8 100644 (file)
@@ -32,7 +32,9 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
+#include "MemBuf.h"
+#include "protos.h"
 
 #define STUB_API "stub_store_rebuild.cc"
 #include "tests/STUB.h"
index ce975ba572acba5505571e350833b68c50b8eecd..9a43f8441d756194cd916e09df18ee77c06794fc 100644 (file)
@@ -1,4 +1,4 @@
-#include "squid-old.h"
+#include "squid.h"
 
 #define STUB_API "StoreStats.cc"
 #include "tests/STUB.h"
index 24b96939603b13f98fade36c23de267dfa84f7df..b7be6ec6c20b7fc995e6ca2ee1a8c71de44363f4 100644 (file)
@@ -1,6 +1,6 @@
 #define SQUID_UNIT_TEST 1
 
-#include "squid-old.h"
+#include "squid.h"
 
 #if USE_AUTH
 
index a4de101b3c1573822f0d9341008bcba9e8581743..f0fb6dd417d0dc250fed19cc89a00b08179b869f 100644 (file)
@@ -1,6 +1,6 @@
 #define SQUID_UNIT_TEST 1
 
-#include "squid-old.h"
+#include "squid.h"
 
 #if USE_AUTH
 
index c45effb0acf7edd74df68d7492dd55c2d5641612..8d7d2d39cd20d8517dba99be0ce9dcef7ab27bd7 100644 (file)
@@ -1,6 +1,6 @@
 #define SQUID_UNIT_TEST 1
 
-#include "squid-old.h"
+#include "squid.h"
 #include "testBoilerplate.h"
 
 #if HAVE_STDEXCEPT
index 355057fb367809aab111443c7be43a2acb0d4c34..702a88fb693b2334352f31d9fd8e5a26281624ca 100644 (file)
@@ -1,6 +1,6 @@
 #define SQUID_UNIT_TEST 1
 
-#include "squid-old.h"
+#include "squid.h"
 #include <cppunit/TestAssert.h>
 #include "mgr/Action.h"
 
index ef687376190fe7dab9a59e8b6214994d4c5a3034..5e5fc4aa2836db77b936c163a32105f801f19f78 100644 (file)
@@ -1,5 +1,5 @@
 #define SQUID_UNIT_TEST 1
-#include "squid-old.h"
+#include "squid.h"
 #include "testCoss.h"
 #include "Store.h"
 #include "SwapDir.h"
index ca3f1ff2b01ee4d98a04a2fd494a0cb2b81c83a6..b06b5a1aa8d2e7a789cf728ba8993616d0e4e560 100644 (file)
@@ -1,6 +1,6 @@
 #define SQUID_UNIT_TEST 1
 
-#include "squid-old.h"
+#include "squid.h"
 #include "testDiskIO.h"
 #include "Store.h"
 #include "SwapDir.h"
index 6d525cb0413fe5ea0bf358e3a193a468d03daa1d..ad0fdb9fb67a0c16d2ad96184a3ab917932bae16 100644 (file)
@@ -3,11 +3,12 @@
 
 #include <cppunit/TestAssert.h>
 
-#include "testEvent.h"
-#include "event.h"
 #include "base/AsyncCallQueue.h"
 #include "CapturingStoreEntry.h"
+#include "event.h"
 #include "Mem.h"
+#include "protos.h"
+#include "testEvent.h"
 
 
 CPPUNIT_TEST_SUITE_REGISTRATION( testEvent );
index d5f3bb2e9630e02559cedd8ebd0733c9636d2272..bd4fb74ef1d883ee67ed0335ff6f6aeb08e762dc 100644 (file)
@@ -6,12 +6,7 @@
 #include "testEventLoop.h"
 #include "EventLoop.h"
 #include "Mem.h"
-
-#if 0
-#include "AsyncEngine.h"
-#include "base/AsyncCallQueue.h"
-#include "event.h"
-#endif
+#include "protos.h"
 
 CPPUNIT_TEST_SUITE_REGISTRATION( testEventLoop );
 
index 0946c39706c705a23134ee52a7ac25e19b9f80bc..8e00b728e6b9590e6934ae35bc3872d78e30f587 100644 (file)
@@ -7,6 +7,7 @@
 #include "HttpParser.h"
 #include "Mem.h"
 #include "MemBuf.h"
+#include "structs.h"
 
 
 CPPUNIT_TEST_SUITE_REGISTRATION( testHttpParser );
index f7c0a2152cfa5f3bb591c30b78e7b3b1a20bee3a..b87ee3c32afc7ca738518da62f570e1ef70f15fb 100644 (file)
@@ -5,6 +5,7 @@
 #include "testHttpReply.h"
 #include "HttpReply.h"
 #include "Mem.h"
+#include "protos.h"
 
 CPPUNIT_TEST_SUITE_REGISTRATION( testHttpReply );
 
index 04a01c4942d8106cccd35975e49c2a7aa11266a6..8197634aad12aebb4baff58a9414ad0c01a884c5 100644 (file)
@@ -6,6 +6,7 @@
 #include "testHttpRequest.h"
 #include "HttpRequest.h"
 #include "Mem.h"
+#include "protos.h"
 
 
 CPPUNIT_TEST_SUITE_REGISTRATION( testHttpRequest );
index c9c1d285e7d9bc77c7e05a2a0ecc0610a99f5192..57c4e819c8b43e6d15d1b7796d26d571a611d57a 100644 (file)
@@ -1,6 +1,6 @@
 #define SQUID_UNIT_TEST 1
 
-#include "squid-old.h"
+#include "squid.h"
 #include <cppunit/TestAssert.h>
 
 #include "Mem.h"
index a8d511fbf8655f00cc54dbb0f403bebdc83a1335..5f4ce2ab8f11d48aaa42f7190ab1fb4f8c54ef19 100644 (file)
@@ -1,5 +1,5 @@
 #define SQUID_UNIT_TEST 1
-#include "squid-old.h"
+#include "squid.h"
 #include "testNull.h"
 #include "Store.h"
 #include "SwapDir.h"
index c64f9167ecf37e9b6cb690ae27241c1460c01927..79d2482e2a1865b7e9f08317e66bbfde41ee10bd 100644 (file)
@@ -2,18 +2,23 @@
 #include "squid.h"
 
 #include "DiskIO/DiskIOModule.h"
+#include "fs/rock/RockSwapDir.h"
+#include "globals.h"
 #include "HttpHeader.h"
 #include "HttpReply.h"
 #include "Mem.h"
 #include "MemObject.h"
+#include "protos.h"
 #include "Store.h"
 #include "StoreFileSystem.h"
 #include "StoreSearch.h"
 #include "SwapDir.h"
-#include "fs/rock/RockSwapDir.h"
 #include "testRock.h"
 #include "testStoreSupport.h"
 
+#if HAVE_SYS_STAT_H
+#include <sys/stat.h>
+#endif
 #if HAVE_STDEXCEPT
 #include <stdexcept>
 #endif
index 3d4b4407537ffd5da2990036d77249fea7d0bf00..0c4989d25a814a669fb015108e6a2955c27aac80 100644 (file)
@@ -1,6 +1,6 @@
 #define SQUID_UNIT_TEST 1
 
-#include "squid-old.h"
+#include "squid.h"
 #include "testStore.h"
 #include "Store.h"
 
index 90ae69d54d35340f4dd16e18e8ec40c0c7f8139b..c0a2ee602c975f329eb9ebff1afcac33c9a2e038 100644 (file)
@@ -2,7 +2,6 @@
 #ifndef SQUID_SRC_TEST_STORE_H
 #define SQUID_SRC_TEST_STORE_H
 
-#include "squid-old.h"
 #include "Store.h"
 
 #include <cppunit/extensions/HelperMacros.h>
index 688ab6bce7c56c04f4b41c24af9f3711f0ffee06..d1e7bd411e62ef3ac62bf999d7292912489cf16d 100644 (file)
@@ -1,6 +1,6 @@
 #define SQUID_UNIT_TEST 1
 
-#include "squid-old.h"
+#include "squid.h"
 
 #include "testStoreController.h"
 #include "Store.h"
index a1a75e0dc571af74c098fb8ea3252eef54cc0a41..4b0abdc4b23495b8e426ed3484c5bc3217fcaed8 100644 (file)
@@ -1,6 +1,6 @@
 #define SQUID_UNIT_TEST 1
 
-#include "squid-old.h"
+#include "squid.h"
 #include "Mem.h"
 #include "testStore.h"
 #include "testStoreEntryStream.h"
index b6e0b28ebf749d4919bb374b6a02015469964e67..3a2169ff4faba945cc44bb1a484157a557bd2a74 100644 (file)
@@ -1,6 +1,6 @@
 #define SQUID_UNIT_TEST 1
 
-#include "squid-old.h"
+#include "squid.h"
 
 #include "testStoreHashIndex.h"
 #include "Store.h"
index 5b8678b66a4baef4ae3de13071f559843bfdcaab..ee49d08571dc8c35a3816e530d986039d672c98f 100644 (file)
@@ -1,10 +1,11 @@
 #define SQUID_UNIT_TEST 1
 
-#include "squid-old.h"
+#include "squid.h"
 
 #include <cppunit/TestAssert.h>
 
 #include "Mem.h"
+#include "SquidString.h"
 #include "testURLScheme.h"
 #include "URLScheme.h"
 
index c85f1beee53807d5ec8f6ea6bed8cafd3a343a5d..7ee0e7490223e273346c4e5802b241e97a903b48 100644 (file)
@@ -2,15 +2,17 @@
 #include "squid.h"
 
 #include "DiskIO/DiskIOModule.h"
+#include "fs/ufs/UFSSwapDir.h"
+#include "globals.h"
 #include "HttpHeader.h"
 #include "HttpReply.h"
 #include "Mem.h"
 #include "MemObject.h"
-#include "testStoreSupport.h"
-#include "testUfs.h"
+#include "protos.h"
 #include "Store.h"
 #include "SwapDir.h"
-#include "fs/ufs/UFSSwapDir.h"
+#include "testStoreSupport.h"
+#include "testUfs.h"
 
 #if HAVE_STDEXCEPT
 #include <stdexcept>
index eaf5fc16c8dbceda3d6ad00fb9631266ad30d931..b5f43e3165a9f2b86ae2b51bf6bd167c28edf190 100644 (file)
@@ -32,7 +32,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "base/Subscription.h"
 #include "fde.h"
 #include "htcp.h"
 #include "ipc/Kids.h"
 #include "ipc/Coordinator.h"
 #include "ipcache.h"
+#include "protos.h"
 #include "SwapDir.h"
 #include "wordlist.h"
 
 #if HAVE_SYS_PRCTL_H
 #include <sys/prctl.h>
 #endif
+#if HAVE_SYS_STAT_H
+#include <sys/stat.h>
+#endif
+#if HAVE_SYS_WAIT_H
+#include <sys/wait.h>
+#endif
+#if HAVE_GRP_H
+#include <grp.h>
+#endif
 
 #define DEAD_MSG "\
 The Squid Cache (version %s) died.\n\
index 5f88d3ddcce8b1178b549661b85eab327fa96189..82207571e35d06125034dd078bf201e4bcffbb2e 100644 (file)
@@ -33,7 +33,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "errorpage.h"
 #include "HttpRequest.h"
 #include "fde.h"
 #include "comm/Write.h"
 #include "client_side_request.h"
 #include "acl/FilledChecklist.h"
-#if USE_DELAY_POOLS
-#include "DelayId.h"
-#endif
 #include "client_side.h"
 #include "MemBuf.h"
 #include "http.h"
 #include "PeerSelectState.h"
+#include "protos.h"
 #include "StatCounters.h"
 
+#if USE_DELAY_POOLS
+#include "DelayId.h"
+#endif
+
+#if HAVE_LIMITS_H
+#include <limits.h>
+#endif
+
 class TunnelStateData
 {
 
index 84e4387faabdaeb700c496d8b1602d8cd99cfa69..619fbd7f33edae6919b4a05b9a966b065eee8547 100644 (file)
@@ -31,7 +31,8 @@
  *
  */
 
-#include "squid-old.h"
+#include "enums.h"
+#include "rfc1035.h"
 
 #ifndef SQUID_TYPEDEFS_H
 #define SQUID_TYPEDEFS_H
@@ -98,6 +99,8 @@ typedef struct _sslproxy_cert_adapt sslproxy_cert_adapt;
 #endif
 
 #if SQUID_SNMP
+#include "snmp_vars.h"
+#include "cache_snmp.h"
 typedef variable_list *(oid_ParseFn) (variable_list *, snint *);
 
 typedef struct _snmp_request_t snmp_request_t;
index 62e7ad80a112c288851e1d33ec28f492c06af5ae..5d08e7de8c89f27c856d737aef1a8b8c40a16c5c 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
+#include "fde.h"
+#include "globals.h"
+#include "xusleep.h"
+#include "protos.h"
 #include "SquidTime.h"
 #include "StatCounters.h"
 #include "SwapDir.h"
-#include "fde.h"
-#include "xusleep.h"
 
 /* This code gets linked to Squid */
 
index eb1f239a26875b21e5a93581ae2fa918c686e357..06be990ab68cedfd4cd80716018a51d5f0f951df 100644 (file)
  */
 
 #include "squid.h"
-#include "URL.h"
+#include "globals.h"
 #include "HttpRequest.h"
-#include "URLScheme.h"
+#include "protos.h"
 #include "rfc1738.h"
+#include "URL.h"
+#include "URLScheme.h"
 
 static HttpRequest *urlParseFinish(const HttpRequestMethod& method,
                                    const AnyP::ProtocolType protocol,
index a726acf91ec4a106cf1cc2c42941952e528ee226..e72cd09932c585199de1aab785721f7299bdaba2 100644 (file)
@@ -33,7 +33,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "errorpage.h"
 #include "StoreClient.h"
 #include "Store.h"
 #include "HttpRequest.h"
 #include "MemBuf.h"
 #include "forward.h"
+#include "globals.h"
 #include "SquidTime.h"
 #include "icmp/net_db.h"
+#include "protos.h"
 
 #define        URN_REQBUF_SZ   4096
 
index aba668700ab1f3900db28553256ca4ca9b31f868..826af323d28dedbbf3e20635a8cdf865447ff9d3 100644 (file)
 #include "squid.h"
 
 #if USE_WCCP
-
-#include "squid-old.h"
 #include "comm.h"
 #include "comm/Connection.h"
 #include "comm/Loops.h"
 #include "event.h"
+#include "structs.h"
+
 
 #define WCCP_PORT 2048
 #define WCCP_REVISION 0
index b957668bc9a7ffe3b2ff354e555ea00996df0f49..45d0653b67ba88390efa1830749df0711edc0bfd 100644 (file)
@@ -30,7 +30,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 
 #if USE_WCCPv2
 
@@ -40,7 +40,9 @@
 #include "compat/strsep.h"
 #include "event.h"
 #include "ip/Address.h"
+#include "md5.h"
 #include "Parsing.h"
+#include "protos.h"
 #include "Store.h"
 #include "SwapDir.h"
 
index 0a73b9f5afa874abf25fba8d1986908ecb3ba9dc..080cda5dec5fdc42114f2b4d5c131581b5a3fa73 100644 (file)
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
+#include "comm.h"
 #include "comm/Write.h"
 #include "errorpage.h"
-#include "Store.h"
 #include "HttpReply.h"
 #include "HttpRequest.h"
-#include "comm.h"
 #include "HttpRequest.h"
 #include "forward.h"
+#include "protos.h"
 #include "StatCounters.h"
+#include "Store.h"
 
 #define WHOIS_PORT 43
 
index 69136407fed469acf10487b961c507d1bc5ac3b2..1b18c8ed9461d170901307a60f664456f8b39193 100644 (file)
@@ -33,7 +33,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "squid_windows.h"
 
 #if _SQUID_MSWIN_
index 165ab5b37982f6dfad04bdac29225c68e0567e2a..cec9258a4d29ae24b871e1c49b174421735f0d13 100644 (file)
@@ -32,8 +32,9 @@
 #ifndef SQUID_WORDLIST_H
 #define SQUID_WORDLIST_H
 
-#include "squid-old.h"
+#include "globals.h"
 #include "MemPool.h"
+#include "profiler/Profiler.h"
 
 class wordlist
 {
index 5649bad761a8df82c144098edff7521cf23af7c2..bf3c82fddd32b240e3787608e23499b709aa06b1 100644 (file)
@@ -33,7 +33,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "esi/Expression.h"
 
 int
index e2730eb2f4bac5ee120086578017a81711cd0462..1ce1e934f597ee8bcc6112eaac07cd9f647b676c 100644 (file)
@@ -32,7 +32,7 @@
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 
 #if USE_MEMPOOLS
 
index 4606f95d56f2728963031391319f239f6a4fb459..c996f3ac57f8c5be819a8fe9130b13480663fa75 100644 (file)
@@ -34,7 +34,7 @@
  * Copyright (c) 2003  Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "Stack.h"
 
 int
index 68567d14c22dbde0213fb04dacdb9a476bdc5873..51db1e6c0fb8d5c1a1d97df76ff7920416155bfb 100644 (file)
@@ -33,7 +33,7 @@
  * Copyright (c) 2003  Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 
 #if HAVE_IOSTREAM
 #include <iostream>
index 8c8394dfd4a850c4b5d4ecc854da34b98bcdfc84..16a861b3044051347d406012f0fe21876f8cd1e1 100644 (file)
  * Copyright (c) 2003  Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
-#include "stmem.h"
+#include "squid.h"
+#include "Debug.h"
 #include "mem_node.h"
+#include "stmem.h"
 
 class StreamTest
 {
index fb4443fa8ac7fdfcaad32e47a885d6f98375b44f..76896265d7bf3aae9c3deb89108468ccf0669b07 100644 (file)
@@ -34,7 +34,7 @@
  * Copyright (c) 2003  Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "stmem.h"
 #include "mem_node.h"
 #include "Generic.h"
index d362be2fcb4932d5779cb81f7bd669e67294f081..f1d3a5b31b58aa0c7e774cea3debd5eef2477b42 100644 (file)
@@ -33,7 +33,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "mem_node.h"
 
 #if HAVE_IOSTREAM
index fdb17a41197e77d4ee4185f8e43b729d8ec0b095..93ee96fc00e31755158ef454e8d229ab6de808dc 100644 (file)
@@ -33,7 +33,7 @@
  *
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "RefCount.h"
 
 class _ToRefCount :public RefCountable
index 6c9dfdb9df5f6cf445cf2fd205ee45a721c21b49..dbdebd4e6dd181620a7c925d203775a4161a0492 100644 (file)
@@ -33,7 +33,7 @@
  * Copyright (c) 2003  Robert Collins <robertc@squid-cache.org>
  */
 
-#include "squid-old.h"
+#include "squid.h"
 #include "stmem.h"
 #include "mem_node.h"
 
index 86f415f46e41ceb68b4a3a38ea6e6ff3eb23994b..29762617f515ac5f62c87d93d6f9f2783f399fe5 100644 (file)
@@ -5,7 +5,8 @@
 // XXX: This file is made of large pieces of src/tools.cc
 // with only a few minor modifications. TODO: redesign or delete.
 
-#include "squid-old.h"
+#include "squid.h"
+#include "dlink.h"
 
 void
 xassert(const char *msg, const char *file, int line)
index 8d5d5af9a263ca49e0f2b05a21b403d8855b03a7..867b1d050f6bc95797dee49063fe0d30a920c14b 100644 (file)
@@ -59,8 +59,8 @@ typedef int bool;
 #define DEFAULT_SQUID_CONF "/usr/local/squid/etc/squid.conf"
 #endif
 
-#include <stdio.h>      // FILE*
-#include <vector>      // minimum STL container
+#include <stdio.h>
+#include <vector>
 
 struct CacheDir {
   enum CacheDirType { CDT_NONE, CDT_UFS, CDT_AUFS, CDT_DISKD, CDT_OTHER };
index f0eecc49b223c5bdbd664200e70d287c7760df47..adafc1681cfd0a0c078f2989523d20630d974cd2 100644 (file)
 #endif
 
 #include "squid.h"
-// for xstrdup
 #include "util.h"
 
-//#include <assert.h>
 #include <stdarg.h>
 #include <stdio.h>
 #include <dirent.h>
-//#include <ctype.h>
 #include <string.h>
-//#include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/wait.h>
 #include <fcntl.h>
 #endif
 
 #include <netinet/in.h>
-#include <netinet/tcp.h>  // TCP_NODELAY
+#include <netinet/tcp.h> 
 #include <arpa/inet.h>
-#include <netdb.h>        // gethostbyname()
-//#include <regex.h>    //comes via compat.h
+#include <netdb.h>
 
 #include "convert.hh"
 #include "socket.hh"
index e6ef40c0b9371f5c8e8db7dc446c8386264f6859..8b702d33fdd8a5d06318b0b20d5e23988d0a9dc7 100644 (file)
@@ -61,7 +61,7 @@ typedef int bool;
 #endif /* __cplusplus */
 
 #include <sys/types.h>
-#include <sys/socket.h>        // SOMAXCONN
+#include <sys/socket.h>
 #include <netinet/in.h>
 
 #if SOMAXCONN <= 5