diff options
| author | Kenichi Handa | 2003-05-22 05:52:15 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2003-05-22 05:52:15 +0000 |
| commit | cbb76662ea2dfe92eb141bde926336f2cdc0be60 (patch) | |
| tree | e9a60089f33a6858110d2530f3d1bf3e84b168ea /src/coding.h | |
| parent | 34bf1d4e119f360ff1de10f2803726de3729d57d (diff) | |
| download | emacs-cbb76662ea2dfe92eb141bde926336f2cdc0be60.tar.gz emacs-cbb76662ea2dfe92eb141bde926336f2cdc0be60.zip | |
(CODING_REPLACEMENT_CHARACTER): Renamed from
CODING_INHIBIT_CHARACTER_SUBSTITUTION.
(CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
Diffstat (limited to 'src/coding.h')
| -rw-r--r-- | src/coding.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/coding.h b/src/coding.h index b01f0d2c01f..f0a5fa4c04e 100644 --- a/src/coding.h +++ b/src/coding.h | |||
| @@ -144,8 +144,9 @@ enum iso_code_class_type | |||
| 144 | #define CODING_FLAG_ISO_DESIGNATION 0x10000 | 144 | #define CODING_FLAG_ISO_DESIGNATION 0x10000 |
| 145 | 145 | ||
| 146 | /* A character to be produced on output if encoding of the original | 146 | /* A character to be produced on output if encoding of the original |
| 147 | character is prohibited by CODING_FLAG_ISO_SAFE. */ | 147 | character is inhibitted by CODING_MODE_INHIBIT_UNENCODABLE_CHAR. |
| 148 | #define CODING_INHIBIT_CHARACTER_SUBSTITUTION 077 /* 077 == `?' */ | 148 | It must be an ASCII character. */ |
| 149 | #define CODING_REPLACEMENT_CHARACTER '?' | ||
| 149 | 150 | ||
| 150 | /* Structure of the field `spec.iso2022' in the structure `coding_system'. */ | 151 | /* Structure of the field `spec.iso2022' in the structure `coding_system'. */ |
| 151 | struct iso2022_spec | 152 | struct iso2022_spec |
| @@ -337,9 +338,12 @@ struct composition_data | |||
| 337 | enables selective display. */ | 338 | enables selective display. */ |
| 338 | #define CODING_MODE_SELECTIVE_DISPLAY 0x04 | 339 | #define CODING_MODE_SELECTIVE_DISPLAY 0x04 |
| 339 | 340 | ||
| 341 | /* If set, replace unencodabae characters by `?' on encoding. */ | ||
| 342 | #define CODING_MODE_INHIBIT_UNENCODABLE_CHAR 0x08 | ||
| 343 | |||
| 340 | /* This flag is used by the decoding/encoding routines on the fly. If | 344 | /* This flag is used by the decoding/encoding routines on the fly. If |
| 341 | set, it means that right-to-left text is being processed. */ | 345 | set, it means that right-to-left text is being processed. */ |
| 342 | #define CODING_MODE_DIRECTION 0x08 | 346 | #define CODING_MODE_DIRECTION 0x10 |
| 343 | 347 | ||
| 344 | struct coding_system | 348 | struct coding_system |
| 345 | { | 349 | { |