~ubuntu-branches/ubuntu/maverick/python2.7/maverick-proposed

« back to all changes in this revision

Viewing changes to Modules/cjkcodecs/emu_jisx0213_2000.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-06-29 00:57:00 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20100629005700-fz6zs37e3uv26o82
Tags: 2.7~rc2-1
* Python 2.7 release candidate 2.
* Update to 20100628, taken from the trunk.
* Merge packaging changes from python2.6 (2.6.5+20100628-1).

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
#define EMULATE_JISX0213_2000_ENCODE_INVALID 1
6
6
#endif
7
7
 
8
 
#define EMULATE_JISX0213_2000_ENCODE_BMP(assi, c)                       \
9
 
        if (config == (void *)2000 && (                                 \
10
 
                        (c) == 0x9B1C || (c) == 0x4FF1 ||               \
11
 
                        (c) == 0x525D || (c) == 0x541E ||               \
12
 
                        (c) == 0x5653 || (c) == 0x59F8 ||               \
13
 
                        (c) == 0x5C5B || (c) == 0x5E77 ||               \
14
 
                        (c) == 0x7626 || (c) == 0x7E6B))                \
15
 
                return EMULATE_JISX0213_2000_ENCODE_INVALID;            \
16
 
        else if (config == (void *)2000 && (c) == 0x9B1D)               \
17
 
                (assi) = 0x8000 | 0x7d3b;                               \
 
8
#define EMULATE_JISX0213_2000_ENCODE_BMP(assi, c)                       \
 
9
    if (config == (void *)2000 && (                                     \
 
10
                    (c) == 0x9B1C || (c) == 0x4FF1 ||                   \
 
11
                    (c) == 0x525D || (c) == 0x541E ||                   \
 
12
                    (c) == 0x5653 || (c) == 0x59F8 ||                   \
 
13
                    (c) == 0x5C5B || (c) == 0x5E77 ||                   \
 
14
                    (c) == 0x7626 || (c) == 0x7E6B))                    \
 
15
        return EMULATE_JISX0213_2000_ENCODE_INVALID;                    \
 
16
    else if (config == (void *)2000 && (c) == 0x9B1D)                   \
 
17
        (assi) = 0x8000 | 0x7d3b;                                       \
18
18
 
19
 
#define EMULATE_JISX0213_2000_ENCODE_EMP(assi, c)                       \
20
 
        if (config == (void *)2000 && (c) == 0x20B9F)                   \
21
 
                return EMULATE_JISX0213_2000_ENCODE_INVALID;
 
19
#define EMULATE_JISX0213_2000_ENCODE_EMP(assi, c)                       \
 
20
    if (config == (void *)2000 && (c) == 0x20B9F)                       \
 
21
        return EMULATE_JISX0213_2000_ENCODE_INVALID;
22
22
 
23
23
#ifndef EMULATE_JISX0213_2000_DECODE_INVALID
24
24
#define EMULATE_JISX0213_2000_DECODE_INVALID 2
25
25
#endif
26
26
 
27
 
#define EMULATE_JISX0213_2000_DECODE_PLANE1(assi, c1, c2)               \
28
 
        if (config == (void *)2000 &&                                   \
29
 
                        (((c1) == 0x2E && (c2) == 0x21) ||              \
30
 
                         ((c1) == 0x2F && (c2) == 0x7E) ||              \
31
 
                         ((c1) == 0x4F && (c2) == 0x54) ||              \
32
 
                         ((c1) == 0x4F && (c2) == 0x7E) ||              \
33
 
                         ((c1) == 0x74 && (c2) == 0x27) ||              \
34
 
                         ((c1) == 0x7E && (c2) == 0x7A) ||              \
35
 
                         ((c1) == 0x7E && (c2) == 0x7B) ||              \
36
 
                         ((c1) == 0x7E && (c2) == 0x7C) ||              \
37
 
                         ((c1) == 0x7E && (c2) == 0x7D) ||              \
38
 
                         ((c1) == 0x7E && (c2) == 0x7E)))               \
39
 
                return EMULATE_JISX0213_2000_DECODE_INVALID;
 
27
#define EMULATE_JISX0213_2000_DECODE_PLANE1(assi, c1, c2)               \
 
28
    if (config == (void *)2000 &&                                       \
 
29
                    (((c1) == 0x2E && (c2) == 0x21) ||                  \
 
30
                     ((c1) == 0x2F && (c2) == 0x7E) ||                  \
 
31
                     ((c1) == 0x4F && (c2) == 0x54) ||                  \
 
32
                     ((c1) == 0x4F && (c2) == 0x7E) ||                  \
 
33
                     ((c1) == 0x74 && (c2) == 0x27) ||                  \
 
34
                     ((c1) == 0x7E && (c2) == 0x7A) ||                  \
 
35
                     ((c1) == 0x7E && (c2) == 0x7B) ||                  \
 
36
                     ((c1) == 0x7E && (c2) == 0x7C) ||                  \
 
37
                     ((c1) == 0x7E && (c2) == 0x7D) ||                  \
 
38
                     ((c1) == 0x7E && (c2) == 0x7E)))                   \
 
39
        return EMULATE_JISX0213_2000_DECODE_INVALID;
40
40
 
41
 
#define EMULATE_JISX0213_2000_DECODE_PLANE2(assi, c1, c2)               \
42
 
        if (config == (void *)2000 && (c1) == 0x7D && (c2) == 0x3B)     \
43
 
                (assi) = 0x9B1D;
 
41
#define EMULATE_JISX0213_2000_DECODE_PLANE2(assi, c1, c2)               \
 
42
    if (config == (void *)2000 && (c1) == 0x7D && (c2) == 0x3B)         \
 
43
        (assi) = 0x9B1D;