diff options
| author | Joakim Verona | 2012-11-06 23:01:10 +0100 |
|---|---|---|
| committer | Joakim Verona | 2012-11-06 23:01:10 +0100 |
| commit | 643b1893347ee5c32f6174d0f76a55d723060123 (patch) | |
| tree | 06847c9375f32e91446bfdbe9aa342cb232be90f /src/coding.h | |
| parent | 9c809558c18410acf9b90529e183d192afca3d2c (diff) | |
| parent | b6b3b29458fefcf7f31a0b14d6484cf262db2e54 (diff) | |
| download | emacs-643b1893347ee5c32f6174d0f76a55d723060123.tar.gz emacs-643b1893347ee5c32f6174d0f76a55d723060123.zip | |
upstream
Diffstat (limited to 'src/coding.h')
| -rw-r--r-- | src/coding.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/coding.h b/src/coding.h index 989552bf667..192be58f083 100644 --- a/src/coding.h +++ b/src/coding.h | |||
| @@ -701,6 +701,28 @@ extern void encode_coding_object (struct coding_system *, | |||
| 701 | Lisp_Object, ptrdiff_t, ptrdiff_t, | 701 | Lisp_Object, ptrdiff_t, ptrdiff_t, |
| 702 | ptrdiff_t, ptrdiff_t, Lisp_Object); | 702 | ptrdiff_t, ptrdiff_t, Lisp_Object); |
| 703 | 703 | ||
| 704 | #if defined (WINDOWSNT) || defined (CYGWIN) | ||
| 705 | |||
| 706 | /* These functions use Lisp string objects to store the UTF-16LE | ||
| 707 | strings that modern versions of Windows expect. These strings are | ||
| 708 | not particularly useful to Lisp, and all Lisp strings should be | ||
| 709 | native Emacs multibyte. */ | ||
| 710 | |||
| 711 | /* Access the wide-character string stored in a Lisp string object. */ | ||
| 712 | #define WCSDATA(x) ((wchar_t *) SDATA (x)) | ||
| 713 | |||
| 714 | /* Convert the multi-byte string in STR to UTF-16LE encoded unibyte | ||
| 715 | string, and store it in *BUF. BUF may safely point to STR on entry. */ | ||
| 716 | extern wchar_t *to_unicode (Lisp_Object str, Lisp_Object *buf); | ||
| 717 | |||
| 718 | /* Convert STR, a UTF-16LE encoded string embedded in a unibyte string | ||
| 719 | object, to a multi-byte Emacs string and return it. This function | ||
| 720 | calls code_convert_string_norecord internally and has all its | ||
| 721 | failure modes. STR itself is not modified. */ | ||
| 722 | extern Lisp_Object from_unicode (Lisp_Object str); | ||
| 723 | |||
| 724 | #endif /* WINDOWSNT || CYGWIN */ | ||
| 725 | |||
| 704 | /* Macros for backward compatibility. */ | 726 | /* Macros for backward compatibility. */ |
| 705 | 727 | ||
| 706 | #define decode_coding_region(coding, from, to) \ | 728 | #define decode_coding_region(coding, from, to) \ |