Expand PMF_FN_* macros.
[netbsd-mini2440.git] / dist / nvi / common / conv.h
blob754a88a8637a0272f0ca85777f3479b5131650e5
1 /* $NetBSD: conv.h,v 1.3 2009/01/18 03:43:45 lukem Exp $ */
3 #define KEY_COL(sp, ch) \
4 (INTISWIDE(ch) ? \
5 (CHAR_WIDTH(sp, ch) >= 0) ? \
6 (size_t)CHAR_WIDTH(sp, ch) : 1 /* extra space */ \
7 : KEY_LEN(sp,ch))
9 struct _conv_win {
10 void *bp1;
11 size_t blen1;
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 **);
19 struct _conv {
20 char2wchar_t sys2int;
21 wchar2char_t int2sys;
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 *));