#include "sherlock/sherlock.h"
#include "sherlock/xml/xml.h"
#include "sherlock/xml/dtd.h"
-#include "sherlock/xml/common.h"
+#include "sherlock/xml/internals.h"
#include "lib/fastbuf.h"
#include "lib/ff-unicode.h"
#include "lib/unicode.h"
{
if ((ctx->flags & XML_REPORT_CHARS) && ctx->h_block && (rlen = xml_report_chars(ctx, &rtext)))
ctx->h_block(ctx, rtext, rlen);
- if (!(ctx->flags & XML_ALLOC_CHARS) && (!(ctx->flags & XML_REPORT_CHARS) || !ctx->h_chars))
+ if (!(ctx->flags & XML_ALLOC_CHARS) && !(ctx->flags & XML_REPORT_CHARS) && !ctx->h_chars)
{
mp_restore(ctx->pool, &ctx->chars_state);
return 0;
uns
xml_parse(struct xml_context *ctx)
{
- /* This cycle shoud run only once unless the user overrides the value of ctx->pull in a SAX handler */
+ /* This cycle should run only once unless the user overrides the value of ctx->pull in a SAX handler */
do
{
ctx->pull = 0;