OLD | NEW |
1 /* | 1 /* |
2 * xpointer.c : Code to handle XML Pointer | 2 * xpointer.c : Code to handle XML Pointer |
3 * | 3 * |
4 * Base implementation was made accordingly to | 4 * Base implementation was made accordingly to |
5 * W3C Candidate Recommendation 7 June 2000 | 5 * W3C Candidate Recommendation 7 June 2000 |
6 * http://www.w3.org/TR/2000/CR-xptr-20000607 | 6 * http://www.w3.org/TR/2000/CR-xptr-20000607 |
7 * | 7 * |
8 * Added support for the element() scheme described in: | 8 * Added support for the element() scheme described in: |
9 * W3C Proposed Recommendation 13 November 2002 | 9 * W3C Proposed Recommendation 13 November 2002 |
10 * http://www.w3.org/TR/2002/PR-xptr-element-20021113/ | 10 * http://www.w3.org/TR/2002/PR-xptr-element-20021113/ |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 "Memory allocation failed : %s\n", extra); | 78 "Memory allocation failed : %s\n", extra); |
79 } | 79 } |
80 | 80 |
81 /** | 81 /** |
82 * xmlXPtrErr: | 82 * xmlXPtrErr: |
83 * @ctxt: an XPTR evaluation context | 83 * @ctxt: an XPTR evaluation context |
84 * @extra: extra informations | 84 * @extra: extra informations |
85 * | 85 * |
86 * Handle a redefinition of attribute error | 86 * Handle a redefinition of attribute error |
87 */ | 87 */ |
88 static void | 88 static void LIBXML_ATTR_FORMAT(3,0) |
89 xmlXPtrErr(xmlXPathParserContextPtr ctxt, int error, | 89 xmlXPtrErr(xmlXPathParserContextPtr ctxt, int error, |
90 const char * msg, const xmlChar *extra) | 90 const char * msg, const xmlChar *extra) |
91 { | 91 { |
92 if (ctxt != NULL) | 92 if (ctxt != NULL) |
93 ctxt->error = error; | 93 ctxt->error = error; |
94 if ((ctxt == NULL) || (ctxt->context == NULL)) { | 94 if ((ctxt == NULL) || (ctxt->context == NULL)) { |
95 __xmlRaiseError(NULL, NULL, NULL, | 95 __xmlRaiseError(NULL, NULL, NULL, |
96 NULL, NULL, XML_FROM_XPOINTER, error, | 96 NULL, NULL, XML_FROM_XPOINTER, error, |
97 XML_ERR_ERROR, NULL, 0, | 97 XML_ERR_ERROR, NULL, 0, |
98 (const char *) extra, NULL, NULL, 0, 0, | 98 (const char *) extra, NULL, NULL, 0, 0, |
(...skipping 2923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3022 } | 3022 } |
3023 | 3023 |
3024 NEXT; | 3024 NEXT; |
3025 SKIP_BLANKS; | 3025 SKIP_BLANKS; |
3026 } | 3026 } |
3027 | 3027 |
3028 #define bottom_xpointer | 3028 #define bottom_xpointer |
3029 #include "elfgcchack.h" | 3029 #include "elfgcchack.h" |
3030 #endif | 3030 #endif |
3031 | 3031 |
OLD | NEW |