• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/libxml2-26/libxml2/

Lines Matching +defs:last +defs:depth

203  * arbitrary depth limit for the XML documents that we allow to
246 void *user_data, int depth, const xmlChar *URL,
1746 "Excessive depth in document: %d use XML_PARSE_HUGE option\n",
2689 const xmlChar *last;
2695 last = str + len;
2697 if (((ctxt->depth > 40) &&
2699 (ctxt->depth > 1024)) {
2715 if (str < last)
2754 ctxt->depth++;
2757 ctxt->depth--;
2797 ctxt->depth++;
2800 ctxt->depth--;
2822 if (str < last)
5728 xmlEnumerationPtr ret = NULL, last = NULL, cur, tmp;
5763 if (last == NULL) ret = last = cur;
5765 last->next = cur;
5766 last = cur;
5798 xmlEnumerationPtr ret = NULL, last = NULL, cur, tmp;
5833 if (last == NULL) ret = last = cur;
5835 last->next = cur;
5836 last = cur;
6204 * @depth: the level of recursion
6226 * be empty, and neither the first nor last non-blank character of
6234 int depth) {
6235 xmlElementContentPtr ret = NULL, cur = NULL, last = NULL, op = NULL;
6239 if (((depth > 128) && ((ctxt->options & XML_PARSE_HUGE) == 0)) ||
6240 (depth > 2048)) {
6242 "xmlParseElementChildrenContentDecl : depth %d too deep, use XML_PARSE_HUGE\n",
6243 depth);
6255 depth + 1);
6300 if ((last != NULL) && (last != ret))
6301 xmlFreeDocElementContent(ctxt->myDoc, last);
6310 if ((last != NULL) && (last != ret))
6311 xmlFreeDocElementContent(ctxt->myDoc, last);
6315 if (last == NULL) {
6324 op->c1 = last;
6325 if (last != NULL)
6326 last->parent = op;
6328 last = NULL;
6340 if ((last != NULL) && (last != ret))
6341 xmlFreeDocElementContent(ctxt->myDoc, last);
6350 if ((last != NULL) && (last != ret))
6351 xmlFreeDocElementContent(ctxt->myDoc, last);
6356 if (last == NULL) {
6365 op->c1 = last;
6366 if (last != NULL)
6367 last->parent = op;
6369 last = NULL;
6373 if ((last != NULL) && (last != ret))
6374 xmlFreeDocElementContent(ctxt->myDoc, last);
6387 last = xmlParseElementChildrenContentDeclPriv(ctxt, inputid,
6388 depth + 1);
6398 last = xmlNewDocElementContent(ctxt->myDoc, elem, XML_ELEMENT_CONTENT_ELEMENT);
6399 if (last == NULL) {
6405 last->ocur = XML_ELEMENT_CONTENT_OPT;
6408 last->ocur = XML_ELEMENT_CONTENT_MULT;
6411 last->ocur = XML_ELEMENT_CONTENT_PLUS;
6414 last->ocur = XML_ELEMENT_CONTENT_ONCE;
6420 if ((cur != NULL) && (last != NULL)) {
6421 cur->c2 = last;
6422 if (last != NULL)
6423 last->parent = cur;
6522 * be empty, and neither the first nor last non-blank character of
6771 int depth = 0;
6803 while (((depth >= 0) && (RAW != 0)) &&
6806 depth++;
6811 if (--depth >= 0) SKIP(3);
6861 * or the last character of a markup declaration (markupdecl above) is
7206 ctxt->depth++;
7209 ctxt->depth--;
7212 ctxt->depth++;
7214 user_data, ctxt->depth, ent->URI,
7216 ctxt->depth--;
7262 ent->last = list;
7277 ent->last = list;
7324 ctxt->depth++;
7327 ctxt->depth--;
7330 ctxt->depth++;
7332 ctxt->sax, user_data, ctxt->depth,
7334 ctxt->depth--;
7417 if (cur == ent->last) {
7437 xmlNodePtr nw = NULL, cur, next, last,
7455 last = ent->last;
7456 ent->last = NULL;
7471 if (cur == last)
7493 if ((ent->last != ent->children) &&
7494 (ent->last->type == XML_TEXT_NODE))
7495 ent->last->name = nbktext;
8907 const xmlChar *in = NULL, *start, *end, *last;
8986 last = in;
8990 while ((last[-1] == 0x20) && (last > start)) last--;
9004 last = last + delta;
9045 last = in;
9056 *len = last - start;
9060 ret = xmlStrndup(start, last - start);
9944 "Excessive depth in document: %d use XML_PARSE_HUGE option\n",
10866 ctxt->depth = 0;
10978 * @lastlt: pointer to store the last '<' from the input
10979 * @lastgt: pointer to store the last '>' from the input
10981 * Lookup the last < and > in the current chunk
11102 * @terminate: last chunk indicator
12157 * @terminate: last chunk indicator
12875 if (((ctx->depth > 40) && ((ctx->options & XML_PARSE_HUGE) == 0)) ||
12876 (ctx->depth > 1024)) {
12979 ctxt->depth = ctx->depth + 1;
13056 * @depth: Used for loop detection, use 0
13070 void *user_data, int depth, const xmlChar *URL,
13080 if (((depth > 40) &&
13082 (depth > 1024)) {
13183 ctxt->depth = depth;
13235 * And record the last error if any
13262 * @depth: Used for loop detection, use 0
13279 int depth, const xmlChar *URL, const xmlChar *ID, xmlNodePtr *lst) {
13280 return(xmlParseExternalEntityPrivate(doc, NULL, sax, user_data, depth, URL,
13289 * @depth: Used for loop detection, use 0
13306 void *user_data, int depth, const xmlChar *string, xmlNodePtr *lst) {
13308 depth, string, lst, 0 );
13341 xmlNodePtr last = NULL;
13348 if (((oldctxt->depth > 40) && ((oldctxt->options & XML_PARSE_HUGE) == 0)) ||
13349 (oldctxt->depth > 1024)) {
13402 last = ctxt->myDoc->last;
13415 ctxt->myDoc->last = NULL;
13419 ctxt->depth = oldctxt->depth + 1;
13478 ctxt->myDoc->last = last;
13489 * Also record the last error if any
13594 * we must wait until the last moment to free the original one.
13700 node->last = fake;
13738 * @depth: Used for loop detection, use 0
13760 void *user_data, int depth, const xmlChar *string, xmlNodePtr *lst,
13769 if (depth > 40) {
13833 ctxt->depth = depth;
14642 * @lastNode : A valid last node of children entity
14768 xmlCleanupThreads(); /* must be last if called not from the main thread */
14865 ctxt->depth = 0;