* __xmlRaiseError: * @schannel: the structured callback channel * @channel: the old callback channel * @data: the callback data * @ctx: the parser context or NULL * @nod: the node or NULL * @domain: the domain for the error * @code: the code for the error * @level: the xmlErrorLevel for the error * @file: the file source of the error (or NULL) * @line: the line of the error or 0 if N/A
| 772 | * Returns 0 on success, -1 if a memory allocation failed. |
| 773 | */ |
| 774 | int |
| 775 | __xmlRaiseError(xmlStructuredErrorFunc schannel, |
| 776 | xmlGenericErrorFunc channel, void *data, void *ctx, |
| 777 | xmlNode *node, int domain, int code, xmlErrorLevel level, |
| 778 | const char *file, int line, const char *str1, |
| 779 | const char *str2, const char *str3, int int1, int col, |
| 780 | const char *msg, ...) |
| 781 | { |
| 782 | va_list ap; |
| 783 | int res; |
| 784 | |
| 785 | va_start(ap, msg); |
| 786 | res = xmlVRaiseError(schannel, channel, data, ctx, node, domain, code, |
| 787 | level, file, line, str1, str2, str3, int1, col, msg, |
| 788 | ap); |
| 789 | va_end(ap); |
| 790 | |
| 791 | return(res); |
| 792 | } |
| 793 | |
| 794 | static void |
| 795 | xmlVFormatLegacyError(void *ctx, const char *level, |
no test coverage detected