Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: third_party/libxml/src/xpath.c

Issue 2797923004: Improve XML serialization, URI parsing, and XPath node set processing. (Closed)
Patch Set: Rebase. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/libxml/src/valid.c ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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"
OLDNEW
« no previous file with comments | « third_party/libxml/src/valid.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698