]>
cygwin.com Git - cygwin-apps/cygutils.git/blob - src/column/widechar.h
2 * This program is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU General Public License
4 * as published by the Free Software Foundation; either version 2
5 * of the License, or (at your option) any later version.
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16 * See the COPYING file for license information.
20 /* Declarations for wide characters */
21 /* This file must be included last because the redefinition of wchar_t may
22 cause conflicts when system include files were included after it. */
24 # include "config.h" /* for ENABLE_WIDECHAR */
26 /* don't include "common.h" here */
28 #ifdef ENABLE_WIDECHAR
32 #if 0 /* for testing on platforms without built-in wide character support */
37 /* explicit prototypes, since sometimes <wchar.h> does not give them */
38 extern int wcwidth (wint_t c
);
39 extern int wcswidth (const wchar_t *s
, size_t n
);
40 extern size_t wcslen (const wchar_t *s
);
41 extern wchar_t *wcsdup (const wchar_t *s
);
47 /* Fallback for types */
51 /* Fallback for input operations */
54 # define getwchar getchar
56 /* Fallback for output operations */
59 # define putwchar putchar
61 /* Fallback for character classification */
62 # define iswgraph isgraph
63 # define iswprint isprint
64 # define iswspace isspace
65 /* Fallback for string functions */
66 # define wcschr strchr
67 # define wcsdup strdup
68 # define wcslen strlen
This page took 0.037503 seconds and 5 git commands to generate.