better handling of incomplete input
[nvi.git] / common / conv.h
blob7b9db0dc6212c80d529a3243153331762c4c59e1
1 #define KEY_COL(sp, ch) \
2 (INTISWIDE(ch) ? CHAR_WIDTH(sp, ch) : KEY_LEN(sp,ch))
4 struct _conv_win {
5 void *bp1;
6 size_t blen1;
7 };
9 typedef int (*char2wchar_t)
10 (SCR *, const char *, ssize_t, struct _conv_win *, size_t *, CHAR_T **);
11 typedef int (*wchar2char_t)
12 (SCR *, const CHAR_T *, ssize_t, struct _conv_win *, size_t *, char **);
14 struct _conv {
15 char2wchar_t sys2int;
16 wchar2char_t int2sys;
17 char2wchar_t file2int;
18 wchar2char_t int2file;
19 char2wchar_t input2int;
20 wchar2char_t int2disp;