Lines Matching refs:ctxt
100 * @ctxt: an XML parser context
106 xmlErrMemory(xmlParserCtxtPtr ctxt, const char *extra)
108 if ((ctxt != NULL) && (ctxt->disableSAX != 0) &&
109 (ctxt->instate == XML_PARSER_EOF))
111 if (ctxt != NULL) {
112 ctxt->errNo = XML_ERR_NO_MEMORY;
113 ctxt->instate = XML_PARSER_EOF;
114 ctxt->disableSAX = 1;
117 __xmlRaiseError(NULL, NULL, NULL, ctxt, NULL, XML_FROM_PARSER,
122 __xmlRaiseError(NULL, NULL, NULL, ctxt, NULL, XML_FROM_PARSER,
129 * @ctxt: an XML parser context
138 __xmlErrEncoding(xmlParserCtxtPtr ctxt, xmlParserErrors xmlerr,
141 if ((ctxt != NULL) && (ctxt->disableSAX != 0) &&
142 (ctxt->instate == XML_PARSER_EOF))
144 if (ctxt != NULL)
145 ctxt->errNo = xmlerr;
147 ctxt, NULL, XML_FROM_PARSER, xmlerr, XML_ERR_FATAL,
150 if (ctxt != NULL) {
151 ctxt->wellFormed = 0;
152 if (ctxt->recovery == 0)
153 ctxt->disableSAX = 1;
159 * @ctxt: an XML parser context
166 xmlErrInternal(xmlParserCtxtPtr ctxt, const char *msg, const xmlChar * str)
168 if ((ctxt != NULL) && (ctxt->disableSAX != 0) &&
169 (ctxt->instate == XML_PARSER_EOF))
171 if (ctxt != NULL)
172 ctxt->errNo = XML_ERR_INTERNAL_ERROR;
174 ctxt, NULL, XML_FROM_PARSER, XML_ERR_INTERNAL_ERROR,
177 if (ctxt != NULL) {
178 ctxt->wellFormed = 0;
179 if (ctxt->recovery == 0)
180 ctxt->disableSAX = 1;
186 * @ctxt: an XML parser context
194 xmlErrEncodingInt(xmlParserCtxtPtr ctxt, xmlParserErrors error,
197 if ((ctxt != NULL) && (ctxt->disableSAX != 0) &&
198 (ctxt->instate == XML_PARSER_EOF))
200 if (ctxt != NULL)
201 ctxt->errNo = error;
203 ctxt, NULL, XML_FROM_PARSER, error, XML_ERR_FATAL,
205 if (ctxt != NULL) {
206 ctxt->wellFormed = 0;
207 if (ctxt->recovery == 0)
208 ctxt->disableSAX = 1;
442 * @ctxt: the XML parser context
448 xmlNextChar(xmlParserCtxtPtr ctxt)
450 if ((ctxt == NULL) || (ctxt->instate == XML_PARSER_EOF) ||
451 (ctxt->input == NULL))
454 if (ctxt->charset == XML_CHAR_ENCODING_UTF8) {
455 if ((*ctxt->input->cur == 0) &&
456 (xmlParserInputGrow(ctxt->input, INPUT_CHUNK) <= 0) &&
457 (ctxt->instate != XML_PARSER_COMMENT)) {
464 xmlPopInput(ctxt);
475 if (*(ctxt->input->cur) == '\n') {
476 ctxt->input->line++; ctxt->input->col = 1;
478 ctxt->input->col++;
491 cur = ctxt->input->cur;
498 xmlParserInputGrow(ctxt->input, INPUT_CHUNK);
499 cur = ctxt->input->cur;
507 xmlParserInputGrow(ctxt->input, INPUT_CHUNK);
508 cur = ctxt->input->cur;
514 xmlParserInputGrow(ctxt->input, INPUT_CHUNK);
515 cur = ctxt->input->cur;
521 ctxt->input->cur += 4;
528 ctxt->input->cur += 3;
536 xmlErrEncodingInt(ctxt, XML_ERR_INVALID_CHAR,
542 ctxt->input->cur += 2;
545 ctxt->input->cur++;
547 ctxt->nbChars++;
548 if (*ctxt->input->cur == 0)
549 xmlParserInputGrow(ctxt->input, INPUT_CHUNK);
558 if (*(ctxt->input->cur) == '\n') {
559 ctxt->input->line++; ctxt->input->col = 1;
561 ctxt->input->col++;
562 ctxt->input->cur++;
563 ctxt->nbChars++;
564 if (*ctxt->input->cur == 0)
565 xmlParserInputGrow(ctxt->input, INPUT_CHUNK);
567 if ((*ctxt->input->cur == '%') && (!ctxt->html))
568 xmlParserHandlePEReference(ctxt);
569 if ((*ctxt->input->cur == 0) &&
570 (xmlParserInputGrow(ctxt->input, INPUT_CHUNK) <= 0))
571 xmlPopInput(ctxt);
581 if ((ctxt == NULL) || (ctxt->input == NULL) ||
582 (ctxt->input->end - ctxt->input->cur < 4)) {
583 __xmlErrEncoding(ctxt, XML_ERR_INVALID_CHAR,
590 ctxt->input->cur[0], ctxt->input->cur[1],
591 ctxt->input->cur[2], ctxt->input->cur[3]);
592 __xmlErrEncoding(ctxt, XML_ERR_INVALID_CHAR,
596 ctxt->charset = XML_CHAR_ENCODING_8859_1;
597 ctxt->input->cur++;
603 * @ctxt: the XML parser context
620 xmlCurrentChar(xmlParserCtxtPtr ctxt, int *len) {
621 if ((ctxt == NULL) || (len == NULL) || (ctxt->input == NULL)) return(0);
622 if (ctxt->instate == XML_PARSER_EOF)
625 if ((*ctxt->input->cur >= 0x20) && (*ctxt->input->cur <= 0x7F)) {
627 return((int) *ctxt->input->cur);
629 if (ctxt->charset == XML_CHAR_ENCODING_UTF8) {
641 const unsigned char *cur = ctxt->input->cur;
650 xmlParserInputGrow(ctxt->input, INPUT_CHUNK);
651 cur = ctxt->input->cur;
657 xmlParserInputGrow(ctxt->input, INPUT_CHUNK);
658 cur = ctxt->input->cur;
664 xmlParserInputGrow(ctxt->input, INPUT_CHUNK);
665 cur = ctxt->input->cur;
696 xmlErrEncodingInt(ctxt, XML_ERR_INVALID_CHAR,
703 if (*ctxt->input->cur == 0)
704 xmlParserInputGrow(ctxt->input, INPUT_CHUNK);
705 if ((*ctxt->input->cur == 0) &&
706 (ctxt->input->end > ctxt->input->cur)) {
707 xmlErrEncodingInt(ctxt, XML_ERR_INVALID_CHAR,
710 if (*ctxt->input->cur == 0xD) {
711 if (ctxt->input->cur[1] == 0xA) {
712 ctxt->nbChars++;
713 ctxt->input->cur++;
717 return((int) *ctxt->input->cur);
726 if (*ctxt->input->cur == 0xD) {
727 if (ctxt->input->cur[1] == 0xA) {
728 ctxt->nbChars++;
729 ctxt->input->cur++;
733 return((int) *ctxt->input->cur);
740 if (ctxt->input->end - ctxt->input->cur < 4) {
756 ctxt->input->cur[0], ctxt->input->cur[1],
757 ctxt->input->cur[2], ctxt->input->cur[3]);
758 __xmlErrEncoding(ctxt, XML_ERR_INVALID_CHAR,
762 ctxt->charset = XML_CHAR_ENCODING_8859_1;
764 return((int) *ctxt->input->cur);
769 * @ctxt: the XML parser context
780 xmlStringCurrentChar(xmlParserCtxtPtr ctxt, const xmlChar * cur, int *len)
783 if ((ctxt == NULL) || (ctxt->charset == XML_CHAR_ENCODING_UTF8)) {
829 xmlErrEncodingInt(ctxt, XML_ERR_INVALID_CHAR,
853 if ((ctxt == NULL) || (ctxt->input == NULL) ||
854 (ctxt->input->end - ctxt->input->cur < 4)) {
869 ctxt->input->cur[0], ctxt->input->cur[1],
870 ctxt->input->cur[2], ctxt->input->cur[3]);
871 __xmlErrEncoding(ctxt, XML_ERR_INVALID_CHAR,
954 xmlSwitchToEncodingInt(xmlParserCtxtPtr ctxt,
957 xmlSwitchInputEncodingInt(xmlParserCtxtPtr ctxt, xmlParserInputPtr input,
961 * @ctxt: the parser context
970 xmlSwitchEncoding(xmlParserCtxtPtr ctxt, xmlCharEncoding enc)
975 if (ctxt == NULL) return(-1);
978 __xmlErrEncoding(ctxt, XML_ERR_UNKNOWN_ENCODING,
983 ctxt->charset = XML_CHAR_ENCODING_UTF8;
987 ctxt->charset = XML_CHAR_ENCODING_UTF8;
994 if ((ctxt->input != NULL) &&
995 (ctxt->input->cur[0] == 0xEF) &&
996 (ctxt->input->cur[1] == 0xBB) &&
997 (ctxt->input->cur[2] == 0xBF)) {
998 ctxt->input->cur += 3;
1006 *ctxt->input->cur to contain UTF-8 encoded characters.
1011 if ((ctxt->input != NULL) && (ctxt->input->cur != NULL) &&
1012 (ctxt->input->cur[0] == 0xEF) &&
1013 (ctxt->input->cur[1] == 0xBB) &&
1014 (ctxt->input->cur[2] == 0xBF)) {
1015 ctxt->input->cur += 3;
1053 ctxt->charset = XML_CHAR_ENCODING_UTF8;
1060 __xmlErrEncoding(ctxt, XML_ERR_UNSUPPORTED_ENCODING,
1065 __xmlErrEncoding(ctxt, XML_ERR_UNSUPPORTED_ENCODING,
1070 __xmlErrEncoding(ctxt, XML_ERR_UNSUPPORTED_ENCODING,
1075 __xmlErrEncoding(ctxt, XML_ERR_UNSUPPORTED_ENCODING,
1080 __xmlErrEncoding(ctxt, XML_ERR_UNSUPPORTED_ENCODING,
1085 __xmlErrEncoding(ctxt, XML_ERR_UNSUPPORTED_ENCODING,
1104 if ((ctxt->inputNr == 1) &&
1105 (ctxt->encoding == NULL) &&
1106 (ctxt->input != NULL) &&
1107 (ctxt->input->encoding != NULL)) {
1108 ctxt->encoding = xmlStrdup(ctxt->input->encoding);
1110 ctxt->charset = enc;
1113 __xmlErrEncoding(ctxt, XML_ERR_UNSUPPORTED_ENCODING,
1118 __xmlErrEncoding(ctxt, XML_ERR_UNSUPPORTED_ENCODING,
1123 __xmlErrEncoding(ctxt, XML_ERR_UNSUPPORTED_ENCODING,
1133 ctxt->charset = XML_CHAR_ENCODING_UTF8;
1134 return(xmlSwitchToEncodingInt(ctxt, handler, len));
1139 * @ctxt: the parser context
1150 xmlSwitchInputEncodingInt(xmlParserCtxtPtr ctxt, xmlParserInputPtr input,
1234 if (ctxt->html) {
1254 xmlErrInternal(ctxt,
1270 xmlErrInternal(ctxt, "switching encoding : no input\n", NULL);
1278 * @ctxt: the parser context
1288 xmlSwitchInputEncoding(xmlParserCtxtPtr ctxt, xmlParserInputPtr input,
1290 return(xmlSwitchInputEncodingInt(ctxt, input, handler, -1));
1295 * @ctxt: the parser context
1307 xmlSwitchToEncodingInt(xmlParserCtxtPtr ctxt,
1312 if (ctxt->input != NULL) {
1313 ret = xmlSwitchInputEncodingInt(ctxt, ctxt->input, handler, len);
1315 xmlErrInternal(ctxt, "xmlSwitchToEncoding : no input\n",
1322 ctxt->charset = XML_CHAR_ENCODING_UTF8;
1330 * @ctxt: the parser context
1339 xmlSwitchToEncoding(xmlParserCtxtPtr ctxt, xmlCharEncodingHandlerPtr handler)
1341 return (xmlSwitchToEncodingInt(ctxt, handler, -1));
1373 * @ctxt: an XML parser context
1379 xmlNewInputStream(xmlParserCtxtPtr ctxt) {
1385 xmlErrMemory(ctxt, "couldn't allocate a new input stream\n");
1402 * @ctxt: an XML parser context
1412 xmlNewIOInputStream(xmlParserCtxtPtr ctxt, xmlParserInputBufferPtr input,
1419 inputStream = xmlNewInputStream(ctxt);
1429 xmlSwitchEncoding(ctxt, enc);
1437 * @ctxt: an XML parser context
1445 xmlNewEntityInputStream(xmlParserCtxtPtr ctxt, xmlEntityPtr entity) {
1449 xmlErrInternal(ctxt, "xmlNewEntityInputStream entity = NULL\n",
1459 xmlErrInternal(ctxt, "Cannot parse entity %s\n",
1465 (char *) entity->ExternalID, ctxt));
1467 xmlErrInternal(ctxt,
1472 xmlErrInternal(ctxt,
1477 xmlErrInternal(ctxt,
1484 input = xmlNewInputStream(ctxt);
1499 * @ctxt: an XML parser context
1506 xmlNewStringInputStream(xmlParserCtxtPtr ctxt, const xmlChar *buffer) {
1510 xmlErrInternal(ctxt, "xmlNewStringInputStream string = NULL\n",
1517 input = xmlNewInputStream(ctxt);
1519 xmlErrMemory(ctxt, "couldn't allocate a new input stream\n");
1531 * @ctxt: an XML parser context
1539 xmlNewInputFromFile(xmlParserCtxtPtr ctxt, const char *filename) {
1548 if (ctxt == NULL) return(NULL);
1552 __xmlLoaderErr(ctxt,
1556 __xmlLoaderErr(ctxt, "failed to load external entity \"%s\"\n",
1561 inputStream = xmlNewInputStream(ctxt);
1566 inputStream = xmlCheckHTTPInput(ctxt, inputStream);
1583 if ((ctxt->directory == NULL) && (directory != NULL))
1584 ctxt->directory = (char *) xmlStrdup((const xmlChar *) directory);
1596 * @ctxt: an XML parser context
1604 xmlInitParserCtxt(xmlParserCtxtPtr ctxt)
1608 if(ctxt==NULL) {
1615 if (ctxt->dict == NULL)
1616 ctxt->dict = xmlDictCreate();
1617 if (ctxt->dict == NULL) {
1621 if (ctxt->sax == NULL)
1622 ctxt->sax = (xmlSAXHandler *) xmlMalloc(sizeof(xmlSAXHandler));
1623 if (ctxt->sax == NULL) {
1628 xmlSAXVersion(ctxt->sax, 2);
1630 ctxt->maxatts = 0;
1631 ctxt->atts = NULL;
1633 if (ctxt->inputTab == NULL) {
1634 ctxt->inputTab = (xmlParserInputPtr *)
1636 ctxt->inputMax = 5;
1638 if (ctxt->inputTab == NULL) {
1640 ctxt->inputNr = 0;
1641 ctxt->inputMax = 0;
1642 ctxt->input = NULL;
1645 while ((input = inputPop(ctxt)) != NULL) { /* Non consuming */
1648 ctxt->inputNr = 0;
1649 ctxt->input = NULL;
1651 ctxt->version = NULL;
1652 ctxt->encoding = NULL;
1653 ctxt->standalone = -1;
1654 ctxt->hasExternalSubset = 0;
1655 ctxt->hasPErefs = 0;
1656 ctxt->html = 0;
1657 ctxt->external = 0;
1658 ctxt->instate = XML_PARSER_START;
1659 ctxt->token = 0;
1660 ctxt->directory = NULL;
1663 if (ctxt->nodeTab == NULL) {
1664 ctxt->nodeTab = (xmlNodePtr *) xmlMalloc(10 * sizeof(xmlNodePtr));
1665 ctxt->nodeMax = 10;
1667 if (ctxt->nodeTab == NULL) {
1669 ctxt->nodeNr = 0;
1670 ctxt->nodeMax = 0;
1671 ctxt->node = NULL;
1672 ctxt->inputNr = 0;
1673 ctxt->inputMax = 0;
1674 ctxt->input = NULL;
1677 ctxt->nodeNr = 0;
1678 ctxt->node = NULL;
1681 if (ctxt->nameTab == NULL) {
1682 ctxt->nameTab = (const xmlChar **) xmlMalloc(10 * sizeof(xmlChar *));
1683 ctxt->nameMax = 10;
1685 if (ctxt->nameTab == NULL) {
1687 ctxt->nodeNr = 0;
1688 ctxt->nodeMax = 0;
1689 ctxt->node = NULL;
1690 ctxt->inputNr = 0;
1691 ctxt->inputMax = 0;
1692 ctxt->input = NULL;
1693 ctxt->nameNr = 0;
1694 ctxt->nameMax = 0;
1695 ctxt->name = NULL;
1698 ctxt->nameNr = 0;
1699 ctxt->name = NULL;
1702 if (ctxt->spaceTab == NULL) {
1703 ctxt->spaceTab = (int *) xmlMalloc(10 * sizeof(int));
1704 ctxt->spaceMax = 10;
1706 if (ctxt->spaceTab == NULL) {
1708 ctxt->nodeNr = 0;
1709 ctxt->nodeMax = 0;
1710 ctxt->node = NULL;
1711 ctxt->inputNr = 0;
1712 ctxt->inputMax = 0;
1713 ctxt->input = NULL;
1714 ctxt->nameNr = 0;
1715 ctxt->nameMax = 0;
1716 ctxt->name = NULL;
1717 ctxt->spaceNr = 0;
1718 ctxt->spaceMax = 0;
1719 ctxt->space = NULL;
1722 ctxt->spaceNr = 1;
1723 ctxt->spaceMax = 10;
1724 ctxt->spaceTab[0] = -1;
1725 ctxt->space = &ctxt->spaceTab[0];
1726 ctxt->userData = ctxt;
1727 ctxt->myDoc = NULL;
1728 ctxt->wellFormed = 1;
1729 ctxt->nsWellFormed = 1;
1730 ctxt->valid = 1;
1731 ctxt->loadsubset = xmlLoadExtDtdDefaultValue;
1732 ctxt->validate = xmlDoValidityCheckingDefaultValue;
1733 ctxt->pedantic = xmlPedanticParserDefaultValue;
1734 ctxt->linenumbers = xmlLineNumbersDefaultValue;
1735 ctxt->keepBlanks = xmlKeepBlanksDefaultValue;
1736 if (ctxt->keepBlanks == 0)
1737 ctxt->sax->ignorableWhitespace = xmlSAX2IgnorableWhitespace;
1739 ctxt->vctxt.finishDtd = XML_CTXT_FINISH_DTD_0;
1740 ctxt->vctxt.userData = ctxt;
1741 ctxt->vctxt.error = xmlParserValidityError;
1742 ctxt->vctxt.warning = xmlParserValidityWarning;
1743 if (ctxt->validate) {
1745 ctxt->vctxt.warning = NULL;
1747 ctxt->vctxt.warning = xmlParserValidityWarning;
1748 ctxt->vctxt.nodeMax = 0;
1750 ctxt->replaceEntities = xmlSubstituteEntitiesDefaultValue;
1751 ctxt->record_info = 0;
1752 ctxt->nbChars = 0;
1753 ctxt->checkIndex = 0;
1754 ctxt->inSubset = 0;
1755 ctxt->errNo = XML_ERR_OK;
1756 ctxt->depth = 0;
1757 ctxt->charset = XML_CHAR_ENCODING_UTF8;
1758 ctxt->catalogs = NULL;
1759 ctxt->nbentities = 0;
1760 xmlInitNodeInfoSeq(&ctxt->node_seq);
1766 * @ctxt: an XML parser context
1769 * document in ctxt->myDoc is not freed.
1773 xmlFreeParserCtxt(xmlParserCtxtPtr ctxt)
1777 if (ctxt == NULL) return;
1779 while ((input = inputPop(ctxt)) != NULL) { /* Non consuming */
1782 if (ctxt->spaceTab != NULL) xmlFree(ctxt->spaceTab);
1783 if (ctxt->nameTab != NULL) xmlFree((xmlChar * *)ctxt->nameTab);
1784 if (ctxt->nodeTab != NULL) xmlFree(ctxt->nodeTab);
1785 if (ctxt->nodeInfoTab != NULL) xmlFree(ctxt->nodeInfoTab);
1786 if (ctxt->inputTab != NULL) xmlFree(ctxt->inputTab);
1787 if (ctxt->version != NULL) xmlFree((char *) ctxt->version);
1788 if (ctxt->encoding != NULL) xmlFree((char *) ctxt->encoding);
1789 if (ctxt->extSubURI != NULL) xmlFree((char *) ctxt->extSubURI);
1790 if (ctxt->extSubSystem != NULL) xmlFree((char *) ctxt->extSubSystem);
1792 if ((ctxt->sax != NULL) &&
1793 (ctxt->sax != (xmlSAXHandlerPtr) &xmlDefaultSAXHandler))
1795 if (ctxt->sax != NULL)
1797 xmlFree(ctxt->sax);
1798 if (ctxt->directory != NULL) xmlFree((char *) ctxt->directory);
1799 if (ctxt->vctxt.nodeTab != NULL) xmlFree(ctxt->vctxt.nodeTab);
1800 if (ctxt->atts != NULL) xmlFree((xmlChar * *)ctxt->atts);
1801 if (ctxt->dict != NULL) xmlDictFree(ctxt->dict);
1802 if (ctxt->nsTab != NULL) xmlFree((char *) ctxt->nsTab);
1803 if (ctxt->pushTab != NULL) xmlFree(ctxt->pushTab);
1804 if (ctxt->attallocs != NULL) xmlFree(ctxt->attallocs);
1805 if (ctxt->attsDefault != NULL)
1806 xmlHashFree(ctxt->attsDefault, (xmlHashDeallocator) xmlFree);
1807 if (ctxt->attsSpecial != NULL)
1808 xmlHashFree(ctxt->attsSpecial, NULL);
1809 if (ctxt->freeElems != NULL) {
1812 cur = ctxt->freeElems;
1819 if (ctxt->freeAttrs != NULL) {
1822 cur = ctxt->freeAttrs;
1832 if (ctxt->lastError.message != NULL)
1833 xmlFree(ctxt->lastError.message);
1834 if (ctxt->lastError.file != NULL)
1835 xmlFree(ctxt->lastError.file);
1836 if (ctxt->lastError.str1 != NULL)
1837 xmlFree(ctxt->lastError.str1);
1838 if (ctxt->lastError.str2 != NULL)
1839 xmlFree(ctxt->lastError.str2);
1840 if (ctxt->lastError.str3 != NULL)
1841 xmlFree(ctxt->lastError.str3);
1844 if (ctxt->catalogs != NULL)
1845 xmlCatalogFreeLocal(ctxt->catalogs);
1847 xmlFree(ctxt);
1861 xmlParserCtxtPtr ctxt;
1863 ctxt = (xmlParserCtxtPtr) xmlMalloc(sizeof(xmlParserCtxt));
1864 if (ctxt == NULL) {
1868 memset(ctxt, 0, sizeof(xmlParserCtxt));
1869 if (xmlInitParserCtxt(ctxt) < 0) {
1870 xmlFreeParserCtxt(ctxt);
1873 return(ctxt);
1884 * @ctxt: an XML parser context
1890 xmlClearParserCtxt(xmlParserCtxtPtr ctxt)
1892 if (ctxt==NULL)
1894 xmlClearNodeInfoSeq(&ctxt->node_seq);
1895 xmlCtxtReset(ctxt);
2003 * @ctxt: an XML parser context
2009 xmlParserAddNodeInfo(xmlParserCtxtPtr ctxt,
2014 if ((ctxt == NULL) || (info == NULL)) return;
2017 pos = xmlParserFindNodeInfoIndex(&ctxt->node_seq, (xmlNodePtr)
2020 if ((pos < ctxt->node_seq.length) &&
2021 (ctxt->node_seq.buffer != NULL) &&
2022 (ctxt->node_seq.buffer[pos].node == info->node)) {
2023 ctxt->node_seq.buffer[pos] = *info;
2028 if (ctxt->node_seq.length + 1 > ctxt->node_seq.maximum) {
2032 if (ctxt->node_seq.maximum == 0)
2033 ctxt->node_seq.maximum = 2;
2034 byte_size = (sizeof(*ctxt->node_seq.buffer) *
2035 (2 * ctxt->node_seq.maximum));
2037 if (ctxt->node_seq.buffer == NULL)
2041 (xmlParserNodeInfo *) xmlRealloc(ctxt->node_seq.buffer,
2045 xmlErrMemory(ctxt, "failed to allocate buffer\n");
2048 ctxt->node_seq.buffer = tmp_buffer;
2049 ctxt->node_seq.maximum *= 2;
2053 if (pos != ctxt->node_seq.length) {
2056 for (i = ctxt->node_seq.length; i > pos; i--)
2057 ctxt->node_seq.buffer[i] = ctxt->node_seq.buffer[i - 1];
2061 ctxt->node_seq.buffer[pos] = *info;
2062 ctxt->node_seq.length++;