Mercurial > emacs
comparison src/coding.h @ 18975:06204358e78f
(CODING_REQUIRE_TEXT_CONVERSION,
CODING_REQUIRE_EOL_CONVERSION, CODING_REQUIRE_CONVERSION): Deleted.
(CODING_REQUIRE_NO_CONVERSION): New macro.
(CODING_MAY_REQUIRE_NO_CONVERSION): New macro.
| author | Kenichi Handa <handa@m17n.org> |
|---|---|
| date | Fri, 25 Jul 1997 07:46:51 +0000 |
| parents | e44570b2a6a0 |
| children | 0724276f0e01 |
comparison
equal
deleted
inserted
replaced
| 18974:ded7c036e1ca | 18975:06204358e78f |
|---|---|
| 307 | 307 |
| 308 /* Actual data length in the above array. */ | 308 /* Actual data length in the above array. */ |
| 309 int carryover_size; | 309 int carryover_size; |
| 310 }; | 310 }; |
| 311 | 311 |
| 312 /* Return 1 if the coding-system CODING requires conversion of | 312 /* Return 1 if coding system CODING never requires any code conversion. */ |
| 313 representation of a visible character (text). */ | 313 #define CODING_REQUIRE_NO_CONVERSION(coding) \ |
| 314 #define CODING_REQUIRE_TEXT_CONVERSION(coding) \ | 314 (((coding)->type == coding_type_no_conversion \ |
| 315 ((coding)->type != coding_type_no_conversion \ | 315 || (coding)->type == coding_type_emacs_mule) \ |
| 316 && (coding)->type != coding_type_emacs_mule) | 316 && (coding)->eol_type == CODING_EOL_LF) |
| 317 | 317 |
| 318 /* Return 1 if the coding-system CODING requires conversion of the | 318 /* Return 1 if coding system CODING may not require code conversion. */ |
| 319 format of end-of-line. */ | 319 #define CODING_MAY_REQUIRE_NO_CONVERSION(coding) \ |
| 320 #define CODING_REQUIRE_EOL_CONVERSION(coding) \ | 320 (((coding)->type == coding_type_no_conversion \ |
| 321 ((coding)->eol_type != CODING_EOL_UNDECIDED \ | 321 || (coding)->type == coding_type_emacs_mule \ |
| 322 && (coding)->eol_type != CODING_EOL_LF) | 322 || (coding)->type == coding_type_undecided) \ |
| 323 | 323 && ((coding)->eol_type == CODING_EOL_LF \ |
| 324 /* Return 1 if the coding-system CODING requires some conversion. */ | 324 || (coding)->eol_type == CODING_EOL_UNDECIDED)) |
| 325 #define CODING_REQUIRE_CONVERSION(coding) \ | |
| 326 (CODING_REQUIRE_TEXT_CONVERSION (coding) \ | |
| 327 || CODING_REQUIRE_EOL_CONVERSION (coding)) | |
| 328 | 325 |
| 329 /* Index for each coding category in `coding_category_table' */ | 326 /* Index for each coding category in `coding_category_table' */ |
| 330 #define CODING_CATEGORY_IDX_EMACS_MULE 0 | 327 #define CODING_CATEGORY_IDX_EMACS_MULE 0 |
| 331 #define CODING_CATEGORY_IDX_SJIS 1 | 328 #define CODING_CATEGORY_IDX_SJIS 1 |
| 332 #define CODING_CATEGORY_IDX_ISO_7 2 | 329 #define CODING_CATEGORY_IDX_ISO_7 2 |
