comparison src/coding.h @ 70703:85b353760b1c

(CODING_ASCII_INCOMPATIBLE_MASK): New macro.
author Kenichi Handa <handa@m17n.org>
date Thu, 18 May 2006 02:17:39 +0000
parents 3731408d78da
children 216c04e10ca3 ab6ab63755f7
comparison
equal deleted inserted replaced
70702:b6ef71fed693 70703:85b353760b1c
441 /* Character translation tables to look up, or nil. */ 441 /* Character translation tables to look up, or nil. */
442 Lisp_Object translation_table_for_decode; 442 Lisp_Object translation_table_for_decode;
443 Lisp_Object translation_table_for_encode; 443 Lisp_Object translation_table_for_encode;
444 }; 444 };
445 445
446 #define CODING_REQUIRE_FLUSHING_MASK 1 446 /* Mask bits for (struct coding_system *)->common_flags. */
447 #define CODING_REQUIRE_DECODING_MASK 2 447 #define CODING_REQUIRE_FLUSHING_MASK 0x01
448 #define CODING_REQUIRE_ENCODING_MASK 4 448 #define CODING_REQUIRE_DECODING_MASK 0x02
449 #define CODING_REQUIRE_DETECTION_MASK 8 449 #define CODING_REQUIRE_ENCODING_MASK 0x04
450 #define CODING_REQUIRE_DETECTION_MASK 0x08
451 #define CODING_ASCII_INCOMPATIBLE_MASK 0x10
450 452
451 /* Return 1 if the coding system CODING requires specific code to be 453 /* Return 1 if the coding system CODING requires specific code to be
452 attached at the tail of converted text. */ 454 attached at the tail of converted text. */
453 #define CODING_REQUIRE_FLUSHING(coding) \ 455 #define CODING_REQUIRE_FLUSHING(coding) \
454 ((coding)->common_flags & CODING_REQUIRE_FLUSHING_MASK) 456 ((coding)->common_flags & CODING_REQUIRE_FLUSHING_MASK)