1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-22 21:50:45 -08:00

Optimize ASCII file reading with EOL format detection and decoding.

This commit is contained in:
Kenichi Handa 2013-03-16 01:03:54 +09:00
parent 9b59398006
commit 8a44e6d176
5 changed files with 210 additions and 60 deletions

View file

@ -440,9 +440,13 @@ struct coding_system
/* How may heading bytes we can skip for decoding. This is set to
-1 in setup_coding_system, and updated by detect_coding. So,
when this is equal to the byte length of the text being
converted, we can skip the actual conversion process. */
converted, we can skip the actual conversion process except for
the eol format. */
ptrdiff_t head_ascii;
/* Used internally in coding.c. See the comment of detect_ascii. */
int eol_seen;
/* The following members are set by encoding/decoding routine. */
ptrdiff_t produced, produced_char, consumed, consumed_char;