diff options
author | Kenichi Handa <handa@m17n.org> | 1997-07-25 07:46:51 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 1997-07-25 07:46:51 +0000 |
commit | 4dad0cbaf539f74948282a00546a001947b5c600 (patch) | |
tree | 68cbe4864db18ec3591b1a4e311093b45775a13f /src/coding.h | |
parent | 71a4b3e854d09ed68b568b2dd8d9166d238ce4f1 (diff) | |
download | emacs-4dad0cbaf539f74948282a00546a001947b5c600.tar.gz |
(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.
Diffstat (limited to 'src/coding.h')
-rw-r--r-- | src/coding.h | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/src/coding.h b/src/coding.h index 43d10e403f6..46002ad6255 100644 --- a/src/coding.h +++ b/src/coding.h @@ -309,22 +309,19 @@ struct coding_system int carryover_size; }; -/* Return 1 if the coding-system CODING requires conversion of - representation of a visible character (text). */ -#define CODING_REQUIRE_TEXT_CONVERSION(coding) \ - ((coding)->type != coding_type_no_conversion \ - && (coding)->type != coding_type_emacs_mule) - -/* Return 1 if the coding-system CODING requires conversion of the - format of end-of-line. */ -#define CODING_REQUIRE_EOL_CONVERSION(coding) \ - ((coding)->eol_type != CODING_EOL_UNDECIDED \ - && (coding)->eol_type != CODING_EOL_LF) - -/* Return 1 if the coding-system CODING requires some conversion. */ -#define CODING_REQUIRE_CONVERSION(coding) \ - (CODING_REQUIRE_TEXT_CONVERSION (coding) \ - || CODING_REQUIRE_EOL_CONVERSION (coding)) +/* Return 1 if coding system CODING never requires any code conversion. */ +#define CODING_REQUIRE_NO_CONVERSION(coding) \ + (((coding)->type == coding_type_no_conversion \ + || (coding)->type == coding_type_emacs_mule) \ + && (coding)->eol_type == CODING_EOL_LF) + +/* Return 1 if coding system CODING may not require code conversion. */ +#define CODING_MAY_REQUIRE_NO_CONVERSION(coding) \ + (((coding)->type == coding_type_no_conversion \ + || (coding)->type == coding_type_emacs_mule \ + || (coding)->type == coding_type_undecided) \ + && ((coding)->eol_type == CODING_EOL_LF \ + || (coding)->eol_type == CODING_EOL_UNDECIDED)) /* Index for each coding category in `coding_category_table' */ #define CODING_CATEGORY_IDX_EMACS_MULE 0 |