--------------------- PatchSet 92 Date: 2002/10/31 23:53:23 Author: rbcollins Branch: esi Tag: (none) Log: generic render method Members: src/ESI.cc:1.1.2.1->1.1.2.2 Index: squid3/src/ESI.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/ESI.cc,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -r1.1.2.1 -r1.1.2.2 --- squid3/src/ESI.cc 31 Oct 2002 22:57:23 -0000 1.1.2.1 +++ squid3/src/ESI.cc 31 Oct 2002 23:53:23 -0000 1.1.2.2 @@ -1,6 +1,6 @@ /* - * $Id: ESI.cc,v 1.1.2.1 2002/10/31 22:57:23 rbcollins Exp $ + * $Id: ESI.cc,v 1.1.2.2 2002/10/31 23:53:23 rbcollins Exp $ * * DEBUG: section 86 ESI processing * AUTHOR: Robert Collins @@ -180,12 +180,12 @@ /* some core operators */ +static esiRender esiRenderSelf; + /* the methods for each type */ static esiAddElement esiAddFail; static esiProcessSelf esiProcessComplete; -static esiRender esiCommentRender; - static esiRender esiLiteralRender; static esiProcessSelf esiLiteralProcess; @@ -224,7 +224,7 @@ ESI_ELEMENT_OTHERWISE } esiElementType_t; -static esiElementType _esiComment = {esiCommentRender,esiAddFail,esiProcessComplete}; +static esiElementType _esiComment = {esiRenderSelf,esiAddFail,esiProcessComplete}; static esiElementType _esiLiteral = {esiLiteralRender,esiAddFail,esiLiteralProcess}; static esiElementType _esiSequence = {esiSequenceRender,esiSequenceAdd,esiSequenceProcess}; static esiElementType _esiInclude = {esiIncludeRender, esiAddFail, esiIncludeProcess}; @@ -1701,9 +1701,9 @@ } void -esiCommentRender (void *data, esiSegment *output) +esiRenderSelf (void *data, esiSegment *output) { - ((esiComment *)data)->render(output); + ((esiElement *)data)->render(output); } void