]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
SourceLayout: esi/, take 1
authorAlex Rousskov <rousskov@measurement-factory.com>
Tue, 10 Mar 2009 20:52:45 +0000 (14:52 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Tue, 10 Mar 2009 20:52:45 +0000 (14:52 -0600)
Moved src/ESI* files into src/esi/.
Renamed ESI source files from ESIFoo.{cc,cci,h} to Foo.{cc,cci,h}.

No true source code changes.
No functionality changes were intended.
No runtime tests with ESI performed.

TODO: I did not move the tests/ESIExpressions test into src/esi because
we need to fix the entire testing layout before we should start
moving individual tests: They currently depend on individual source
and object files in src/ and in tests/ and that kind of dependency
should not be multiplied but removed.

TODO: Move ESI types into the Esi namespace.

38 files changed:
configure.in
src/Makefile.am
src/Store.h
src/cache_cf.cc
src/client_side_reply.cc
src/esi/Assign.cc [moved from src/ESIAssign.cc with 98% similarity]
src/esi/Assign.h [moved from src/ESIAssign.h with 98% similarity]
src/esi/Attempt.h [moved from src/ESIAttempt.h with 97% similarity]
src/esi/Context.cc [moved from src/ESIContext.cc with 99% similarity]
src/esi/Context.h [moved from src/ESIContext.h with 99% similarity]
src/esi/CustomParser.cc [moved from src/ESICustomParser.cc with 99% similarity]
src/esi/CustomParser.h [moved from src/ESICustomParser.h with 98% similarity]
src/esi/Element.h [moved from src/ESIElement.h with 99% similarity]
src/esi/ElementList.h [moved from src/ElementList.h with 98% similarity]
src/esi/Esi.cc [moved from src/ESI.cc with 99% similarity]
src/esi/Esi.h [moved from src/ESI.h with 100% similarity]
src/esi/Except.h [moved from src/ESIExcept.h with 97% similarity]
src/esi/ExpatParser.cc [moved from src/ESIExpatParser.cc with 99% similarity]
src/esi/ExpatParser.h [moved from src/ESIExpatParser.h with 98% similarity]
src/esi/Expression.cc [moved from src/ESIExpression.cc with 99% similarity]
src/esi/Expression.h [moved from src/ESIExpression.h with 100% similarity]
src/esi/Include.cc [moved from src/ESIInclude.cc with 99% similarity]
src/esi/Include.h [moved from src/ESIInclude.h with 97% similarity]
src/esi/Libxml2Parser.cc [moved from src/ESILibxml2Parser.cc with 99% similarity]
src/esi/Libxml2Parser.h [moved from src/ESILibxml2Parser.h with 99% similarity]
src/esi/Literal.h [moved from src/ESILiteral.h with 98% similarity]
src/esi/Makefile.am [new file with mode: 0644]
src/esi/Parser.cc [moved from src/ESIParser.cc with 98% similarity]
src/esi/Parser.h [moved from src/ESIParser.h with 100% similarity]
src/esi/Segment.cc [moved from src/ESISegment.cc with 99% similarity]
src/esi/Segment.h [moved from src/ESISegment.h with 100% similarity]
src/esi/Sequence.cc [moved from src/ESISequence.cc with 99% similarity]
src/esi/Sequence.h [moved from src/ESISequence.h with 98% similarity]
src/esi/Var.h [moved from src/ESIVar.h with 97% similarity]
src/esi/VarState.cc [moved from src/ESIVarState.cc with 99% similarity]
src/esi/VarState.h [moved from src/ESIVarState.h with 99% similarity]
test-suite/ESIExpressions.cc
test-suite/Makefile.am

index 6f69f8c47391e9dde35f5685731b8892fe8b5957..1b48ad791f1d641c3689ade3ef65ef29edcc50a8 100644 (file)
@@ -3793,6 +3793,7 @@ AC_CONFIG_FILES([\
        src/adaptation/Makefile \
        src/adaptation/icap/Makefile \
        src/adaptation/ecap/Makefile \
+       src/esi/Makefile \
        src/icmp/Makefile \
        src/ip/Makefile \
        contrib/Makefile \
index 0d24396c9867a473e90031a3e5bd3c7dedc6b60a..637378e442df763f9c7dda50c427e3a1cb66bea2 100644 (file)
@@ -40,6 +40,13 @@ endif
 
 ADAPTATION_LIBS = @ADAPTATION_LIBS@
 
+if USE_ESI
+SUBDIRS += esi
+ESI_LIBS = esi/libesi.la
+else
+ESI_LIBS = 
+endif
+
 DELAY_POOL_ALL_SOURCE = \
        CommonPool.h \
        CompositePoolNode.h \
@@ -70,43 +77,6 @@ else
 DELAY_POOL_SOURCE = 
 endif
 
-ESI_ALL_SOURCE = \
-       ElementList.h \
-       ESI.cc \
-       ESI.h \
-       ESIAssign.cc \
-       ESIAssign.h \
-       ESIAttempt.h \
-       ESIContext.cc \
-       ESIContext.h \
-       ESICustomParser.cc \
-       ESICustomParser.h \
-       ESIElement.h \
-       ESIExcept.h \
-       ESIExpatParser.cc \
-       ESIExpatParser.h \
-       ESIExpression.cc \
-       ESIExpression.h \
-       ESIInclude.cc \
-       ESIInclude.h \
-       ESILiteral.h \
-       ESILibxml2Parser.cc \
-       ESILibxml2Parser.h \
-       ESIParser.cc \
-       ESIParser.h \
-       ESISegment.cc \
-       ESISegment.h \
-       ESISequence.cc \
-       ESISequence.h \
-       ESIVar.h \
-       ESIVarState.cc \
-       ESIVarState.h
-if USE_ESI
-  ESI_SOURCE = $(ESI_ALL_SOURCE)
-else
-  ESI_SOURCE = 
-endif
-
 if ENABLE_XPROF_STATS
 XPROF_STATS_SOURCE = ProfStats.cc
 else
@@ -277,7 +247,6 @@ EXTRA_squid_SOURCES = \
        ipc.cc \
        ipc_win32.cc \
        $(IDENT_ALL_SOURCE) \
-       $(ESI_ALL_SOURCE) \
        ProfStats.cc \
        LeakFinder.cc \
        LeakFinder.h \
@@ -370,7 +339,6 @@ squid_SOURCES = \
        enums.h \
        errorpage.cc \
        errorpage.h \
-       $(ESI_SOURCE) \
        ETag.cc \
        event.cc \
        event.h \
@@ -565,6 +533,7 @@ squid_LDADD = \
        @REGEXLIB@ \
        @SNMPLIB@ \
        ${ADAPTATION_LIBS} \
+       ${ESI_LIBS} \
        @SSLLIB@ \
        -lmiscutil \
        @XTRA_LIBS@ \
@@ -1064,7 +1033,6 @@ tests_testCacheManager_SOURCES = \
        dlink.cc \
        $(DNSSOURCE) \
        errorpage.cc \
-       $(ESI_SOURCE) \
        ETag.cc \
        external_acl.cc \
        ExternalACLEntry.cc \
@@ -1162,6 +1130,7 @@ tests_testCacheManager_LDADD = \
        icmp/libicmp.la icmp/libicmp-core.la \
        @REPL_OBJS@ \
        ${ADAPTATION_LIBS} \
+       ${ESI_LIBS} \
        @REGEXLIB@ \
        @SNMPLIB@ \
        -L../lib -lmiscutil \
@@ -1233,7 +1202,6 @@ tests_testEvent_SOURCES = \
        dlink.cc \
        $(DNSSOURCE) \
        errorpage.cc \
-       $(ESI_SOURCE) \
        ETag.cc \
        external_acl.cc \
        ExternalACLEntry.cc \
@@ -1330,6 +1298,7 @@ tests_testEvent_LDADD = \
        icmp/libicmp.la icmp/libicmp-core.la \
        @REPL_OBJS@ \
        ${ADAPTATION_LIBS} \
+       ${ESI_LIBS} \
        @REGEXLIB@ \
        @SNMPLIB@ \
        -L../lib -lmiscutil \
@@ -1380,7 +1349,6 @@ tests_testEventLoop_SOURCES = \
        dlink.cc \
        $(DNSSOURCE) \
        errorpage.cc \
-       $(ESI_SOURCE) \
        ETag.cc \
        external_acl.cc \
        ExternalACLEntry.cc \
@@ -1477,6 +1445,7 @@ tests_testEventLoop_LDADD = \
        icmp/libicmp.la icmp/libicmp-core.la \
        @REPL_OBJS@ \
        ${ADAPTATION_LIBS} \
+       ${ESI_LIBS} \
        @REGEXLIB@ \
        @SNMPLIB@ \
        -L../lib -lmiscutil \
@@ -1516,7 +1485,6 @@ tests_test_http_range_SOURCES = \
        dlink.cc \
        $(DNSSOURCE) \
        errorpage.cc \
-       $(ESI_SOURCE) \
        ETag.cc \
        external_acl.cc \
        ExternalACLEntry.cc \
@@ -1620,6 +1588,7 @@ tests_test_http_range_LDADD = \
        @REPL_OBJS@ \
        @STORE_LIBS_TO_ADD@ \
        ${ADAPTATION_LIBS} \
+       ${ESI_LIBS} \
        @REGEXLIB@ \
        @SNMPLIB@ \
        -L../lib -lmiscutil \
@@ -1669,7 +1638,6 @@ tests_testHttpRequest_SOURCES = \
        dlink.cc \
        $(DNSSOURCE) \
        errorpage.cc \
-       $(ESI_SOURCE) \
        ETag.cc \
        external_acl.cc \
        ExternalACLEntry.cc \
@@ -1767,6 +1735,7 @@ tests_testHttpRequest_LDADD = \
        icmp/libicmp.la icmp/libicmp-core.la \
        @REPL_OBJS@ \
        ${ADAPTATION_LIBS} \
+       ${ESI_LIBS} \
        @REGEXLIB@ \
        @SNMPLIB@ \
        -L../lib -lmiscutil \
@@ -2018,7 +1987,6 @@ tests_testURL_SOURCES = \
        dlink.cc \
        $(DNSSOURCE) \
        errorpage.cc \
-       $(ESI_SOURCE) \
        ETag.cc \
        external_acl.cc \
        ExternalACLEntry.cc \
@@ -2114,6 +2082,7 @@ tests_testURL_LDADD = \
        @REGEXLIB@ \
        @REPL_OBJS@ \
        ${ADAPTATION_LIBS} \
+       ${ESI_LIBS} \
        @SNMPLIB@ \
        -L../lib -lmiscutil \
        @SQUID_CPPUNIT_LIBS@ \
index 8e60c2413a4b36db5e47c16414ab9f66b638b0c9..1d6ebf3d464ed1713dad7f829b1c6c2bb9789ac9 100644 (file)
@@ -50,7 +50,7 @@
 #include "RemovalPolicy.h"
 
 #if USE_SQUID_ESI
-#include "ESIElement.h"
+#include "esi/Element.h"
 #endif
 
 class AsyncCall;
index ca93ed34ae08f8b40386020134604ce96435f06b..351aa8feaa8bf65f9e64863e30e2e8bf50bb5cec 100644 (file)
@@ -57,7 +57,7 @@
 #include "snmp.h"
 #endif
 #if USE_SQUID_ESI
-#include "ESIParser.h"
+#include "esi/Parser.h"
 #endif
 
 #if USE_ADAPTATION
index 1d62ea48f58fe6755954d6e5d38e47c7555cd2c9..57a51e1a034c5a4bbe48135591aba732814c6d60 100644 (file)
@@ -48,7 +48,7 @@
 #include "clientStream.h"
 #include "auth/UserRequest.h"
 #if USE_SQUID_ESI
-#include "ESI.h"
+#include "esi/Esi.h"
 #endif
 #include "MemObject.h"
 #include "fde.h"
similarity index 98%
rename from src/ESIAssign.cc
rename to src/esi/Assign.cc
index 3efc390638ed0c31a95efd7c27c5f65fe6b27a40..6b5aed741e402e56303934817ab1dd3d2924b5ef 100644 (file)
@@ -40,9 +40,9 @@
  */
 #if (USE_SQUID_ESI == 1)
 
-#include "ESIAssign.h"
-#include "ESIContext.h"
-#include "ESISequence.h"
+#include "esi/Assign.h"
+#include "esi/Context.h"
+#include "esi/Sequence.h"
 
 ESIAssign::~ESIAssign()
 {
similarity index 98%
rename from src/ESIAssign.h
rename to src/esi/Assign.h
index c107d5012628896775393edb09815bf648a7fe72..fd9fa12947d79972387b98aa07a1bbc05401ede3 100644 (file)
@@ -37,9 +37,9 @@
 #define SQUID_ESIASSIGN_H
 
 #include "squid.h"
-#include "ESIElement.h"
+#include "esi/Element.h"
 #include "SquidString.h"
-#include "ESIVarState.h"
+#include "esi/VarState.h"
 
 /* ESIVariableExpression */
 /* This is a variable that is itself and expression */
similarity index 97%
rename from src/ESIAttempt.h
rename to src/esi/Attempt.h
index f09d67971c83b2dd6b576c028811ec6bfd0d0b33..e7b0f5d5e995ff5608d2377107635cc40930f473 100644 (file)
@@ -37,8 +37,8 @@
 #define SQUID_ESIATTEMPT_H
 
 #include "squid.h"
-#include "ESIElement.h"
-#include "ESISequence.h"
+#include "esi/Element.h"
+#include "esi/Sequence.h"
 
 /* esiAttempt */
 
similarity index 99%
rename from src/ESIContext.cc
rename to src/esi/Context.cc
index 841313a0bf62b8f9e1d643681cbe5abe7f235b79..2db6adbcf551fc17c1e8e685ab16dc12b4c0e707 100644 (file)
@@ -40,7 +40,7 @@
  */
 #if (USE_SQUID_ESI == 1)
 
-#include "ESIContext.h"
+#include "esi/Context.h"
 #include "Store.h"
 #include "client_side_request.h"
 
similarity index 99%
rename from src/ESIContext.h
rename to src/esi/Context.h
index 5416a2cf41e3b941ba82713bb51acf86ae225b29..bf958dc59e9f59044fb5a55636b7e222398e9202 100644 (file)
 #ifndef SQUID_ESICONTEXT_H
 #define SQUID_ESICONTEXT_H
 
-#include "ESIElement.h"
+#include "esi/Element.h"
 #include "clientStream.h"
 
 class ESIVarState;
 
 class ClientHttpRequest;
 
-#include "ESIParser.h"
+#include "esi/Parser.h"
 
 /* ESIContext */
 
similarity index 99%
rename from src/ESICustomParser.cc
rename to src/esi/CustomParser.cc
index b59880d009856888112bd6318753c8002c5d3e55..dfa988150df4d8ec27fba5260aff2998c40a9d78 100644 (file)
@@ -34,7 +34,7 @@
  */
 
 #include "squid.h"
-#include "ESICustomParser.h"
+#include "esi/CustomParser.h"
 #include "Trie.h"
 #include "TrieCharTransform.h"
 #include "Array.h"
similarity index 98%
rename from src/ESICustomParser.h
rename to src/esi/CustomParser.h
index 146a4ac44413b965d2356b527da7dc95a1106575..5f7ce8c13123564533d6f54a42e24a06ad91eb7e 100644 (file)
@@ -35,7 +35,7 @@
 class Trie;
 
 /* inherits from */
-#include "ESIParser.h"
+#include "esi/Parser.h"
 
 /* for String variables */
 #include "SquidString.h"
similarity index 99%
rename from src/ESIElement.h
rename to src/esi/Element.h
index ef773bd153dc36a263b855081860a8ac0de13d58..b2f6d0c393fc71d3dddcce2b5ad9156d2ca58dd2 100644 (file)
@@ -34,7 +34,7 @@
 #define SQUID_ESIELEMENT_H
 
 #include "RefCount.h"
-#include "ESISegment.h"
+#include "esi/Segment.h"
 
 typedef enum {
     ESI_PROCESS_COMPLETE = 0,
similarity index 98%
rename from src/ElementList.h
rename to src/esi/ElementList.h
index aa7bef2bf317aa8c68be24cb4ab2037ac2cf8685..15ff033b0a52a47c27a0512364ee3922b1f2de15 100644 (file)
@@ -37,7 +37,7 @@
 #define SQUID_ELEMENTLIST_H
 
 #include "squid.h"
-#include "ESIElement.h"
+#include "esi/Element.h"
 
 class ElementList
 {
similarity index 99%
rename from src/ESI.cc
rename to src/esi/Esi.cc
index 875e8b25df9e4e62184d7b084eaecb8b68284744..d41513ea9e5ab8be47c8d437cf73ca934dad4fb6 100644 (file)
  */
 #if (USE_SQUID_ESI == 1)
 
-#include "ESI.h"
+#include "esi/Esi.h"
 #include "clientStream.h"
 #include "client_side_request.h"
 #include "errorpage.h"
-#include "ESISegment.h"
-#include "ESIElement.h"
-#include "ESIContext.h"
+#include "esi/Segment.h"
+#include "esi/Element.h"
+#include "esi/Context.h"
 #include "HttpHdrSc.h"
 #include "HttpHdrScTarget.h"
 #include "HttpReply.h"
-#include "ESIAttempt.h"
-#include "ESIExcept.h"
+#include "esi/Attempt.h"
+#include "esi/Except.h"
 #include "client_side.h"
-#include "ESIVarState.h"
-#include "ESIAssign.h"
-#include "ESIExpression.h"
+#include "esi/VarState.h"
+#include "esi/Assign.h"
+#include "esi/Expression.h"
 #include "HttpRequest.h"
 #include "MemBuf.h"
 #include "ip/IpAddress.h"
@@ -116,11 +116,11 @@ struct esiComment : public ESIElement {
 
 MEMPROXY_CLASS_INLINE(esiComment)              /**DOCS_NOSEMI*/
 
-#include "ESILiteral.h"
+#include "esi/Literal.h"
 
-#include "ESISequence.h"
+#include "esi/Sequence.h"
 
-#include "ESIInclude.h"
+#include "esi/Include.h"
 
 /* esiRemove */
 
@@ -181,7 +181,7 @@ private:
 
 MEMPROXY_CLASS_INLINE(esiTry)          /**DOCS_NOSEMI*/
 
-#include "ESIVar.h"
+#include "esi/Var.h"
 
 /* esiChoose */
 
similarity index 100%
rename from src/ESI.h
rename to src/esi/Esi.h
similarity index 97%
rename from src/ESIExcept.h
rename to src/esi/Except.h
index 9e432d385f9a29b091b4810496f7f159a23490f7..7c684b0cd47d18c9dedc051c389fdae4c9847075 100644 (file)
@@ -37,8 +37,8 @@
 #define SQUID_ESIEXCEPT_H
 
 #include "squid.h"
-#include "ESIElement.h"
-#include "ESISequence.h"
+#include "esi/Element.h"
+#include "esi/Sequence.h"
 
 /* esiExcept */
 
similarity index 99%
rename from src/ESIExpatParser.cc
rename to src/esi/ExpatParser.cc
index d5c1affd7acdd4af92e2080736ae2455cebbd088..5755cbd11130bbc860775815b4b1869e44a34477 100644 (file)
@@ -37,7 +37,7 @@
 
 #if USE_SQUID_ESI
 
-#include "ESIExpatParser.h"
+#include "esi/ExpatParser.h"
 
 RegisterESIParser("expat", ESIExpatParser);
 
similarity index 98%
rename from src/ESIExpatParser.h
rename to src/esi/ExpatParser.h
index 32d48fb1ff09e1d4bab982b494eeb83be2261f8a..8463cb61733c31a39a865f3dc41296f43d9812a1 100644 (file)
@@ -35,7 +35,7 @@
 
 #if USE_SQUID_ESI
 
-#include "ESIParser.h"
+#include "esi/Parser.h"
 #include "expat.h"
 
 class ESIExpatParser : public ESIParser
similarity index 99%
rename from src/ESIExpression.cc
rename to src/esi/Expression.cc
index a831052522384086535a53193f55f424cbf1bf44..759171842d1ca7884b5bf04cfc7f452e6324b1f3 100644 (file)
@@ -34,7 +34,7 @@
  */
 
 #include "squid.h"
-#include "ESIExpression.h"
+#include "esi/Expression.h"
 
 /* stack precedence rules:
  * before pushing an operator onto the stack, the
similarity index 100%
rename from src/ESIExpression.h
rename to src/esi/Expression.h
similarity index 99%
rename from src/ESIInclude.cc
rename to src/esi/Include.cc
index 88d0dd675b3e573b43e7c3c8d1e82f256a261cad..d869b82204b8e137746804eaa1f298df8eace63b 100644 (file)
@@ -41,8 +41,8 @@
  */
 #if (USE_SQUID_ESI == 1)
 
-#include "ESIInclude.h"
-#include "ESIVarState.h"
+#include "esi/Include.h"
+#include "esi/VarState.h"
 #include "client_side_request.h"
 #include "HttpReply.h"
 
similarity index 97%
rename from src/ESIInclude.h
rename to src/esi/Include.h
index 6c3e701c88935e10f7adf7f312cf438a33557bea..944a6cfaf49f74f81713a7e951d963a4f7e7d3ea 100644 (file)
@@ -37,9 +37,9 @@
 #define SQUID_ESIINCLUDE_H
 
 #include "squid.h"
-#include "ESISegment.h"
-#include "ESIElement.h"
-#include "ESIContext.h"
+#include "esi/Segment.h"
+#include "esi/Element.h"
+#include "esi/Context.h"
 
 class ESIInclude;
 typedef RefCount<ESIInclude> ESIIncludePtr;
similarity index 99%
rename from src/ESILibxml2Parser.cc
rename to src/esi/Libxml2Parser.cc
index 8875ba9c2226d3b2ff63a88fb796077247df314d..23dced14ba70b963e6c5d90a620e49cf3955de6e 100644 (file)
@@ -41,7 +41,7 @@
 
 #if USE_SQUID_ESI
 
-#include "ESILibxml2Parser.h"
+#include "esi/Libxml2Parser.h"
 
 // the global document that will store the resolved entity
 // definitions
similarity index 99%
rename from src/ESILibxml2Parser.h
rename to src/esi/Libxml2Parser.h
index 21ac43f68f864079268761a62d138fcd502e2faf..9b253b3bdf4b600cf57951e2b3fa9cbf42148595 100644 (file)
@@ -42,7 +42,7 @@
 
 #if USE_SQUID_ESI
 
-#include "ESIParser.h"
+#include "esi/Parser.h"
 // workaround for definition of "free" that prevents include of
 // parser.h from libxml2 without errors
 #ifdef free
similarity index 98%
rename from src/ESILiteral.h
rename to src/esi/Literal.h
index a6e49571ec456dc6a4d74d3f4b870f484da0fa0d..19f53b58465a446f40c09d712f0dac19a84096f0 100644 (file)
@@ -37,7 +37,7 @@
 #define SQUID_ESILITERAL_H
 
 #include "squid.h"
-#include "ESIElement.h"
+#include "esi/Element.h"
 
 class ESIContext;
 /* esiLiteral */
diff --git a/src/esi/Makefile.am b/src/esi/Makefile.am
new file mode 100644 (file)
index 0000000..298fa24
--- /dev/null
@@ -0,0 +1,41 @@
+include $(top_srcdir)/src/Common.am
+include $(top_srcdir)/src/TestHeaders.am
+
+noinst_LTLIBRARIES = libesi.la
+
+libesi_la_SOURCES = \
+       Assign.cc \
+       Assign.h \
+       Attempt.h \
+       Context.cc \
+       Context.h \
+       CustomParser.cc \
+       CustomParser.h \
+       Element.h \
+       ElementList.h \
+       Esi.cc \
+       Esi.h \
+       Except.h \
+       ExpatParser.cc \
+       ExpatParser.h \
+       Expression.cc \
+       Expression.h \
+       Include.cc \
+       Include.h \
+       Literal.h \
+       Libxml2Parser.cc \
+       Libxml2Parser.h \
+       Parser.cc \
+       Parser.h \
+       Segment.cc \
+       Segment.h \
+       Sequence.cc \
+       Sequence.h \
+       Var.h \
+       VarState.cc \
+       VarState.h
+
+INCLUDES += \
+       -I$(top_srcdir)/lib/libTrie/include \
+       -I$(top_builddir)/lib/libTrie/include
+
similarity index 98%
rename from src/ESIParser.cc
rename to src/esi/Parser.cc
index 778e9bf5f921da2a58871fbae63be3d7210091d1..51546759cfbcdfffce0d9504beed9a1e28b72618 100644 (file)
@@ -33,7 +33,7 @@
  */
 
 #include "squid.h"
-#include "ESIParser.h"
+#include "esi/Parser.h"
 
 char *ESIParser::Type = NULL;
 ESIParser::Register *ESIParser::Parsers = NULL;
similarity index 100%
rename from src/ESIParser.h
rename to src/esi/Parser.h
similarity index 99%
rename from src/ESISegment.cc
rename to src/esi/Segment.cc
index d82e5185e582c9808beefbb7eff69dab6625fd5a..a6f9df604d7ec915137ff1e53884d1516ee91026 100644 (file)
@@ -34,7 +34,7 @@
  */
 
 #include "squid.h"
-#include "ESISegment.h"
+#include "esi/Segment.h"
 #include "SquidString.h"
 
 CBDATA_TYPE(ESISegment);
similarity index 100%
rename from src/ESISegment.h
rename to src/esi/Segment.h
similarity index 99%
rename from src/ESISequence.cc
rename to src/esi/Sequence.cc
index 06f4d4fca4a3b7dd602566ce41793bbc5a7358d0..bb4035c7d06c4aa82175ebe3f3f229fa94ed443b 100644 (file)
  */
 #if (USE_SQUID_ESI == 1)
 
-#include "ESISequence.h"
-#include "ESILiteral.h"
-#include "ESIAttempt.h"
-#include "ESIExcept.h"
+#include "esi/Sequence.h"
+#include "esi/Literal.h"
+#include "esi/Attempt.h"
+#include "esi/Except.h"
 
 class esiExcept;
 
similarity index 98%
rename from src/ESISequence.h
rename to src/esi/Sequence.h
index f72d1e0f1ae9bdc9a1e3d349c6a63262abd505b4..9c5193cafbc7f361d52f72b44d830f992e702c4a 100644 (file)
@@ -37,8 +37,8 @@
 #define SQUID_ESISEQUENCE_H
 
 #include "squid.h"
-#include "ESIElement.h"
-#include "ElementList.h"
+#include "esi/Element.h"
+#include "esi/ElementList.h"
 
 /* esiSequence */
 
similarity index 97%
rename from src/ESIVar.h
rename to src/esi/Var.h
index bdff8c58f193075978e24901d1765c5e3473a113..412414ced7e6a27c250315c512be8de9d92949f2 100644 (file)
@@ -37,8 +37,8 @@
 #define SQUID_ESIVAR_H
 
 #include "squid.h"
-#include "ESIElement.h"
-#include "ESISequence.h"
+#include "esi/Element.h"
+#include "esi/Sequence.h"
 
 /* esiVar */
 
similarity index 99%
rename from src/ESIVarState.cc
rename to src/esi/VarState.cc
index be147a128d69cfee3273973c379a6b8378480fd7..8e7d5f9d919e26e027736129e6d7ae533b815987 100644 (file)
@@ -35,7 +35,7 @@
  */
 
 #include "squid.h"
-#include "ESIVarState.h"
+#include "esi/VarState.h"
 #include "HttpReply.h"
 
 CBDATA_TYPE (ESIVarState);
similarity index 99%
rename from src/ESIVarState.h
rename to src/esi/VarState.h
index 66c34ecaacef4991b736b7aaf1e70a0aef469132..ec66d45342882f581c9843df5b95222f4c55c8b4 100644 (file)
@@ -34,7 +34,7 @@
 #ifndef SQUID_ESIVARSTATE_H
 #define SQUID_ESIVARSTATE_H
 
-#include "ESISegment.h"
+#include "esi/Segment.h"
 #include "Trie.h"
 #include "Array.h"
 #include "HttpHeader.h"
index 182be9fc118e003a2411ce4c436949e6b53ac007..d7ccbf14eb2fd3a571647a0c55b83c07fc2f1a82 100644 (file)
@@ -34,7 +34,7 @@
  */
 
 #include "squid.h"
-#include "ESIExpression.h"
+#include "esi/Expression.h"
 
 int
 main ()
index e9f5ddc85470975fbdca22d824765fc794002b19..2718487481732c68a82c0d3a5f68c832f2ee32c5 100644 (file)
@@ -66,7 +66,7 @@ tcp_banger2_LDADD = -L$(top_builddir)/lib -lmiscutil
 DEBUG_SOURCE = test_tools.cc
 debug_SOURCES = debug.cc $(DEBUG_SOURCE)
 ESIExpressions_SOURCES = ESIExpressions.cc $(DEBUG_SOURCE)
-ESIExpressions_LDADD = $(top_builddir)/src/ESIExpression.o \
+ESIExpressions_LDADD = $(top_builddir)/src/esi/Expression.o \
                $(LDADD)
 mem_node_test_SOURCES = mem_node_test.cc
 mem_node_test_LDADD = $(top_builddir)/src/mem_node.o $(LDADD)