* lisp/minibuffer.el (completion--twq-all): Disable too-strict assertions.
[emacs.git] / src / cygw32.h
blob78e77a9a14111aa2f2120356f7c9c5655d6db00b
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/>. */
19 #ifndef CYGW32_H
20 #define CYGW32_H
21 #include <config.h>
22 #include <windef.h>
23 #include <sys/cygwin.h>
24 #include <wchar.h>
26 #include <signal.h>
27 #include <stdio.h>
28 #include <limits.h>
29 #include <errno.h>
30 #include <math.h>
31 #include <setjmp.h>
33 #include "lisp.h"
34 #include "coding.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);
49 /* *** Misc *** */
50 extern void syms_of_cygw32 (void);
51 extern char * w32_strerror (int error_no);
53 #endif /* CYGW32_H */