mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 06:33:01 +00:00
[LIBXML2] Update to version 2.9.7. CORE-14291
This commit is contained in:
parent
b97f0a8fed
commit
fc82f8e2e3
52 changed files with 1978 additions and 2458 deletions
17
sdk/lib/3rdparty/libxml2/relaxng.c
vendored
17
sdk/lib/3rdparty/libxml2/relaxng.c
vendored
|
@ -20,6 +20,7 @@
|
|||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <stddef.h>
|
||||
#include <libxml/xmlmemory.h>
|
||||
#include <libxml/parser.h>
|
||||
#include <libxml/parserInternals.h>
|
||||
|
@ -4404,7 +4405,7 @@ xmlRelaxNGComputeInterleaves(xmlRelaxNGDefinePtr def,
|
|||
if ((*tmp)->type == XML_RELAXNG_TEXT) {
|
||||
res = xmlHashAddEntry2(partitions->triage,
|
||||
BAD_CAST "#text", NULL,
|
||||
(void *) (long) (i + 1));
|
||||
(void *) (ptrdiff_t) (i + 1));
|
||||
if (res != 0)
|
||||
is_determinist = -1;
|
||||
} else if (((*tmp)->type == XML_RELAXNG_ELEMENT) &&
|
||||
|
@ -4412,22 +4413,22 @@ xmlRelaxNGComputeInterleaves(xmlRelaxNGDefinePtr def,
|
|||
if (((*tmp)->ns == NULL) || ((*tmp)->ns[0] == 0))
|
||||
res = xmlHashAddEntry2(partitions->triage,
|
||||
(*tmp)->name, NULL,
|
||||
(void *) (long) (i + 1));
|
||||
(void *) (ptrdiff_t) (i + 1));
|
||||
else
|
||||
res = xmlHashAddEntry2(partitions->triage,
|
||||
(*tmp)->name, (*tmp)->ns,
|
||||
(void *) (long) (i + 1));
|
||||
(void *) (ptrdiff_t) (i + 1));
|
||||
if (res != 0)
|
||||
is_determinist = -1;
|
||||
} else if ((*tmp)->type == XML_RELAXNG_ELEMENT) {
|
||||
if (((*tmp)->ns == NULL) || ((*tmp)->ns[0] == 0))
|
||||
res = xmlHashAddEntry2(partitions->triage,
|
||||
BAD_CAST "#any", NULL,
|
||||
(void *) (long) (i + 1));
|
||||
(void *) (ptrdiff_t) (i + 1));
|
||||
else
|
||||
res = xmlHashAddEntry2(partitions->triage,
|
||||
BAD_CAST "#any", (*tmp)->ns,
|
||||
(void *) (long) (i + 1));
|
||||
(void *) (ptrdiff_t) (i + 1));
|
||||
if ((*tmp)->nameClass != NULL)
|
||||
is_determinist = 2;
|
||||
if (res != 0)
|
||||
|
@ -8890,7 +8891,7 @@ xmlRelaxNGValidateValue(xmlRelaxNGValidCtxtPtr ctxt,
|
|||
if (ret != 0) {
|
||||
break;
|
||||
}
|
||||
/* no break on purpose */
|
||||
/* Falls through. */
|
||||
case XML_RELAXNG_ZEROORMORE:{
|
||||
xmlChar *cur, *temp;
|
||||
|
||||
|
@ -9387,7 +9388,7 @@ xmlRelaxNGValidateInterleave(xmlRelaxNGValidCtxtPtr ctxt,
|
|||
if (tmp == NULL) {
|
||||
i = nbgroups;
|
||||
} else {
|
||||
i = ((long) tmp) - 1;
|
||||
i = ((ptrdiff_t) tmp) - 1;
|
||||
if (partitions->flags & IS_NEEDCHECK) {
|
||||
group = partitions->groups[i];
|
||||
if (!xmlRelaxNGNodeMatchesList(cur, group->defs))
|
||||
|
@ -10167,7 +10168,7 @@ xmlRelaxNGValidateState(xmlRelaxNGValidCtxtPtr ctxt,
|
|||
}
|
||||
if (ctxt->errNr > errNr)
|
||||
xmlRelaxNGPopErrors(ctxt, errNr);
|
||||
/* no break on purpose */
|
||||
/* Falls through. */
|
||||
case XML_RELAXNG_ZEROORMORE:{
|
||||
int progress;
|
||||
xmlRelaxNGStatesPtr states = NULL, res = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue