| OLD | NEW |
| 1 /* | 1 /* |
| 2 * xpath.c: XML Path Language implementation | 2 * xpath.c: XML Path Language implementation |
| 3 * XPath is a language for addressing parts of an XML document, | 3 * XPath is a language for addressing parts of an XML document, |
| 4 * designed to be used by both XSLT and XPointer | 4 * designed to be used by both XSLT and XPointer |
| 5 *f | 5 *f |
| 6 * Reference: W3C Recommendation 16 November 1999 | 6 * Reference: W3C Recommendation 16 November 1999 |
| 7 * http://www.w3.org/TR/1999/REC-xpath-19991116 | 7 * http://www.w3.org/TR/1999/REC-xpath-19991116 |
| 8 * Public reference: | 8 * Public reference: |
| 9 * http://www.w3.org/TR/xpath | 9 * http://www.w3.org/TR/xpath |
| 10 * | 10 * |
| (...skipping 4350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4361 xmlXPathNewValueTree(xmlNodePtr val) { | 4361 xmlXPathNewValueTree(xmlNodePtr val) { |
| 4362 xmlXPathObjectPtr ret; | 4362 xmlXPathObjectPtr ret; |
| 4363 | 4363 |
| 4364 ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject)); | 4364 ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject)); |
| 4365 if (ret == NULL) { | 4365 if (ret == NULL) { |
| 4366 xmlXPathErrMemory(NULL, "creating result value tree\n"); | 4366 xmlXPathErrMemory(NULL, "creating result value tree\n"); |
| 4367 return(NULL); | 4367 return(NULL); |
| 4368 } | 4368 } |
| 4369 memset(ret, 0 , (size_t) sizeof(xmlXPathObject)); | 4369 memset(ret, 0 , (size_t) sizeof(xmlXPathObject)); |
| 4370 ret->type = XPATH_XSLT_TREE; | 4370 ret->type = XPATH_XSLT_TREE; |
| 4371 ret->boolval = 1; | 4371 ret->boolval = 0; |
| 4372 ret->user = (void *) val; | 4372 ret->user = (void *) val; |
| 4373 ret->nodesetval = xmlXPathNodeSetCreate(val); | 4373 ret->nodesetval = xmlXPathNodeSetCreate(val); |
| 4374 #ifdef XP_DEBUG_OBJ_USAGE | 4374 #ifdef XP_DEBUG_OBJ_USAGE |
| 4375 xmlXPathDebugObjUsageRequested(NULL, XPATH_XSLT_TREE); | 4375 xmlXPathDebugObjUsageRequested(NULL, XPATH_XSLT_TREE); |
| 4376 #endif | 4376 #endif |
| 4377 return(ret); | 4377 return(ret); |
| 4378 } | 4378 } |
| 4379 | 4379 |
| 4380 /** | 4380 /** |
| 4381 * xmlXPathNewNodeSetList: | 4381 * xmlXPathNewNodeSetList: |
| (...skipping 11011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15393 xmlXPathTranslateFunction); | 15393 xmlXPathTranslateFunction); |
| 15394 | 15394 |
| 15395 xmlXPathRegisterFuncNS(ctxt, (const xmlChar *)"escape-uri", | 15395 xmlXPathRegisterFuncNS(ctxt, (const xmlChar *)"escape-uri", |
| 15396 (const xmlChar *)"http://www.w3.org/2002/08/xquery-functions", | 15396 (const xmlChar *)"http://www.w3.org/2002/08/xquery-functions", |
| 15397 xmlXPathEscapeUriFunction); | 15397 xmlXPathEscapeUriFunction); |
| 15398 } | 15398 } |
| 15399 | 15399 |
| 15400 #endif /* LIBXML_XPATH_ENABLED */ | 15400 #endif /* LIBXML_XPATH_ENABLED */ |
| 15401 #define bottom_xpath | 15401 #define bottom_xpath |
| 15402 #include "elfgcchack.h" | 15402 #include "elfgcchack.h" |
| OLD | NEW |