diff options
| author | Kenichi Handa | 2013-03-16 01:03:54 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2013-03-16 01:03:54 +0900 |
| commit | 8a44e6d176989d8eef140314098c76a70248ba61 (patch) | |
| tree | 096ee4a0f9a15f2f300ba68d2dd1dd28b88e18a0 /src/coding.h | |
| parent | 9b5939800615a4e08ac389813a70faf4b9e57bba (diff) | |
| download | emacs-8a44e6d176989d8eef140314098c76a70248ba61.tar.gz emacs-8a44e6d176989d8eef140314098c76a70248ba61.zip | |
Optimize ASCII file reading with EOL format detection and decoding.
Diffstat (limited to 'src/coding.h')
| -rw-r--r-- | src/coding.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/coding.h b/src/coding.h index c13567c3d53..d40209be68f 100644 --- a/src/coding.h +++ b/src/coding.h | |||
| @@ -440,9 +440,13 @@ struct coding_system | |||
| 440 | /* How may heading bytes we can skip for decoding. This is set to | 440 | /* How may heading bytes we can skip for decoding. This is set to |
| 441 | -1 in setup_coding_system, and updated by detect_coding. So, | 441 | -1 in setup_coding_system, and updated by detect_coding. So, |
| 442 | when this is equal to the byte length of the text being | 442 | when this is equal to the byte length of the text being |
| 443 | converted, we can skip the actual conversion process. */ | 443 | converted, we can skip the actual conversion process except for |
| 444 | the eol format. */ | ||
| 444 | ptrdiff_t head_ascii; | 445 | ptrdiff_t head_ascii; |
| 445 | 446 | ||
| 447 | /* Used internally in coding.c. See the comment of detect_ascii. */ | ||
| 448 | int eol_seen; | ||
| 449 | |||
| 446 | /* The following members are set by encoding/decoding routine. */ | 450 | /* The following members are set by encoding/decoding routine. */ |
| 447 | ptrdiff_t produced, produced_char, consumed, consumed_char; | 451 | ptrdiff_t produced, produced_char, consumed, consumed_char; |
| 448 | 452 | ||