
1: /* 2: * 汎用の設定ファイルパーザ 3: */ 4: #ifndef _ruleparser_h_included_ 5: #define _ruleparser_h_included_ 6: 7: /* 8: * ファイル名が'/'で始まっていれば絶対パス 9: * ファイル名が'./'で始まっていればカレントディレクトリ 10: * ファイル名がNULLならば標準入力 11: * そうでなければ、ANTHYDIR中のファイルを開ける 12: */ 13: int anthy_open_file(const char *fn);/* returns 0 on success */ 14: void anthy_close_file(void); 15: int anthy_read_line(char ***tokens, int *nr);/* returns 0 on success */ 16: int anthy_get_line_number(void); 17: void anthy_free_line(void); 18: 19: #endif