Home | History | Annotate | Download | only in libxml2

Lines Matching refs:incTab

69     xmlXIncludeRefPtr *incTab; /* array of included references */
248 ctxt->incTab = (xmlXIncludeRefPtr *) xmlMalloc(ctxt->incMax *
249 sizeof(ctxt->incTab[0]));
250 if (ctxt->incTab == NULL) {
258 ctxt->incTab = (xmlXIncludeRefPtr *) xmlRealloc(ctxt->incTab,
259 ctxt->incMax * sizeof(ctxt->incTab[0]));
260 if (ctxt->incTab == NULL) {
266 ctxt->incTab[ctxt->incNr++] = ret;
298 ret->incTab = NULL;
390 if (ctxt->incTab[i] != NULL)
391 xmlXIncludeFreeRef(ctxt->incTab[i]);
399 if (ctxt->incTab != NULL)
400 xmlFree(ctxt->incTab);
693 newctxt->incTab = (xmlXIncludeRefPtr *) xmlMalloc(newctxt->incMax *
694 sizeof(newctxt->incTab[0]));
695 if (newctxt->incTab == NULL) {
717 newctxt->incTab[i] = ctxt->incTab[i];
718 newctxt->incTab[i]->count++; /* prevent the recursion from
728 newctxt->incTab[i]->count--;
729 newctxt->incTab[i] = NULL;
1410 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1419 if ((ctxt->incTab != NULL) && (ctxt->incTab[nr] != NULL) &&
1420 (ctxt->incTab[nr]->fragment != NULL)) {
1422 fragment = xmlStrdup(ctxt->incTab[nr]->fragment);
1427 if (ctxt->incTab != NULL)
1428 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1454 if ((xmlStrEqual(URL, ctxt->incTab[i]->URI)) &&
1455 (ctxt->incTab[i]->doc != NULL)) {
1456 doc = ctxt->incTab[i]->doc;
1492 ctxt->incTab[nr]->doc = doc;
1504 if (xmlStrEqual(URL, ctxt->incTab[i]->URI)) {
1505 ctxt->incTab[nr]->count++;
1542 ctxt->incTab[nr]->inc = xmlCopyNodeList(ctxt->doc->children);
1544 ctxt->incTab[nr]->inc = xmlXIncludeCopyNodeList(ctxt, ctxt->doc,
1559 xptrctxt = xmlXPtrNewContext(ctxt->doc, ctxt->incTab[nr]->ref,
1565 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1574 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1591 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1633 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1640 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1655 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1666 ctxt->incTab[nr]->xptr = xptr;
1667 ctxt->incTab[nr]->inc = NULL;
1669 ctxt->incTab[nr]->inc =
1692 base = xmlGetNsProp(ctxt->incTab[nr]->ref, BAD_CAST "base",
1701 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1713 node = ctxt->incTab[nr]->inc;
1743 ctxt->incTab[nr]->ref,
1762 if ((nr < ctxt->incNr) && (ctxt->incTab[nr]->doc != NULL) &&
1763 (ctxt->incTab[nr]->count <= 1)) {
1765 printf("freeing %s\n", ctxt->incTab[nr]->doc->URL);
1767 xmlFreeDoc(ctxt->incTab[nr]->doc);
1768 ctxt->incTab[nr]->doc = NULL;
1799 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref, XML_XINCLUDE_HREF_URI,
1804 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref, XML_XINCLUDE_TEXT_FRAGMENT,
1813 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref, XML_XINCLUDE_HREF_URI,
1823 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1842 if ((ctxt->incTab[nr] != NULL) && (ctxt->incTab[nr]->ref != NULL)) {
1843 encoding = xmlGetProp(ctxt->incTab[nr]->ref, XINCLUDE_PARSE_ENCODING);
1854 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1889 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1909 ctxt->incTab[nr]->inc = node;
1950 ctxt->incTab[nr]->inc = xmlDocCopyNodeList(ctxt->doc,
1953 ctxt->incTab[nr]->inc = NULL;
1954 ctxt->incTab[nr]->emptyFb = 1; /* flag empty callback */
2005 cur = ctxt->incTab[nr]->ref;
2025 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
2060 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
2118 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
2155 cur = ctxt->incTab[nr]->ref;
2162 if ((ctxt->incTab[nr]->inc == NULL) &&
2163 (ctxt->incTab[nr]->xptr != NULL)) {
2164 ctxt->incTab[nr]->inc =
2166 ctxt->incTab[nr]->xptr);
2167 xmlXPathFreeObject(ctxt->incTab[nr]->xptr);
2168 ctxt->incTab[nr]->xptr = NULL;
2170 list = ctxt->incTab[nr]->inc;
2171 ctxt->incTab[nr]->inc = NULL;
2187 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
2215 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
2399 if ((ctxt->incTab[i]->inc != NULL) ||
2400 (ctxt->incTab[i]->xptr != NULL) ||
2401 (ctxt->incTab[i]->emptyFb != 0)) /* (empty fallback) */