| OLD | NEW |
| 1 /* | 1 /* |
| 2 * error.c: module displaying/handling XML parser errors | 2 * error.c: module displaying/handling XML parser errors |
| 3 * | 3 * |
| 4 * See Copyright for the status of this software. | 4 * See Copyright for the status of this software. |
| 5 * | 5 * |
| 6 * Daniel Veillard <daniel@veillard.com> | 6 * Daniel Veillard <daniel@veillard.com> |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #define IN_LIBXML | 9 #define IN_LIBXML |
| 10 #include "libxml.h" | 10 #include "libxml.h" |
| 11 | 11 |
| 12 #include <string.h> | 12 #include <string.h> |
| 13 #include <stdarg.h> | 13 #include <stdarg.h> |
| 14 #include <libxml/parser.h> | 14 #include <libxml/parser.h> |
| 15 #include <libxml/xmlerror.h> | 15 #include <libxml/xmlerror.h> |
| 16 #include <libxml/xmlmemory.h> | 16 #include <libxml/xmlmemory.h> |
| 17 #include <libxml/globals.h> | 17 #include <libxml/globals.h> |
| 18 | 18 |
| 19 void XMLCDECL xmlGenericErrorDefaultFunc (void *ctx ATTRIBUTE_UNUSED, | 19 void XMLCDECL xmlGenericErrorDefaultFunc (void *ctx ATTRIBUTE_UNUSED, |
| 20 const char *msg, | 20 const char *msg, |
| 21 » » » » ...); | 21 » » » » ...) LIBXML_ATTR_FORMAT(2,3); |
| 22 | 22 |
| 23 #define XML_GET_VAR_STR(msg, str) { \ | 23 #define XML_GET_VAR_STR(msg, str) { \ |
| 24 int size, prev_size = -1; \ | 24 int size, prev_size = -1; \ |
| 25 int chars; \ | 25 int chars; \ |
| 26 char *larger; \ | 26 char *larger; \ |
| 27 va_list ap; \ | 27 va_list ap; \ |
| 28 \ | 28 \ |
| 29 str = (char *) xmlMalloc(150); \ | 29 str = (char *) xmlMalloc(150); \ |
| 30 if (str != NULL) { \ | 30 if (str != NULL) { \ |
| 31 \ | 31 \ |
| (...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 989 to->file = file; | 989 to->file = file; |
| 990 to->str1 = str1; | 990 to->str1 = str1; |
| 991 to->str2 = str2; | 991 to->str2 = str2; |
| 992 to->str3 = str3; | 992 to->str3 = str3; |
| 993 | 993 |
| 994 return 0; | 994 return 0; |
| 995 } | 995 } |
| 996 | 996 |
| 997 #define bottom_error | 997 #define bottom_error |
| 998 #include "elfgcchack.h" | 998 #include "elfgcchack.h" |
| OLD | NEW |