Lines Matching refs:node_seq
1674 xmlInitNodeInfoSeq(&ctxt->node_seq); in xmlInitParserCtxt()
1807 xmlClearNodeInfoSeq(&ctxt->node_seq); in xmlClearParserCtxt()
1829 pos = xmlParserFindNodeInfoIndex(&ctx->node_seq, node); in xmlParserFindNodeInfo()
1830 if (pos < ctx->node_seq.length in xmlParserFindNodeInfo()
1831 && ctx->node_seq.buffer[pos].node == node) in xmlParserFindNodeInfo()
1832 return &ctx->node_seq.buffer[pos]; in xmlParserFindNodeInfo()
1930 pos = xmlParserFindNodeInfoIndex(&ctxt->node_seq, (xmlNodePtr) in xmlParserAddNodeInfo()
1933 if ((pos < ctxt->node_seq.length) && in xmlParserAddNodeInfo()
1934 (ctxt->node_seq.buffer != NULL) && in xmlParserAddNodeInfo()
1935 (ctxt->node_seq.buffer[pos].node == info->node)) { in xmlParserAddNodeInfo()
1936 ctxt->node_seq.buffer[pos] = *info; in xmlParserAddNodeInfo()
1941 if (ctxt->node_seq.length + 1 > ctxt->node_seq.maximum) { in xmlParserAddNodeInfo()
1945 if (ctxt->node_seq.maximum == 0) in xmlParserAddNodeInfo()
1946 ctxt->node_seq.maximum = 2; in xmlParserAddNodeInfo()
1947 byte_size = (sizeof(*ctxt->node_seq.buffer) * in xmlParserAddNodeInfo()
1948 (2 * ctxt->node_seq.maximum)); in xmlParserAddNodeInfo()
1950 if (ctxt->node_seq.buffer == NULL) in xmlParserAddNodeInfo()
1954 (xmlParserNodeInfo *) xmlRealloc(ctxt->node_seq.buffer, in xmlParserAddNodeInfo()
1961 ctxt->node_seq.buffer = tmp_buffer; in xmlParserAddNodeInfo()
1962 ctxt->node_seq.maximum *= 2; in xmlParserAddNodeInfo()
1966 if (pos != ctxt->node_seq.length) { in xmlParserAddNodeInfo()
1969 for (i = ctxt->node_seq.length; i > pos; i--) in xmlParserAddNodeInfo()
1970 ctxt->node_seq.buffer[i] = ctxt->node_seq.buffer[i - 1]; in xmlParserAddNodeInfo()
1974 ctxt->node_seq.buffer[pos] = *info; in xmlParserAddNodeInfo()
1975 ctxt->node_seq.length++; in xmlParserAddNodeInfo()