29 lines
1.0 KiB
Diff
29 lines
1.0 KiB
Diff
From ee2a5b50e7d1940ba8745715b62ceb9efd3a96da Mon Sep 17 00:00:00 2001
|
|
From: Sebastian Pipping <sebastian@pipping.org>
|
|
Date: Tue, 8 Feb 2022 17:37:14 +0100
|
|
Subject: [PATCH] lib: Drop unused macro UTF8_GET_NAMING
|
|
|
|
---
|
|
lib/xmltok.c | 5 -----
|
|
1 file changed, 5 deletions(-)
|
|
|
|
diff --git a/lib/xmltok.c b/lib/xmltok.c
|
|
index a72200e..3bddf12 100644
|
|
--- a/lib/xmltok.c
|
|
+++ b/lib/xmltok.c
|
|
@@ -98,11 +98,6 @@
|
|
+ ((((byte)[1]) & 3) << 1) + ((((byte)[2]) >> 5) & 1)] \
|
|
& (1u << (((byte)[2]) & 0x1F)))
|
|
|
|
-#define UTF8_GET_NAMING(pages, p, n) \
|
|
- ((n) == 2 \
|
|
- ? UTF8_GET_NAMING2(pages, (const unsigned char *)(p)) \
|
|
- : ((n) == 3 ? UTF8_GET_NAMING3(pages, (const unsigned char *)(p)) : 0))
|
|
-
|
|
/* Detection of invalid UTF-8 sequences is based on Table 3.1B
|
|
of Unicode 3.2: http://www.unicode.org/unicode/reports/tr28/
|
|
with the additional restriction of not allowing the Unicode
|
|
--
|
|
1.8.3.1
|
|
|