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;
1416 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1425 if ((ctxt->incTab != NULL) && (ctxt->incTab[nr] != NULL) &&
1426 (ctxt->incTab[nr]->fragment != NULL)) {
1428 fragment = xmlStrdup(ctxt->incTab[nr]->fragment);
1433 if (ctxt->incTab != NULL)
1434 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1460 if ((xmlStrEqual(URL, ctxt->incTab[i]->URI)) &&
1461 (ctxt->incTab[i]->doc != NULL)) {
1462 doc = ctxt->incTab[i]->doc;
1498 ctxt->incTab[nr]->doc = doc;
1510 if (xmlStrEqual(URL, ctxt->incTab[i]->URI)) {
1511 ctxt->incTab[nr]->count++;
1548 ctxt->incTab[nr]->inc = xmlCopyNodeList(ctxt->doc->children);
1550 ctxt->incTab[nr]->inc = xmlXIncludeCopyNodeList(ctxt, ctxt->doc,
1565 xptrctxt = xmlXPtrNewContext(ctxt->doc, ctxt->incTab[nr]->ref,
1571 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1580 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1597 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1639 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1646 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1661 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1672 ctxt->incTab[nr]->xptr = xptr;
1673 ctxt->incTab[nr]->inc = NULL;
1675 ctxt->incTab[nr]->inc =
1698 base = xmlGetNsProp(ctxt->incTab[nr]->ref, BAD_CAST "base",
1707 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1719 node = ctxt->incTab[nr]->inc;
1749 ctxt->incTab[nr]->ref,
1768 if ((nr < ctxt->incNr) && (ctxt->incTab[nr]->doc != NULL) &&
1769 (ctxt->incTab[nr]->count <= 1)) {
1771 printf("freeing %s\n", ctxt->incTab[nr]->doc->URL);
1773 xmlFreeDoc(ctxt->incTab[nr]->doc);
1774 ctxt->incTab[nr]->doc = NULL;
1805 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref, XML_XINCLUDE_HREF_URI,
1810 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref, XML_XINCLUDE_TEXT_FRAGMENT,
1819 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref, XML_XINCLUDE_HREF_URI,
1829 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1848 if ((ctxt->incTab[nr] != NULL) && (ctxt->incTab[nr]->ref != NULL)) {
1849 encoding = xmlGetProp(ctxt->incTab[nr]->ref, XINCLUDE_PARSE_ENCODING);
1860 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1895 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
1915 ctxt->incTab[nr]->inc = node;
1956 ctxt->incTab[nr]->inc = xmlDocCopyNodeList(ctxt->doc,
1959 ctxt->incTab[nr]->inc = NULL;
1960 ctxt->incTab[nr]->emptyFb = 1; /* flag empty callback */
2011 cur = ctxt->incTab[nr]->ref;
2031 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
2066 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
2124 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
2161 cur = ctxt->incTab[nr]->ref;
2168 if ((ctxt->incTab[nr]->inc == NULL) &&
2169 (ctxt->incTab[nr]->xptr != NULL)) {
2170 ctxt->incTab[nr]->inc =
2172 ctxt->incTab[nr]->xptr);
2173 xmlXPathFreeObject(ctxt->incTab[nr]->xptr);
2174 ctxt->incTab[nr]->xptr = NULL;
2176 list = ctxt->incTab[nr]->inc;
2177 ctxt->incTab[nr]->inc = NULL;
2193 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
2221 xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
2405 if ((ctxt->incTab[i]->inc != NULL) ||
2406 (ctxt->incTab[i]->xptr != NULL) ||
2407 (ctxt->incTab[i]->emptyFb != 0)) /* (empty fallback) */