Lines Matching refs:oldctxt

317 xmlParseExternalEntityPrivate(xmlDocPtr doc, xmlParserCtxtPtr oldctxt,
332 xmlParseBalancedChunkMemoryInternal(xmlParserCtxtPtr oldctxt,
12999 xmlParseExternalEntityPrivate(xmlDocPtr doc, xmlParserCtxtPtr oldctxt, in xmlParseExternalEntityPrivate() argument
13012 ((oldctxt == NULL) || (oldctxt->options & XML_PARSE_HUGE) == 0)) || in xmlParseExternalEntityPrivate()
13025 ctxt = xmlCreateEntityParserCtxtInternal(URL, ID, NULL, oldctxt); in xmlParseExternalEntityPrivate()
13096 if ((xmlStrEqual(oldctxt->version, BAD_CAST "1.0")) && in xmlParseExternalEntityPrivate()
13105 if (oldctxt != NULL) { in xmlParseExternalEntityPrivate()
13106 ctxt->_private = oldctxt->_private; in xmlParseExternalEntityPrivate()
13107 ctxt->loadsubset = oldctxt->loadsubset; in xmlParseExternalEntityPrivate()
13108 ctxt->validate = oldctxt->validate; in xmlParseExternalEntityPrivate()
13109 ctxt->valid = oldctxt->valid; in xmlParseExternalEntityPrivate()
13110 ctxt->replaceEntities = oldctxt->replaceEntities; in xmlParseExternalEntityPrivate()
13111 if (oldctxt->validate) { in xmlParseExternalEntityPrivate()
13112 ctxt->vctxt.error = oldctxt->vctxt.error; in xmlParseExternalEntityPrivate()
13113 ctxt->vctxt.warning = oldctxt->vctxt.warning; in xmlParseExternalEntityPrivate()
13114 ctxt->vctxt.userData = oldctxt->vctxt.userData; in xmlParseExternalEntityPrivate()
13116 ctxt->external = oldctxt->external; in xmlParseExternalEntityPrivate()
13118 ctxt->dict = oldctxt->dict; in xmlParseExternalEntityPrivate()
13122 ctxt->dictNames = oldctxt->dictNames; in xmlParseExternalEntityPrivate()
13123 ctxt->attsDefault = oldctxt->attsDefault; in xmlParseExternalEntityPrivate()
13124 ctxt->attsSpecial = oldctxt->attsSpecial; in xmlParseExternalEntityPrivate()
13125 ctxt->linenumbers = oldctxt->linenumbers; in xmlParseExternalEntityPrivate()
13126 ctxt->record_info = oldctxt->record_info; in xmlParseExternalEntityPrivate()
13127 ctxt->node_seq.maximum = oldctxt->node_seq.maximum; in xmlParseExternalEntityPrivate()
13128 ctxt->node_seq.length = oldctxt->node_seq.length; in xmlParseExternalEntityPrivate()
13129 ctxt->node_seq.buffer = oldctxt->node_seq.buffer; in xmlParseExternalEntityPrivate()
13180 if (oldctxt != NULL) in xmlParseExternalEntityPrivate()
13181 oldctxt->nbentities += ctxt->nbentities; in xmlParseExternalEntityPrivate()
13186 if (ctxt->input != NULL && oldctxt != NULL) { in xmlParseExternalEntityPrivate()
13187 oldctxt->sizeentities += ctxt->input->consumed; in xmlParseExternalEntityPrivate()
13188 oldctxt->sizeentities += (ctxt->input->cur - ctxt->input->base); in xmlParseExternalEntityPrivate()
13193 if ((oldctxt != NULL) && (ctxt->lastError.code != XML_ERR_OK)) in xmlParseExternalEntityPrivate()
13194 xmlCopyError(&ctxt->lastError, &oldctxt->lastError); in xmlParseExternalEntityPrivate()
13198 if (oldctxt != NULL) { in xmlParseExternalEntityPrivate()
13202 oldctxt->validate = ctxt->validate; in xmlParseExternalEntityPrivate()
13203 oldctxt->valid = ctxt->valid; in xmlParseExternalEntityPrivate()
13204 oldctxt->node_seq.maximum = ctxt->node_seq.maximum; in xmlParseExternalEntityPrivate()
13205 oldctxt->node_seq.length = ctxt->node_seq.length; in xmlParseExternalEntityPrivate()
13206 oldctxt->node_seq.buffer = ctxt->node_seq.buffer; in xmlParseExternalEntityPrivate()
13297 xmlParseBalancedChunkMemoryInternal(xmlParserCtxtPtr oldctxt, in xmlParseBalancedChunkMemoryInternal() argument
13311 if (((oldctxt->depth > 40) && ((oldctxt->options & XML_PARSE_HUGE) == 0)) || in xmlParseBalancedChunkMemoryInternal()
13312 (oldctxt->depth > 1024)) { in xmlParseBalancedChunkMemoryInternal()
13331 ctxt->dict = oldctxt->dict; in xmlParseBalancedChunkMemoryInternal()
13332 ctxt->input_id = oldctxt->input_id + 1; in xmlParseBalancedChunkMemoryInternal()
13339 for (i = 0;i < oldctxt->nsNr;i += 2) { in xmlParseBalancedChunkMemoryInternal()
13340 nsPush(ctxt, oldctxt->nsTab[i], oldctxt->nsTab[i+1]); in xmlParseBalancedChunkMemoryInternal()
13345 ctxt->sax = oldctxt->sax; in xmlParseBalancedChunkMemoryInternal()
13347 ctxt->replaceEntities = oldctxt->replaceEntities; in xmlParseBalancedChunkMemoryInternal()
13348 ctxt->options = oldctxt->options; in xmlParseBalancedChunkMemoryInternal()
13350 ctxt->_private = oldctxt->_private; in xmlParseBalancedChunkMemoryInternal()
13351 if (oldctxt->myDoc == NULL) { in xmlParseBalancedChunkMemoryInternal()
13364 ctxt->myDoc = oldctxt->myDoc; in xmlParseBalancedChunkMemoryInternal()
13383 ctxt->depth = oldctxt->depth + 1; in xmlParseBalancedChunkMemoryInternal()
13386 ctxt->loadsubset = oldctxt->loadsubset; in xmlParseBalancedChunkMemoryInternal()
13387 if ((oldctxt->validate) || (oldctxt->replaceEntities != 0)) { in xmlParseBalancedChunkMemoryInternal()
13393 ctxt->dictNames = oldctxt->dictNames; in xmlParseBalancedChunkMemoryInternal()
13394 ctxt->attsDefault = oldctxt->attsDefault; in xmlParseBalancedChunkMemoryInternal()
13395 ctxt->attsSpecial = oldctxt->attsSpecial; in xmlParseBalancedChunkMemoryInternal()
13427 if ((oldctxt->validate) && (oldctxt->wellFormed) && in xmlParseBalancedChunkMemoryInternal()
13428 (oldctxt->myDoc) && (oldctxt->myDoc->intSubset) && in xmlParseBalancedChunkMemoryInternal()
13430 oldctxt->valid &= xmlValidateElement(&oldctxt->vctxt, in xmlParseBalancedChunkMemoryInternal()
13431 oldctxt->myDoc, cur); in xmlParseBalancedChunkMemoryInternal()
13449 if (oldctxt != NULL) in xmlParseBalancedChunkMemoryInternal()
13450 oldctxt->nbentities += ctxt->nbentities; in xmlParseBalancedChunkMemoryInternal()
13456 xmlCopyError(&ctxt->lastError, &oldctxt->lastError); in xmlParseBalancedChunkMemoryInternal()