Mercurial > emacs
comparison src/coding.c @ 29247:c748b4b1c785
(shrink_decoding_region): Initialize eol_conversion.
| author | Dave Love <fx@gnu.org> |
|---|---|
| date | Fri, 26 May 2000 13:42:03 +0000 |
| parents | 446621f88d68 |
| children | b4ea9178e480 |
comparison
equal
deleted
inserted
replaced
| 29246:d6236052de66 | 29247:c748b4b1c785 |
|---|---|
| 4126 int i; | 4126 int i; |
| 4127 for (i = 0; i < 128; i++) | 4127 for (i = 0; i < 128; i++) |
| 4128 if (!NILP (CHAR_TABLE_REF (translation_table, i))) | 4128 if (!NILP (CHAR_TABLE_REF (translation_table, i))) |
| 4129 break; | 4129 break; |
| 4130 if (i < 128) | 4130 if (i < 128) |
| 4131 /* Some ASCII character should be tranlsated. We give up | 4131 /* Some ASCII character should be translated. We give up |
| 4132 shrinking. */ | 4132 shrinking. */ |
| 4133 return; | 4133 return; |
| 4134 } | 4134 } |
| 4135 | 4135 |
| 4136 if (coding->heading_ascii >= 0) | 4136 if (coding->heading_ascii >= 0) |
| 4146 else | 4146 else |
| 4147 { | 4147 { |
| 4148 begp_orig = begp = BYTE_POS_ADDR (*beg); | 4148 begp_orig = begp = BYTE_POS_ADDR (*beg); |
| 4149 endp_orig = endp = begp + *end - *beg; | 4149 endp_orig = endp = begp + *end - *beg; |
| 4150 } | 4150 } |
| 4151 | |
| 4152 eol_conversion = (coding->eol_type == CODING_EOL_CR | |
| 4153 || coding->eol_type == CODING_EOL_CRLF); | |
| 4151 | 4154 |
| 4152 switch (coding->type) | 4155 switch (coding->type) |
| 4153 { | 4156 { |
| 4154 case coding_type_sjis: | 4157 case coding_type_sjis: |
| 4155 case coding_type_big5: | 4158 case coding_type_big5: |
