1
0
mirror of https://github.com/GNOME/libxml2.git synced 2025-10-14 02:58:39 +08:00

doc: Small fixes

This commit is contained in:
Nick Wellnhofer
2025-06-03 00:17:03 +02:00
parent 0ab5d7c557
commit 3d71ab4fa6
2 changed files with 12 additions and 8 deletions

18
error.c
View File

@@ -241,13 +241,15 @@ xmlGenericErrorDefaultFunc(void *ctx ATTRIBUTE_UNUSED, const char *msg, ...) {
/**
* Set the thread-local "generic" handler and context for error
* messages. The generic error handler will only receive fragments
* of error messages which should be concatenated or printed to a
* stream.
* messages.
*
* @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.
*
* 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.
*
* It's recommended to use the per-context error handlers instead:
*
* - #xmlCtxtSetErrorHandler (since 2.13.0)
* - #xmlTextReaderSetStructuredErrorHandler
* - #xmlXPathSetErrorHandler (since 2.13.0)
@@ -285,8 +290,7 @@ xmlSetGenericErrorFunc(void *ctx, xmlGenericErrorFunc handler) {
* - #xmlRelaxNGSetParserStructuredErrors
* - #xmlRelaxNGSetValidStructuredErrors
*
* Set the thread-local "structured" handler and context for error
* messages. If handler is NULL, the error handler is deactivated.
* If `handler` is NULL, the error handler is deactivated.
*
* The structured error handler takes precedence over "generic"
* handlers, even per-context generic handlers.

View File

@@ -493,7 +493,7 @@ xmlGcMemSetup(xmlFreeFunc freeFunc, xmlMallocFunc mallocFunc,
* The mallocAtomicFunc is specialized for atomic block
* 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 mallocFunc place to save the malloc() function in use