romkan_init() ???????????Ѵ?????????
#include <wnn/rk_spcl_val.h>
int romkan_init(pathname, delete, chmflg, keyin, bytcntfn)
char *pathname, chmflg;
letter delete, (*keyin)();
int (*bytcntfn)();
- romkan_init ?ϡ??⡼??????ɽ(mode(4_JT) ??)
???ɤ߹????ǡ???????????
?Ѵ??ν??????????Ԥ????⡼??????ɽ?ϡ?pathname
?ˤ??äơ????Υե?????̾??
?ޤ??ϡ??ǥ??쥯?ȥꡦ?ѥ?̾?????????롣?ǥ??쥯?ȥꡦ?ѥ?̾?ΤȤ??ˤϡ?
???Υǥ??쥯?ȥ??β??? "mode"
?Υե?????̾?Ȥ??롣
???δؿ????Ƥ????塢romkan_getc(3J_T)
???Ƥ֤ȡ??缡???Ѵ????̤????뤳?Ȥ?
?Ǥ??롣
delete ?ϡ?DELETE
?Ȥ??ƻ??Ѥ??륭???饯???????? (romkan_getc
??) ???? ?ꤹ?롣 chmflg
?ϡ?????????̾?Ѵ??⡼?ɤ??ѹ????줿?ݡ??Ѵ?ʸ?????ϴؿ?
romkan_getc
???⡼???Ѵ??????ɤ??֤??褦?ˤ??????磰?ʳ??????ꤹ?롣
keyin
?ϡ?ʸ?????ϴؿ???̾???Ǥ??롣keyin
?? unsigned int ???ǡ??????Ϥʤ?
????ʸ?????Х??Ȥ??Ȥ??֤??褦?ˤ??롣
bytcntfn
?ϣ??Х???ʸ??ɾ???ؿ???̾???ǡ?????ʸ?????ؤ?
char ???ݥ???
??????ȼ?äƸƤӽФ???bytcntfn
?ϡ????????ؤ????Х??Ȥơ????줬???Х?
??ʸ???????????륳???ɤǤ?????
?????????Ǥʤ????? ??
???֤??褦?ˤ??롣 bytcntfn
?˥̥??????ꤹ???ȡ??գʣɣ?Ⱦ?ѥ??????ʥ????ɤ?????????0x8e,
0xa1??fe
?Х???ʸ???Ȥ???ɾ?????롣
romkan_init
?ϡ????ェλ???????֤????Ѵ?ɽ???ɤ߹??????˥??顼?Ф????ȣ?
???֤??ȶ??˥??顼???å??????? stderr
?˽??Ϥ??롣 ?̾romkan_init(pathname,
0x08 ????0x7f, ?????ϣ?, keyin,
??)?Ȥ??ƸƤ֡? romkan_init
?ϡ??Ѵ?ɽ???ɤ߹??ߡ??⡼?ɽ?????????
romkan_clear(3_JT) ????
?????Ѵ??ѽ????Хåե??ν????????Ԥ???
- romkan_getc(3J_T), romkan_next(3J_T), romkan_clear(3J_T),
romkan_dispmode(3J_T), romkan_ungetc(3J_T), 2A_CTRL(4_JT),
2B_ROMKANA(4_JT)