diff options
author | Dong-hee Na <donghee.na@python.org> | 2022-02-23 01:40:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-23 01:40:30 (GMT) |
commit | 1935e1cc284942bec8006287c939e295e1a7bf13 (patch) | |
tree | bd3eaf1938f697cbb5eb87b86ef3e2340af1070b /Modules/expat/xmltok.c | |
parent | 9b12b1b803d7b73640ab637a74a6f35f3fe9db21 (diff) | |
download | cpython-1935e1cc284942bec8006287c939e295e1a7bf13.zip cpython-1935e1cc284942bec8006287c939e295e1a7bf13.tar.gz cpython-1935e1cc284942bec8006287c939e295e1a7bf13.tar.bz2 |
bpo-46794: Bump up the libexpat version into 2.4.6 (GH-31487)
Diffstat (limited to 'Modules/expat/xmltok.c')
-rw-r--r-- | Modules/expat/xmltok.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/Modules/expat/xmltok.c b/Modules/expat/xmltok.c index 502ca1a..c659983 100644 --- a/Modules/expat/xmltok.c +++ b/Modules/expat/xmltok.c @@ -11,8 +11,8 @@ Copyright (c) 2001-2003 Fred L. Drake, Jr. <fdrake@users.sourceforge.net> Copyright (c) 2002 Greg Stein <gstein@users.sourceforge.net> Copyright (c) 2002-2016 Karl Waclawek <karl@waclawek.net> - Copyright (c) 2005-2009 Steven Solie <ssolie@users.sourceforge.net> - Copyright (c) 2016-2021 Sebastian Pipping <sebastian@pipping.org> + Copyright (c) 2005-2009 Steven Solie <steven@solie.ca> + Copyright (c) 2016-2022 Sebastian Pipping <sebastian@pipping.org> Copyright (c) 2016 Pascal Cuoq <cuoq@trust-in-soft.com> Copyright (c) 2016 Don Lewis <truckman@apache.org> Copyright (c) 2017 Rhodri James <rhodri@wildebeest.org.uk> @@ -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 |