Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(7)

Side by Side Diff: Modules/cjkcodecs/_codecs_tw.c

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Modules/cjkcodecs/_codecs_kr.c ('k') | Modules/_codecsmodule.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * _codecs_tw.c: Codecs collection for Taiwan's encodings 2 * _codecs_tw.c: Codecs collection for Taiwan's encodings
3 * 3 *
4 * Written by Hye-Shik Chang <perky@FreeBSD.org> 4 * Written by Hye-Shik Chang <perky@FreeBSD.org>
5 */ 5 */
6 6
7 #include "cjkcodecs.h" 7 #include "cjkcodecs.h"
8 #include "mappings_tw.h" 8 #include "mappings_tw.h"
9 9
10 /* 10 /*
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 if (c < 0x80) { 48 if (c < 0x80) {
49 OUT1(c) 49 OUT1(c)
50 NEXT(1, 1) 50 NEXT(1, 1)
51 continue; 51 continue;
52 } 52 }
53 53
54 REQUIRE_INBUF(2) 54 REQUIRE_INBUF(2)
55 TRYMAP_DEC(big5, **outbuf, c, IN2) { 55 TRYMAP_DEC(big5, **outbuf, c, IN2) {
56 NEXT(2, 1) 56 NEXT(2, 1)
57 } 57 }
58 else return 1; 58 else return 2;
59 } 59 }
60 60
61 return 0; 61 return 0;
62 } 62 }
63 63
64 64
65 /* 65 /*
66 * CP950 codec 66 * CP950 codec
67 */ 67 */
68 68
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 if (c < 0x80) { 102 if (c < 0x80) {
103 OUT1(c) 103 OUT1(c)
104 NEXT(1, 1) 104 NEXT(1, 1)
105 continue; 105 continue;
106 } 106 }
107 107
108 REQUIRE_INBUF(2) 108 REQUIRE_INBUF(2)
109 109
110 TRYMAP_DEC(cp950ext, **outbuf, c, IN2); 110 TRYMAP_DEC(cp950ext, **outbuf, c, IN2);
111 else TRYMAP_DEC(big5, **outbuf, c, IN2); 111 else TRYMAP_DEC(big5, **outbuf, c, IN2);
112 else return 1; 112 else return 2;
113 113
114 NEXT(2, 1) 114 NEXT(2, 1)
115 } 115 }
116 116
117 return 0; 117 return 0;
118 } 118 }
119 119
120 120
121 121
122 BEGIN_MAPPINGS_LIST 122 BEGIN_MAPPINGS_LIST
123 MAPPING_ENCDEC(big5) 123 MAPPING_ENCDEC(big5)
124 MAPPING_ENCDEC(cp950ext) 124 MAPPING_ENCDEC(cp950ext)
125 END_MAPPINGS_LIST 125 END_MAPPINGS_LIST
126 126
127 BEGIN_CODECS_LIST 127 BEGIN_CODECS_LIST
128 CODEC_STATELESS(big5) 128 CODEC_STATELESS(big5)
129 CODEC_STATELESS(cp950) 129 CODEC_STATELESS(cp950)
130 END_CODECS_LIST 130 END_CODECS_LIST
131 131
132 I_AM_A_MODULE_FOR(tw) 132 I_AM_A_MODULE_FOR(tw)
OLDNEW
« no previous file with comments | « Modules/cjkcodecs/_codecs_kr.c ('k') | Modules/_codecsmodule.c » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+