Commit 537f1173 authored by William M. Brack's avatar William M. Brack
Browse files

adjusted last change to xmlCompilePathPattern, fixed one compilation

* pattern.c: adjusted last change to xmlCompilePathPattern,
  fixed one compilation warning
parent 9ca11bfc
Tue Jun 14 15:03:22 PDT 2005 William Brack <wbrack@mmm.com.hk>
* pattern.c: adjusted last change to xmlCompilePathPattern,
fixed one compilation warning
Tue Jun 14 21:19:16 CEST 2005 Kasimier Buchcik <libxml2-cvs@cazic.net> Tue Jun 14 21:19:16 CEST 2005 Kasimier Buchcik <libxml2-cvs@cazic.net>
* pattern.c: Some changes/fixes to the streaming evaluation. * pattern.c: Some changes/fixes to the streaming evaluation.
......
...@@ -1132,7 +1132,7 @@ error: ...@@ -1132,7 +1132,7 @@ error:
static void static void
xmlCompilePathPattern(xmlPatParserContextPtr ctxt) { xmlCompilePathPattern(xmlPatParserContextPtr ctxt) {
SKIP_BLANKS; SKIP_BLANKS;
if ((CUR == '/') && (NXT(1) != '/')) { if (CUR == '/') {
ctxt->comp->flags |= PAT_FROM_ROOT; ctxt->comp->flags |= PAT_FROM_ROOT;
} else if ((CUR == '.') || (ctxt->comp->flags & XML_PATTERN_NOTPATTERN)) { } else if ((CUR == '.') || (ctxt->comp->flags & XML_PATTERN_NOTPATTERN)) {
ctxt->comp->flags |= PAT_FROM_CUR; ctxt->comp->flags |= PAT_FROM_CUR;
...@@ -1584,7 +1584,7 @@ static int ...@@ -1584,7 +1584,7 @@ static int
xmlStreamPushInternal(xmlStreamCtxtPtr stream, xmlStreamPushInternal(xmlStreamCtxtPtr stream,
const xmlChar *name, const xmlChar *ns, const xmlChar *name, const xmlChar *ns,
xmlElementType nodeType) { xmlElementType nodeType) {
int ret = 0, err = 0, tmp, i, m, match, step, desc, final; int ret = 0, err = 0, final = 0, tmp, i, m, match, step, desc;
xmlStreamCompPtr comp; xmlStreamCompPtr comp;
#ifdef DEBUG_STREAMING #ifdef DEBUG_STREAMING
xmlStreamCtxtPtr orig = stream; xmlStreamCtxtPtr orig = stream;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment