1 /* $NetBSD: conv.h,v 1.3 2009/01/18 03:43:45 lukem Exp $ */
3 #define KEY_COL(sp, ch) \
5 (CHAR_WIDTH(sp, ch) >= 0) ? \
6 (size_t)CHAR_WIDTH(sp, ch) : 1 /* extra space */ \
14 typedef int (*char2wchar_t
)
15 (SCR
*, const char *, ssize_t
, struct _conv_win
*, size_t *, const CHAR_T
**);
16 typedef int (*wchar2char_t
)
17 (SCR
*, const CHAR_T
*, ssize_t
, struct _conv_win
*, size_t *, const char **);
22 char2wchar_t file2int
;
23 wchar2char_t int2file
;
24 char2wchar_t input2int
;
25 wchar2char_t int2disp
;
27 void conv_init
__P((SCR
*, SCR
*));
28 int conv_enc
__P((SCR
*, int, const char *));