1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

Set up the fonctions comment block, boring but useful, Daniel.

This commit is contained in:
Daniel Veillard
1998-10-20 06:14:16 +00:00
parent 891e404a09
commit 97b587771b
5 changed files with 622 additions and 193 deletions

33
error.c
View File

@ -1,15 +1,25 @@
/*
* error.c: module displaying errors
* error.c: module displaying/handling XML parser errors
*
* Daniel Veillard <Daniel.Veillard@w3.org>
*/
#include <stdio.h>
#include <stdarg.h>
#include "parser.h"
/*
* Display and format error messages.
/**
* xmlParserError:
* @ctxt: an XML parser context
* @msg: the message to display/transmit
* @...: extra parameters for the message display
*
* Display and format an error messages, gives file, line, position and
* extra parameters.
*/
void xmlParserError(xmlParserCtxtPtr ctxt, const char *msg, ...) {
void
xmlParserError(xmlParserCtxtPtr ctxt, const char *msg, ...)
{
const CHAR *cur, *base;
va_list args;
int n;
@ -52,10 +62,18 @@ void xmlParserError(xmlParserCtxtPtr ctxt, const char *msg, ...) {
fprintf(stderr,"^\n");
}
/*
* Display and format error messages.
/**
* xmlParserWarning:
* @ctxt: an XML parser context
* @msg: the message to display/transmit
* @...: extra parameters for the message display
*
* Display and format a warning messages, gives file, line, position and
* extra parameters.
*/
void xmlParserWarning(xmlParserCtxtPtr ctxt, const char *msg, ...) {
void
xmlParserWarning(xmlParserCtxtPtr ctxt, const char *msg, ...)
{
const CHAR *cur, *base;
va_list args;
int n;
@ -91,3 +109,4 @@ void xmlParserWarning(xmlParserCtxtPtr ctxt, const char *msg, ...) {
}
fprintf(stderr,"^\n");
}