]> git.proxmox.com Git - mirror_edk2.git/blame - AppPkg/Applications/Python/Python-2.7.10/Modules/cjkcodecs/emu_jisx0213_2000.h
EmbeddedPkg: Extend NvVarStoreFormattedLib LIBRARY_CLASS
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.10 / Modules / cjkcodecs / emu_jisx0213_2000.h
CommitLineData
7eb75bcc
DM
1/* These routines may be quite inefficient, but it's used only to emulate old\r
2 * standards. */\r
3\r
4#ifndef EMULATE_JISX0213_2000_ENCODE_INVALID\r
5#define EMULATE_JISX0213_2000_ENCODE_INVALID 1\r
6#endif\r
7\r
8#define EMULATE_JISX0213_2000_ENCODE_BMP(assi, c) \\r
9 if (config == (void *)2000 && ( \\r
10 (c) == 0x9B1C || (c) == 0x4FF1 || \\r
11 (c) == 0x525D || (c) == 0x541E || \\r
12 (c) == 0x5653 || (c) == 0x59F8 || \\r
13 (c) == 0x5C5B || (c) == 0x5E77 || \\r
14 (c) == 0x7626 || (c) == 0x7E6B)) \\r
15 return EMULATE_JISX0213_2000_ENCODE_INVALID; \\r
16 else if (config == (void *)2000 && (c) == 0x9B1D) \\r
17 (assi) = 0x8000 | 0x7d3b; \\r
18\r
19#define EMULATE_JISX0213_2000_ENCODE_EMP(assi, c) \\r
20 if (config == (void *)2000 && (c) == 0x20B9F) \\r
21 return EMULATE_JISX0213_2000_ENCODE_INVALID;\r
22\r
23#ifndef EMULATE_JISX0213_2000_DECODE_INVALID\r
24#define EMULATE_JISX0213_2000_DECODE_INVALID 2\r
25#endif\r
26\r
27#define EMULATE_JISX0213_2000_DECODE_PLANE1(assi, c1, c2) \\r
28 if (config == (void *)2000 && \\r
29 (((c1) == 0x2E && (c2) == 0x21) || \\r
30 ((c1) == 0x2F && (c2) == 0x7E) || \\r
31 ((c1) == 0x4F && (c2) == 0x54) || \\r
32 ((c1) == 0x4F && (c2) == 0x7E) || \\r
33 ((c1) == 0x74 && (c2) == 0x27) || \\r
34 ((c1) == 0x7E && (c2) == 0x7A) || \\r
35 ((c1) == 0x7E && (c2) == 0x7B) || \\r
36 ((c1) == 0x7E && (c2) == 0x7C) || \\r
37 ((c1) == 0x7E && (c2) == 0x7D) || \\r
38 ((c1) == 0x7E && (c2) == 0x7E))) \\r
39 return EMULATE_JISX0213_2000_DECODE_INVALID;\r
40\r
41#define EMULATE_JISX0213_2000_DECODE_PLANE2(assi, c1, c2) \\r
42 if (config == (void *)2000 && (c1) == 0x7D && (c2) == 0x3B) \\r
43 (assi) = 0x9B1D;\r