diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-10-28 22:47:26 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-10-28 22:47:26 (GMT) |
commit | 0a6e2c59d362659001adfb232537f9af5fdb256c (patch) | |
tree | c717c5dd0879917f14ee969c80aaa0b33f36126e /Modules | |
parent | 11bdf91a5f408a447c4c03db820e437d250e7999 (diff) | |
download | cpython-0a6e2c59d362659001adfb232537f9af5fdb256c.zip cpython-0a6e2c59d362659001adfb232537f9af5fdb256c.tar.gz cpython-0a6e2c59d362659001adfb232537f9af5fdb256c.tar.bz2 |
CJK codecs: remove unused TRYMAP_ENC_MPLANE macro
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/cjkcodecs/cjkcodecs.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Modules/cjkcodecs/cjkcodecs.h b/Modules/cjkcodecs/cjkcodecs.h index a11fa5b..ea234db 100644 --- a/Modules/cjkcodecs/cjkcodecs.h +++ b/Modules/cjkcodecs/cjkcodecs.h @@ -185,16 +185,6 @@ static const struct dbcs_map *mapping_list; #define TRYMAP_DEC(charset, assi, c1, c2) \ _TRYMAP_DEC(&charset##_decmap[c1], assi, c2) -#define _TRYMAP_ENC_MPLANE(m, assplane, asshi, asslo, val) \ - ((m)->map != NULL && (val) >= (m)->bottom && \ - (val)<= (m)->top && \ - ((assplane) = (m)->map[((val) - (m)->bottom)*3]) != 0 && \ - (((asshi) = (m)->map[((val) - (m)->bottom)*3 + 1]), 1) && \ - (((asslo) = (m)->map[((val) - (m)->bottom)*3 + 2]), 1)) -#define TRYMAP_ENC_MPLANE(charset, assplane, asshi, asslo, uni) \ - if _TRYMAP_ENC_MPLANE(&charset##_encmap[(uni) >> 8], \ - assplane, asshi, asslo, (uni) & 0xff) - #define BEGIN_MAPPINGS_LIST static const struct dbcs_map _mapping_list[] = { #define MAPPING_ENCONLY(enc) {#enc, (void*)enc##_encmap, NULL}, #define MAPPING_DECONLY(enc) {#enc, NULL, (void*)enc##_decmap}, |