-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
roman.h
32 lines (28 loc) · 826 Bytes
/
roman.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
* roman.h
*
* definitions & function prototype declarations for "roman.c"
*/
#define R_MAXROMAN 4
#define R_MAXKANA 2
#define J_MIN 0x2121
#define J_MAX 0x7e7e
#define J_CHO 0x213c
#define J_TSU 0x2443
#define J_NN 0x2473
#define VALIDJIS(c) (iseuc((((c) >> 8) & 0xff) ^ 0x80) \
&& iseuc(((c) & 0xff) ^ 0x80))
typedef struct _romantable {
char str[R_MAXROMAN + 1];
ALLOC_T len;
u_short code[R_MAXKANA];
} romantable;
extern int code2kanji __P_((char *, u_int));
extern int searchroman __P_((CONST char *, int));
extern VOID initroman __P_((VOID_A));
extern int jis2str __P_((char *, u_int));
extern int str2jis __P_((u_short *, int, CONST char *));
extern int addroman __P_((CONST char *, CONST char *));
extern VOID freeroman __P_((int));
extern romantable *romanlist;
extern int maxromanlist;