|
ReactOS 0.4.16-dev-1946-g52006dd
|
#include "libxml.h"#include <limits.h>#include <string.h>#include <stddef.h>#include <math.h>#include <float.h>#include <ctype.h>#include <libxml/xmlmemory.h>#include <libxml/tree.h>#include <libxml/valid.h>#include <libxml/xpath.h>#include <libxml/xpathInternals.h>#include <libxml/parserInternals.h>#include <libxml/hash.h>#include <libxml/xmlerror.h>#include <libxml/threads.h>#include <libxml/globals.h>#include "buf.h"#include "timsort.h"
Go to the source code of this file.
Macros | |
| #define | IN_LIBXML |
| #define | TODO |
| #define | WITH_TIM_SORT |
| #define | XP_OPTIMIZED_NON_ELEM_COMPARISON |
| #define | XP_OPTIMIZED_FILTER_FIRST |
| #define | XPATH_MAX_STEPS 1000000 |
| #define | XPATH_MAX_STACK_DEPTH 1000000 |
| #define | XPATH_MAX_NODESET_LENGTH 10000000 |
| #define | XPATH_MAX_RECURSION_DEPTH 5000 |
| #define | SORT_NAME libxml_domnode |
| #define | SORT_TYPE xmlNodePtr |
| #define | SORT_CMP(x, y) (wrap_cmp(x, y)) |
Functions | |
| static int | xmlXPathCmpNodesExt (xmlNodePtr node1, xmlNodePtr node2) |
| static int | wrap_cmp (xmlNodePtr x, xmlNodePtr y) |
| #define SORT_TYPE xmlNodePtr |
| #define TODO |
| #define WITH_TIM_SORT |
|
static |
wrap_cmp: @x: a node @y: another node
Comparison function for the Timsort implementation
Returns -2 in case of error -1 if first point < second point, 0 if it's the same node, +1 otherwise
Definition at line 454 of file xpath.c.
|
static |
xmlXPathCmpNodesExt: @node1: the first node @node2: the second node
Compare two nodes w.r.t document order. This one is optimized for handling of non-element nodes.
Returns -2 in case of error 1 if first point < second point, 0 if it's the same node, -1 otherwise
Definition at line 156 of file xpath.c.
Referenced by wrap_cmp().