diff options
| author | Kenichi Handa | 2013-06-28 23:59:50 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2013-06-28 23:59:50 +0900 |
| commit | 270afa77ee4ddb2144ba35c9745a43fdf02e653d (patch) | |
| tree | be8944a263040f082d0d60731a851b54cf18c9ad /src/coding.h | |
| parent | 50960f36d19bce75f9c8890c9e57428ab5764d1e (diff) | |
| download | emacs-270afa77ee4ddb2144ba35c9745a43fdf02e653d.tar.gz emacs-270afa77ee4ddb2144ba35c9745a43fdf02e653d.zip | |
coding.h (define_coding_undecided_arg_index): New enum.
(coding_attr_index): New members
coding_attr_undecided_inhibit_null_byte_detection,
coding_attr_undecided_inhibit_iso_escape_detection,
coding_attr_undecided_prefer_utf_8.
(undecided_spec): New struct.
(struct coding_system): New member `undecied' of the member
`spec'.
Diffstat (limited to 'src/coding.h')
| -rw-r--r-- | src/coding.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/coding.h b/src/coding.h index d13fd42fe4f..453805e233a 100644 --- a/src/coding.h +++ b/src/coding.h | |||
| @@ -76,6 +76,14 @@ enum define_coding_ccl_arg_index | |||
| 76 | coding_arg_ccl_max | 76 | coding_arg_ccl_max |
| 77 | }; | 77 | }; |
| 78 | 78 | ||
| 79 | enum define_coding_undecided_arg_index | ||
| 80 | { | ||
| 81 | coding_arg_undecided_inhibit_null_byte_detection = coding_arg_max, | ||
| 82 | coding_arg_undecided_inhibit_iso_escape_detection, | ||
| 83 | coding_arg_undecided_prefer_utf_8, | ||
| 84 | coding_arg_undecided_max | ||
| 85 | }; | ||
| 86 | |||
| 79 | /* Hash table for all coding systems. Keys are coding system symbols | 87 | /* Hash table for all coding systems. Keys are coding system symbols |
| 80 | and values are spec vectors of the corresponding coding system. A | 88 | and values are spec vectors of the corresponding coding system. A |
| 81 | spec vector has the form [ ATTRS ALIASES EOL-TYPE ]. ATTRS is a | 89 | spec vector has the form [ ATTRS ALIASES EOL-TYPE ]. ATTRS is a |
| @@ -158,6 +166,10 @@ enum coding_attr_index | |||
| 158 | 166 | ||
| 159 | coding_attr_emacs_mule_full, | 167 | coding_attr_emacs_mule_full, |
| 160 | 168 | ||
| 169 | coding_attr_undecided_inhibit_null_byte_detection, | ||
| 170 | coding_attr_undecided_inhibit_iso_escape_detection, | ||
| 171 | coding_attr_undecided_prefer_utf_8, | ||
| 172 | |||
| 161 | coding_attr_last_index | 173 | coding_attr_last_index |
| 162 | }; | 174 | }; |
| 163 | 175 | ||
| @@ -368,6 +380,13 @@ struct emacs_mule_spec | |||
| 368 | 380 | ||
| 369 | struct ccl_spec; | 381 | struct ccl_spec; |
| 370 | 382 | ||
| 383 | struct undecided_spec | ||
| 384 | { | ||
| 385 | int inhibit_nbd; /* nbd: null byte detection */ | ||
| 386 | int inhibit_ied; /* ied: iso escape detection */ | ||
| 387 | int prefer_utf_8; | ||
| 388 | }; | ||
| 389 | |||
| 371 | enum utf_bom_type | 390 | enum utf_bom_type |
| 372 | { | 391 | { |
| 373 | utf_detect_bom, | 392 | utf_detect_bom, |
| @@ -425,6 +444,7 @@ struct coding_system | |||
| 425 | struct utf_16_spec utf_16; | 444 | struct utf_16_spec utf_16; |
| 426 | enum utf_bom_type utf_8_bom; | 445 | enum utf_bom_type utf_8_bom; |
| 427 | struct emacs_mule_spec emacs_mule; | 446 | struct emacs_mule_spec emacs_mule; |
| 447 | struct undecided_spec undecided; | ||
| 428 | } spec; | 448 | } spec; |
| 429 | 449 | ||
| 430 | int max_charset_id; | 450 | int max_charset_id; |