Mercurial > emacs
comparison src/coding.h @ 95396:7223da1c87c2
(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.
| author | Kenichi Handa <handa@m17n.org> |
|---|---|
| date | Thu, 29 May 2008 22:58:00 +0000 |
| parents | 29adfc9354e7 |
| children | e038c1a8307c |
comparison
equal
deleted
inserted
replaced
| 95395:a374273bf2a5 | 95396:7223da1c87c2 |
|---|---|
| 54 coding_arg_iso2022_request, | 54 coding_arg_iso2022_request, |
| 55 coding_arg_iso2022_flags, | 55 coding_arg_iso2022_flags, |
| 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, |
| 62 coding_arg_utf16_endian, | 68 coding_arg_utf16_endian, |
| 63 coding_arg_utf16_max | 69 coding_arg_utf16_max |
| 146 coding_attr_iso_initial, | 152 coding_attr_iso_initial, |
| 147 coding_attr_iso_usage, | 153 coding_attr_iso_usage, |
| 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, |
| 155 | 161 |
| 156 coding_attr_last_index | 162 coding_attr_last_index |
| 323 int bol; | 329 int bol; |
| 324 }; | 330 }; |
| 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 |
| 336 { | 342 { |
| 337 utf_16_big_endian, | 343 utf_16_big_endian, |
| 338 utf_16_little_endian | 344 utf_16_little_endian |
| 339 }; | 345 }; |
| 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 }; |
| 347 | 353 |
| 348 struct coding_detection_info | 354 struct coding_detection_info |
| 378 union | 384 union |
| 379 { | 385 { |
| 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 |
| 386 int max_charset_id; | 393 int max_charset_id; |
| 387 char *safe_charsets; | 394 char *safe_charsets; |
