aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.h
diff options
context:
space:
mode:
authorTom Tromey2013-03-17 05:17:24 -0600
committerTom Tromey2013-03-17 05:17:24 -0600
commit6bd488cd8d05aa3983ca55f70ee384732d8c0085 (patch)
tree5645fc7b882638d6c0eb3f61fd55bde1a63fc190 /src/coding.h
parent71f91792e3013b397996905224f387da5cc539a9 (diff)
parent9c44569ea2a18099307e0571d523d8637000a153 (diff)
downloademacs-6bd488cd8d05aa3983ca55f70ee384732d8c0085.tar.gz
emacs-6bd488cd8d05aa3983ca55f70ee384732d8c0085.zip
merge from trunk
Diffstat (limited to 'src/coding.h')
-rw-r--r--src/coding.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/coding.h b/src/coding.h
index 28a7d776b63..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
@@ -715,6 +719,9 @@ extern wchar_t *to_unicode (Lisp_Object str, Lisp_Object *buf);
715 failure modes. STR itself is not modified. */ 719 failure modes. STR itself is not modified. */
716extern Lisp_Object from_unicode (Lisp_Object str); 720extern Lisp_Object from_unicode (Lisp_Object str);
717 721
722/* Convert WSTR to an Emacs string. */
723extern Lisp_Object from_unicode_buffer (const wchar_t* wstr);
724
718#endif /* WINDOWSNT || CYGWIN */ 725#endif /* WINDOWSNT || CYGWIN */
719 726
720/* Macros for backward compatibility. */ 727/* Macros for backward compatibility. */