1 /* Header for Cygwin support routines.
2 Copyright (C) 2011-2012 Free Software Foundation, Inc.
4 This file is part of GNU Emacs.
6 GNU Emacs is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 GNU Emacs is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
23 #include <sys/cygwin.h>
36 /* *** Character conversion *** */
38 /* Access the wide-character string stored in a Lisp string object. */
39 #define WCSDATA(x) ((wchar_t *) SDATA (x))
41 /* Convert the multi-byte string in STR to UTF-16LE encoded unibyte
42 string, and store it in *BUF. BUF may safely point to STR on entry. */
43 extern wchar_t *to_unicode (Lisp_Object str
, Lisp_Object
*buf
);
45 /* Convert STR, a UTF-16LE encoded string embedded in a unibyte string
46 object, to a multi-byte Emacs string, and return it. */
47 extern Lisp_Object
from_unicode (Lisp_Object str
);
50 extern void syms_of_cygw32 (void);
51 extern char * w32_strerror (int error_no
);