diff options
| author | Kenichi Handa | 2008-05-29 22:58:00 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2008-05-29 22:58:00 +0000 |
| commit | e4215ddd0753fffed307dd643f66ce0a0b26b0c4 (patch) | |
| tree | 71a020b485e88ded127b7cbc053a0aa5afa9e2f2 /src/coding.h | |
| parent | e925563701b1557eee26b94cedb5ff610dc46c51 (diff) | |
| download | emacs-e4215ddd0753fffed307dd643f66ce0a0b26b0c4.tar.gz emacs-e4215ddd0753fffed307dd643f66ce0a0b26b0c4.zip | |
(enum define_coding_utf8_arg_index): New enum.
(enum coding_attr_index): Change coding_attr_utf_16_bom to
coding_attr_utf_bom.
(enum utf_bom_type): Renamed from utf_16_bom_type.
(struct utf_16_spec): Adjusted for the above change.
(struct coding_system): Add utf_8_bom in `spec' union.
Diffstat (limited to 'src/coding.h')
| -rw-r--r-- | src/coding.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/coding.h b/src/coding.h index d125d57d02b..a7196f91c8d 100644 --- a/src/coding.h +++ b/src/coding.h | |||
| @@ -56,6 +56,12 @@ enum define_coding_iso2022_arg_index | |||
| 56 | coding_arg_iso2022_max | 56 | coding_arg_iso2022_max |
| 57 | }; | 57 | }; |
| 58 | 58 | ||
| 59 | enum define_coding_utf8_arg_index | ||
| 60 | { | ||
| 61 | coding_arg_utf8_bom = coding_arg_max, | ||
| 62 | coding_arg_utf8_max | ||
| 63 | }; | ||
| 64 | |||
| 59 | enum define_coding_utf16_arg_index | 65 | enum define_coding_utf16_arg_index |
| 60 | { | 66 | { |
| 61 | coding_arg_utf16_bom = coding_arg_max, | 67 | coding_arg_utf16_bom = coding_arg_max, |
| @@ -148,7 +154,7 @@ enum coding_attr_index | |||
| 148 | coding_attr_iso_request, | 154 | coding_attr_iso_request, |
| 149 | coding_attr_iso_flags, | 155 | coding_attr_iso_flags, |
| 150 | 156 | ||
| 151 | coding_attr_utf_16_bom, | 157 | coding_attr_utf_bom, |
| 152 | coding_attr_utf_16_endian, | 158 | coding_attr_utf_16_endian, |
| 153 | 159 | ||
| 154 | coding_attr_emacs_mule_full, | 160 | coding_attr_emacs_mule_full, |
| @@ -325,11 +331,11 @@ struct iso_2022_spec | |||
| 325 | 331 | ||
| 326 | struct ccl_spec; | 332 | struct ccl_spec; |
| 327 | 333 | ||
| 328 | enum utf_16_bom_type | 334 | enum utf_bom_type |
| 329 | { | 335 | { |
| 330 | utf_16_detect_bom, | 336 | utf_detect_bom, |
| 331 | utf_16_without_bom, | 337 | utf_without_bom, |
| 332 | utf_16_with_bom | 338 | utf_with_bom |
| 333 | }; | 339 | }; |
| 334 | 340 | ||
| 335 | enum utf_16_endian_type | 341 | enum utf_16_endian_type |
| @@ -340,7 +346,7 @@ enum utf_16_endian_type | |||
| 340 | 346 | ||
| 341 | struct utf_16_spec | 347 | struct utf_16_spec |
| 342 | { | 348 | { |
| 343 | enum utf_16_bom_type bom; | 349 | enum utf_bom_type bom; |
| 344 | enum utf_16_endian_type endian; | 350 | enum utf_16_endian_type endian; |
| 345 | int surrogate; | 351 | int surrogate; |
| 346 | }; | 352 | }; |
| @@ -380,6 +386,7 @@ struct coding_system | |||
| 380 | struct iso_2022_spec iso_2022; | 386 | struct iso_2022_spec iso_2022; |
| 381 | struct ccl_spec *ccl; /* Defined in ccl.h. */ | 387 | struct ccl_spec *ccl; /* Defined in ccl.h. */ |
| 382 | struct utf_16_spec utf_16; | 388 | struct utf_16_spec utf_16; |
| 389 | enum utf_bom_type utf_8_bom; | ||
| 383 | int emacs_mule_full_support; | 390 | int emacs_mule_full_support; |
| 384 | } spec; | 391 | } spec; |
| 385 | 392 | ||