Commit 4dad0cba authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(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.
parent 71a4b3e8
...@@ -309,22 +309,19 @@ struct coding_system ...@@ -309,22 +309,19 @@ struct coding_system
int carryover_size; int carryover_size;
}; };
/* Return 1 if the coding-system CODING requires conversion of /* Return 1 if coding system CODING never requires any code conversion. */
representation of a visible character (text). */ #define CODING_REQUIRE_NO_CONVERSION(coding) \
#define CODING_REQUIRE_TEXT_CONVERSION(coding) \ (((coding)->type == coding_type_no_conversion \
((coding)->type != coding_type_no_conversion \ || (coding)->type == coding_type_emacs_mule) \
&& (coding)->type != coding_type_emacs_mule) && (coding)->eol_type == CODING_EOL_LF)
/* Return 1 if the coding-system CODING requires conversion of the /* Return 1 if coding system CODING may not require code conversion. */
format of end-of-line. */ #define CODING_MAY_REQUIRE_NO_CONVERSION(coding) \
#define CODING_REQUIRE_EOL_CONVERSION(coding) \ (((coding)->type == coding_type_no_conversion \
((coding)->eol_type != CODING_EOL_UNDECIDED \ || (coding)->type == coding_type_emacs_mule \
&& (coding)->eol_type != CODING_EOL_LF) || (coding)->type == coding_type_undecided) \
&& ((coding)->eol_type == CODING_EOL_LF \
/* Return 1 if the coding-system CODING requires some conversion. */ || (coding)->eol_type == CODING_EOL_UNDECIDED))
#define CODING_REQUIRE_CONVERSION(coding) \
(CODING_REQUIRE_TEXT_CONVERSION (coding) \
|| CODING_REQUIRE_EOL_CONVERSION (coding))
/* Index for each coding category in `coding_category_table' */ /* Index for each coding category in `coding_category_table' */
#define CODING_CATEGORY_IDX_EMACS_MULE 0 #define CODING_CATEGORY_IDX_EMACS_MULE 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment