Lines Matching refs:NULL

84 static xmlHashTablePtr xsltExtensionsHash = NULL;
85 static xmlHashTablePtr xsltFunctionsHash = NULL;
86 static xmlHashTablePtr xsltElementsHash = NULL;
87 static xmlHashTablePtr xsltTopLevelsHash = NULL;
88 static xmlHashTablePtr xsltModuleHash = NULL;
89 static xmlMutexPtr xsltExtMutex = NULL;
104 * Returns the newly allocated xsltExtDefPtr or NULL in case of error
112 if (cur == NULL) {
113 xsltTransformError(NULL, NULL, NULL,
115 return (NULL);
118 if (prefix != NULL)
120 if (URI != NULL)
134 if (extensiond == NULL)
136 if (extensiond->prefix != NULL)
138 if (extensiond->URI != NULL)
154 while (extensiond != NULL) {
170 * Returns the newly allocated xsltExtModulePtr or NULL in case of error
181 if (cur == NULL) {
182 xsltTransformError(NULL, NULL, NULL,
184 return (NULL);
202 if (ext == NULL)
214 * Returns the newly allocated xsltExtDataPtr or NULL in case of error
221 if (extModule == NULL)
222 return (NULL);
224 if (cur == NULL) {
225 xsltTransformError(NULL, NULL, NULL,
227 return (NULL);
243 if (ext == NULL)
255 * Returns the newly allocated xsltExtElementPtr or NULL in case of
264 if (transform == NULL)
265 return (NULL);
268 if (cur == NULL) {
269 xsltTransformError(NULL, NULL, NULL,
271 return (NULL);
287 if (ext == NULL)
312 * environment variable LIBXSLT_PLUGINS_PATH, or if NULL,
327 const xmlChar *ext_directory = NULL;
328 const xmlChar *protocol = NULL;
334 if (URI == NULL)
337 if (NULL == xsltModuleHash) {
339 if (xsltModuleHash == NULL)
346 if (xmlHashLookup(xsltModuleHash, URI) != NULL) {
354 if (protocol == NULL) {
359 if (ext_name == NULL) {
376 if (NULL == ext_directory) {
378 if (NULL == ext_directory)
411 if (NULL == m) {
426 vregfunc = NULL;
455 return (NULL == regfunc) ? -1 : 0;
481 if (style->nsDefs != NULL)
508 if ((style == NULL) || (URI == NULL))
520 while (def != NULL) {
526 while (def != NULL) {
533 if (ret == NULL)
548 if (xsltExtensionsHash != NULL) {
554 if (NULL == module) {
561 if (module != NULL) {
592 if ((ctxt == NULL) || (name == NULL) ||
593 (URI == NULL) || (function == NULL))
595 if (ctxt->xpathCtxt != NULL) {
598 if (ctxt->extFunctions == NULL)
600 if (ctxt->extFunctions == NULL)
624 if ((ctxt == NULL) || (name == NULL) ||
625 (URI == NULL) || (function == NULL))
627 if (ctxt->extElements == NULL)
629 if (ctxt->extElements == NULL)
644 if (ctxt->extElements != NULL)
645 xmlHashFree(ctxt->extElements, NULL);
646 if (ctxt->extFunctions != NULL)
647 xmlHashFree(ctxt->extFunctions, NULL);
660 * or NULL if such a module was not registered.
667 void *userData = NULL;
670 if ((style == NULL) || (URI == NULL))
671 return(NULL);
673 if (xsltExtensionsHash == NULL) {
678 return(NULL);
687 if (module == NULL) {
692 return (NULL);
697 if (style->extInfos == NULL) {
699 if (style->extInfos == NULL)
700 return (NULL);
705 if (module->styleInitFunc == NULL) {
724 if (dataContainer == NULL)
725 return (NULL);
730 xsltTransformError(NULL, style, NULL,
736 return (NULL);
753 * Returns the pointer or NULL if not present
758 xsltExtDataPtr dataContainer = NULL;
761 if ((style == NULL) || (URI == NULL) ||
762 (xsltExtensionsHash == NULL))
763 return (NULL);
772 while (tmpStyle->parent != NULL)
774 if (tmpStyle->extInfos != NULL) {
777 if (dataContainer != NULL) {
791 while (tmpStyle != NULL) {
792 if (tmpStyle->extInfos != NULL) {
795 if (dataContainer != NULL) {
806 if (dataContainer != NULL)
808 return(NULL);
820 * Returns the pointer or NULL if not present
826 xsltExtDataPtr dataContainer = NULL;
828 if ((style == NULL) || (URI == NULL) ||
829 (xsltExtensionsHash == NULL))
830 return (NULL);
832 if (style->extInfos != NULL) {
845 if (dataContainer != NULL)
847 return(NULL);
859 * Returns the pointer or NULL if not present
866 if ((ctxt == NULL) || (URI == NULL))
867 return (NULL);
868 if (ctxt->extInfos == NULL) {
870 if (ctxt->extInfos == NULL)
871 return (NULL);
872 data = NULL;
876 if (data == NULL) {
886 if (module == NULL) {
891 return (NULL);
893 if (module->initFunc == NULL)
894 return (NULL);
902 if (extData == NULL)
903 return (NULL);
906 if (data == NULL)
907 return (NULL);
909 xsltTransformError(ctxt, NULL, NULL,
915 return (NULL);
944 if ((styleData == NULL) || (ctxt == NULL) || (URI == NULL) ||
948 "xsltInitCtxtExt: NULL param or error\n");
953 if ((module == NULL) || (module->initFunc == NULL)) {
962 if (ctxtData != NULL) {
971 if (extData == NULL) {
978 if (ctxtData == NULL) {
983 if (ctxt->ctxt->extInfos == NULL)
985 if (ctxt->ctxt->extInfos == NULL) {
1020 if (ctxt == NULL)
1024 if (style == NULL)
1030 while (style != NULL) {
1031 if (style->extInfos != NULL) {
1060 if ((data == NULL) || (ctxt == NULL) || (URI == NULL))
1063 if ((module == NULL) || (module->shutdownFunc == NULL))
1082 if (ctxt == NULL)
1084 if (ctxt->extInfos == NULL)
1089 ctxt->extInfos = NULL;
1106 if ((data == NULL) || (style == NULL) || (URI == NULL))
1109 if ((module == NULL) || (module->styleShutdownFunc == NULL))
1135 if (style == NULL)
1137 if (style->extInfos == NULL)
1141 style->extInfos = NULL;
1147 * @URI: the namespace prefix (possibly NULL)
1161 if ((style == NULL) || (style->compCtxt == NULL) ||
1162 (XSLT_CCTXT(style)->inode == NULL) ||
1163 (XSLT_CCTXT(style)->inode->extElemNs == NULL))
1169 if (XSLT_CCTXT(style)->inode->extElemNs != NULL) {
1184 if ((style == NULL) || (style->nsDefs == NULL))
1186 if (URI == NULL)
1189 while (cur != NULL) {
1207 * @URI: the namespace URI (possibly NULL)
1222 if ((style == NULL) || (style->nsDefs == NULL))
1224 if (URI == NULL)
1227 while (cur != NULL) {
1257 if ((URI == NULL) || (initFunc == NULL))
1259 if (xsltExtensionsHash == NULL)
1262 if (xsltExtensionsHash == NULL)
1268 if (module != NULL) {
1278 if (module == NULL) {
1305 NULL, NULL);
1321 if (URI == NULL)
1323 if (xsltExtensionsHash == NULL)
1344 if (xsltExtensionsHash == NULL)
1351 xsltExtensionsHash = NULL;
1366 * Returns the XSLT transformation context or NULL in case of error.
1371 if ((ctxt == NULL) || (ctxt->context == NULL))
1372 return (NULL);
1390 if ((name == NULL) || (URI == NULL) || (function == NULL))
1393 if (xsltFunctionsHash == NULL)
1395 if (xsltFunctionsHash == NULL)
1401 XML_CAST_FPTR(function), NULL);
1415 * Returns the function if found, NULL otherwise.
1422 if ((xsltFunctionsHash == NULL) || (name == NULL) || (URI == NULL))
1423 return (NULL);
1432 if (NULL == ret) {
1460 if ((xsltFunctionsHash == NULL) || (name == NULL) || (URI == NULL))
1465 ret = xmlHashRemoveEntry2(xsltFunctionsHash, name, URI, NULL);
1482 xmlHashFree(xsltFunctionsHash, NULL);
1483 xsltFunctionsHash = NULL;
1506 if (cur == NULL) {
1507 xsltTransformError(NULL, style, NULL,
1509 return (NULL);
1559 xsltElemPreCompPtr comp = NULL;
1561 if ((style == NULL) || (inst == NULL) ||
1562 (inst->type != XML_ELEMENT_NODE) || (inst->ns == NULL))
1563 return (NULL);
1575 if (ext == NULL)
1576 return (NULL);
1578 if (ext->precomp != NULL) {
1581 * This will return a xsltElemPreComp structure or NULL.
1593 * this structure, then he'll return NULL;
1597 if (comp == NULL) {
1629 if ((name == NULL) || (URI == NULL) || (transform == NULL))
1632 if (xsltElementsHash == NULL)
1634 if (xsltElementsHash == NULL)
1640 if (ext == NULL) {
1660 * Looks up an extension element. @ctxt can be NULL to search only in
1663 * Returns the element callback or NULL if not found
1671 if ((name == NULL) || (URI == NULL))
1672 return (NULL);
1674 if ((ctxt != NULL) && (ctxt->extElements != NULL)) {
1676 if (ret != NULL) {
1693 * Returns the callback function if found, NULL otherwise.
1700 if ((xsltElementsHash == NULL) || (name == NULL) || (URI == NULL))
1701 return (NULL);
1713 if (NULL == ext) {
1724 if (ext == NULL)
1725 return (NULL);
1736 * Returns the callback function if found, NULL otherwise.
1744 if ((xsltElementsHash == NULL) || (name == NULL) || (URI == NULL))
1745 return (NULL);
1753 if (ext == NULL) {
1764 if (ext == NULL)
1765 return (NULL);
1783 if ((xsltElementsHash == NULL) || (name == NULL) || (URI == NULL))
1807 xsltElementsHash = NULL;
1826 if ((name == NULL) || (URI == NULL) || (function == NULL))
1829 if (xsltTopLevelsHash == NULL)
1831 if (xsltTopLevelsHash == NULL)
1837 XML_CAST_FPTR(function), NULL);
1851 * Returns the callback function if found, NULL otherwise.
1858 if ((xsltTopLevelsHash == NULL) || (name == NULL) || (URI == NULL))
1859 return (NULL);
1868 if (NULL == ret) {
1895 if ((xsltTopLevelsHash == NULL) || (name == NULL) || (URI == NULL))
1900 ret = xmlHashRemoveEntry2(xsltTopLevelsHash, name, URI, NULL);
1917 xmlHashFree(xsltTopLevelsHash, NULL);
1918 xsltTopLevelsHash = NULL;
1930 * returns a pointer to the hash table if found, else NULL
1944 if (style != NULL && style->extInfos != NULL) {
1946 if (data != NULL && data->extData != NULL)
1949 return NULL;
1964 static xmlChar *testData = NULL;
1965 static xmlChar *testStyleData = NULL;
1979 void *data = NULL;
1983 if (testData == NULL) {
1988 if (data == NULL) {
1989 xsltTransformError(tctxt, NULL, NULL,
1994 if (tctxt == NULL) {
1995 xsltTransformError(xsltXPathGetTransformContext(ctxt), NULL, NULL,
1999 if (data == NULL)
2001 if (data == NULL) {
2002 xsltTransformError(xsltXPathGetTransformContext(ctxt), NULL, NULL,
2007 xsltTransformError(xsltXPathGetTransformContext(ctxt), NULL, NULL,
2030 if (style == NULL) {
2031 xsltTransformError(NULL, NULL, inst,
2033 return (NULL);
2035 if (testStyleData == NULL) {
2040 if (testStyleData == NULL) {
2041 xsltTransformError(NULL, style, inst,
2043 if (style != NULL)
2045 return (NULL);
2048 if (inst == NULL) {
2049 xsltTransformError(NULL, style, inst,
2051 if (style != NULL)
2053 return (NULL);
2075 if (testData == NULL) {
2080 if (testData == NULL) {
2081 xsltTransformError(ctxt, NULL, inst,
2086 if (ctxt == NULL) {
2087 xsltTransformError(ctxt, NULL, inst,
2091 if (node == NULL) {
2092 xsltTransformError(ctxt, NULL, inst,
2096 if (inst == NULL) {
2097 xsltTransformError(ctxt, NULL, inst,
2101 if (ctxt->insert == NULL) {
2102 xsltTransformError(ctxt, NULL, inst,
2123 if (testStyleData == NULL) {
2128 if (testStyleData == NULL) {
2129 xsltTransformError(ctxt, NULL, NULL,
2131 return (NULL);
2134 if (testData != NULL) {
2135 xsltTransformError(ctxt, NULL, NULL,
2137 return (NULL);
2158 if (testData == NULL) {
2159 xsltTransformError(ctxt, NULL, NULL,
2164 xsltTransformError(ctxt, NULL, NULL,
2167 testData = NULL;
2185 if (testStyleData != NULL) {
2186 xsltTransformError(NULL, NULL, NULL,
2188 return (NULL);
2209 if (testStyleData == NULL) {
2215 xsltTransformError(NULL, NULL, NULL,
2218 testStyleData = NULL;
2263 if (xsltExtMutex == NULL) {
2283 if (NULL != xsltModuleHash) {
2285 xmlHashFree(xsltModuleHash, NULL);
2286 xsltModuleHash = NULL;
2291 xsltExtMutex = NULL;
2319 * @output: the FILE * for the output, if NULL stdout is used
2326 if (output == NULL)