From 3ff8a2c4b8d07823a622178647ce4bf79281311f Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Wed, 26 Jun 2024 01:08:48 +0200 Subject: [PATCH] parser: Deprecate xmlIsLetter --- include/libxml/parserInternals.h | 4 +--- parserInternals.c | 2 ++ python/generator.py | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/libxml/parserInternals.h b/include/libxml/parserInternals.h index 27c22696..00eccd5a 100644 --- a/include/libxml/parserInternals.h +++ b/include/libxml/parserInternals.h @@ -296,9 +296,7 @@ XMLPUBVAR const xmlChar xmlStringText[]; XMLPUBVAR const xmlChar xmlStringTextNoenc[]; XMLPUBVAR const xmlChar xmlStringComment[]; -/* - * Function to finish the work of the macros where needed. - */ +XML_DEPRECATED XMLPUBFUN int xmlIsLetter (int c); /** diff --git a/parserInternals.c b/parserInternals.c index 11b1c03f..7c7dd969 100644 --- a/parserInternals.c +++ b/parserInternals.c @@ -422,6 +422,8 @@ xmlFatalErr(xmlParserCtxtPtr ctxt, xmlParserErrors code, const char *info) * xmlIsLetter: * @c: an unicode character (int) * + * DEPRECATED: Internal function, don't use. + * * Check whether the character is allowed by the production * [84] Letter ::= BaseChar | Ideographic * diff --git a/python/generator.py b/python/generator.py index 530277a8..02052402 100755 --- a/python/generator.py +++ b/python/generator.py @@ -312,6 +312,7 @@ deprecated_funcs = { 'xmlInitializeDict': True, 'xmlIOFTPMatch': True, 'xmlIOHTTPMatch': True, + 'xmlIsLetter': True, 'xmlIsRef': True, 'xmlKeepBlanksDefault': True, 'xmlLineNumbersDefault': True,