summaryrefslogtreecommitdiff
path: root/anthy/ruleparser.h
diff options
context:
space:
mode:
Diffstat (limited to 'anthy/ruleparser.h')
-rw-r--r--anthy/ruleparser.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/anthy/ruleparser.h b/anthy/ruleparser.h
new file mode 100644
index 0000000..0f05324
--- /dev/null
+++ b/anthy/ruleparser.h
@@ -0,0 +1,19 @@
+/*
+ * 汎用の設定ファイルパーザ
+ */
+#ifndef _ruleparser_h_included_
+#define _ruleparser_h_included_
+
+/*
+ * ファイル名が'/'で始まっていれば絶対パス
+ * ファイル名が'./'で始まっていればカレントディレクトリ
+ * ファイル名がNULLならば標準入力
+ * そうでなければ、ANTHYDIR中のファイルを開ける
+ */
+int anthy_open_file(const char *fn);/* returns 0 on success */
+void anthy_close_file(void);
+int anthy_read_line(char ***tokens, int *nr);/* returns 0 on success */
+int anthy_get_line_number(void);
+void anthy_free_line(void);
+
+#endif