Regarding ESI

From: Paras Fadte <plfgoa_at_gmail.com>
Date: Tue, 7 Oct 2008 12:43:55 +0530

Hi ,

I have following query.

In the following function in "ESICustomParser.cc" I have passed the
reference of "ESIVarstate" . This works fine.

bool
ESICustomParser::parse(char const *dataToParse, size_t const
lengthOfData, bool const endOfStream,ESIVarState *var) .

But when I try to pass the reference of "ESIVarState" to
"theClient->parserDefault (currentPos,tag - currentPos,var)" which is
present in this function , I get the following error while compiling

ESIExpatParser.cc: In constructor
'ESIExpatParser::ESIExpatParser(ESIParserClient*)':
ESIExpatParser.cc:47: error: invalid conversion from 'void (*)(void*,
const char*, int, ESIVarState*)' to 'void (*)(void*, const XML_Char*,
int)'
ESIExpatParser.cc:47: error: initializing argument 2 of 'void
XML_SetDefaultHandler(XML_ParserStruct*, void (*)(void*, const
XML_Char*, int))

I have made following changes

In ESIParser.h
virtual void parserDefault (const char *s, int len,ESIVarState *var) =0;

In ESIExpatParser.h
static void Default (void *data, const char *s, int len,ESIVarState *var);

In ESIExpatParser.cc
void ESIExpatParser::Default(void *data, const XML_Char *s, int
len,ESIVarState *var)

In ESIContext.h
virtual void parserDefault (const char *s, int len,ESIVarState *var);

In ESI.cc
void
ESIContext::parserDefault (const char *s, int len,ESIVarState *var)

Any help in this regards will be appreciated and thanks in advance.

-Paras
Received on Tue Oct 07 2008 - 07:21:55 MDT

This archive was generated by hypermail 2.2.0 : Tue Oct 07 2008 - 12:00:04 MDT