summaryrefslogtreecommitdiff
path: root/hangul
diff options
context:
space:
mode:
authorChoe Hwanjin <choe.hwanjin@gmail.com>2018-06-05 12:29:02 +0900
committerChoe Hwanjin <choe.hwanjin@gmail.com>2018-06-05 12:29:02 +0900
commite97db746cc84f9338eb60b0aa60c3b22a0aea04a (patch)
tree6854b8dcec3ef787d7aefb6db2b3fa312146afd9 /hangul
parent2222deef90efd70dbe4800317211f3c18d403923 (diff)
downloadlibhangul-e97db746cc84f9338eb60b0aa60c3b22a0aea04a.tar.gz
키보드 파일을 로딩시 재귀호출 테스트 코드 추가
키보드 파일이 자기자신을 include한 경우에대한 테스트 코드 추가한다. 관련 api hangul_keyboard_new_from_file()도 추가하고 샘플 키보드 파일 recursive.xml을 추가한다.
Diffstat (limited to 'hangul')
-rw-r--r--hangul/hangul.h1
-rw-r--r--hangul/hangulkeyboard.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/hangul/hangul.h b/hangul/hangul.h
index 447e1e3..61d4357 100644
--- a/hangul/hangul.h
+++ b/hangul/hangul.h
@@ -101,6 +101,7 @@ int hangul_fini();
/* keyboard */
HangulKeyboard* hangul_keyboard_new(void);
+HangulKeyboard* hangul_keyboard_new_from_file(const char* path);
void hangul_keyboard_delete(HangulKeyboard *keyboard);
void hangul_keyboard_set_type(HangulKeyboard *keyboard, int type);
diff --git a/hangul/hangulkeyboard.c b/hangul/hangulkeyboard.c
index caaae29..c04a417 100644
--- a/hangul/hangulkeyboard.c
+++ b/hangul/hangulkeyboard.c
@@ -767,7 +767,7 @@ done:
context->path_stack_top--;
}
-static HangulKeyboard*
+HangulKeyboard*
hangul_keyboard_new_from_file(const char* path)
{
HangulKeyboardLoadContext context;