mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-23 01:52:48 +03:00
doc: Small fixes
This commit is contained in:
18
error.c
18
error.c
@@ -241,13 +241,15 @@ xmlGenericErrorDefaultFunc(void *ctx ATTRIBUTE_UNUSED, const char *msg, ...) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the thread-local "generic" handler and context for error
|
* Set the thread-local "generic" handler and context for error
|
||||||
* messages. The generic error handler will only receive fragments
|
* messages.
|
||||||
* of error messages which should be concatenated or printed to a
|
|
||||||
* stream.
|
|
||||||
*
|
*
|
||||||
* @deprecated See #xmlSetStructuredErrorFunc for alternatives.
|
* @deprecated See #xmlSetStructuredErrorFunc for alternatives.
|
||||||
*
|
*
|
||||||
* If handler is NULL, use the built-in default handler which prints
|
* The generic error handler will only receive fragments of
|
||||||
|
* error messages which should be concatenated or printed to a
|
||||||
|
* stream.
|
||||||
|
*
|
||||||
|
* If `handler` is NULL, use the built-in default handler which prints
|
||||||
* to stderr.
|
* to stderr.
|
||||||
*
|
*
|
||||||
* Since this is a thread-local setting, it's a good idea to reset
|
* Since this is a thread-local setting, it's a good idea to reset
|
||||||
@@ -272,10 +274,13 @@ xmlSetGenericErrorFunc(void *ctx, xmlGenericErrorFunc handler) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* It's recommended to use the per-context error handlers instead:
|
* Set the thread-local "structured" handler and context for error
|
||||||
|
* messages.
|
||||||
*
|
*
|
||||||
* @deprecated Use a per-context error handler.
|
* @deprecated Use a per-context error handler.
|
||||||
*
|
*
|
||||||
|
* It's recommended to use the per-context error handlers instead:
|
||||||
|
*
|
||||||
* - #xmlCtxtSetErrorHandler (since 2.13.0)
|
* - #xmlCtxtSetErrorHandler (since 2.13.0)
|
||||||
* - #xmlTextReaderSetStructuredErrorHandler
|
* - #xmlTextReaderSetStructuredErrorHandler
|
||||||
* - #xmlXPathSetErrorHandler (since 2.13.0)
|
* - #xmlXPathSetErrorHandler (since 2.13.0)
|
||||||
@@ -285,8 +290,7 @@ xmlSetGenericErrorFunc(void *ctx, xmlGenericErrorFunc handler) {
|
|||||||
* - #xmlRelaxNGSetParserStructuredErrors
|
* - #xmlRelaxNGSetParserStructuredErrors
|
||||||
* - #xmlRelaxNGSetValidStructuredErrors
|
* - #xmlRelaxNGSetValidStructuredErrors
|
||||||
*
|
*
|
||||||
* Set the thread-local "structured" handler and context for error
|
* If `handler` is NULL, the error handler is deactivated.
|
||||||
* messages. If handler is NULL, the error handler is deactivated.
|
|
||||||
*
|
*
|
||||||
* The structured error handler takes precedence over "generic"
|
* The structured error handler takes precedence over "generic"
|
||||||
* handlers, even per-context generic handlers.
|
* handlers, even per-context generic handlers.
|
||||||
|
@@ -493,7 +493,7 @@ xmlGcMemSetup(xmlFreeFunc freeFunc, xmlMallocFunc mallocFunc,
|
|||||||
* The mallocAtomicFunc is specialized for atomic block
|
* The mallocAtomicFunc is specialized for atomic block
|
||||||
* allocations (i.e. of areas useful for garbage collected memory allocators
|
* allocations (i.e. of areas useful for garbage collected memory allocators
|
||||||
*
|
*
|
||||||
* @deprecated #xmlMemGet.
|
* @deprecated Use #xmlMemGet.
|
||||||
*
|
*
|
||||||
* @param freeFunc place to save the free() function in use
|
* @param freeFunc place to save the free() function in use
|
||||||
* @param mallocFunc place to save the malloc() function in use
|
* @param mallocFunc place to save the malloc() function in use
|
||||||
|
Reference in New Issue
Block a user