From 8aa291c66637013b4bb7cbbb2905056f06ab711e Mon Sep 17 00:00:00 2001 From: Choe Hwanjin Date: Thu, 4 Jan 2007 22:36:11 +0900 Subject: [PATCH] =?utf8?q?keyboard=20array=EC=99=80=20combination=20array?= =?utf8?q?=EB=A5=BC=20const=EB=A1=9C=20=EB=B0=94=EA=BF=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: http://kldp.net/svn/hangul/libhangul/trunk@106 8f00fcd2-89fc-0310-932e-b01be5b65e01 --- hangul/hangulinputcontext.c | 16 ++++++++-------- hangul/hangulkeyboard.h | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/hangul/hangulinputcontext.c b/hangul/hangulinputcontext.c index d0942ee..e304c63 100644 --- a/hangul/hangulinputcontext.c +++ b/hangul/hangulinputcontext.c @@ -76,42 +76,42 @@ struct _HangulInputContext { static const HangulKeyboard hangul_keyboard_2 = { HANGUL_KEYBOARD_TYPE_JAMO, - hangul_keyboard_table_2 + (ucschar*)hangul_keyboard_table_2 }; static const HangulKeyboard hangul_keyboard_32 = { HANGUL_KEYBOARD_TYPE_JASO, - hangul_keyboard_table_32 + (ucschar*)hangul_keyboard_table_32 }; static const HangulKeyboard hangul_keyboard_390 = { HANGUL_KEYBOARD_TYPE_JASO, - hangul_keyboard_table_390 + (ucschar*)hangul_keyboard_table_390 }; static const HangulKeyboard hangul_keyboard_3final = { HANGUL_KEYBOARD_TYPE_JASO, - hangul_keyboard_table_3final + (ucschar*)hangul_keyboard_table_3final }; static const HangulKeyboard hangul_keyboard_3sun = { HANGUL_KEYBOARD_TYPE_JASO, - hangul_keyboard_table_3sun + (ucschar*)hangul_keyboard_table_3sun }; static const HangulKeyboard hangul_keyboard_3yet = { HANGUL_KEYBOARD_TYPE_JASO, - hangul_keyboard_table_3yet + (ucschar*)hangul_keyboard_table_3yet }; static const HangulCombination hangul_combination_default = { N_ELEMENTS(hangul_combination_table_default), - hangul_combination_table_default + (HangulCombinationItem*)hangul_combination_table_default }; static const HangulCombination hangul_combination_full = { N_ELEMENTS(hangul_combination_table_full), - hangul_combination_table_full + (HangulCombinationItem*)hangul_combination_table_full }; static void hangul_buffer_push(HangulBuffer *buffer, ucschar ch); diff --git a/hangul/hangulkeyboard.h b/hangul/hangulkeyboard.h index b93c870..aa609ea 100644 --- a/hangul/hangulkeyboard.h +++ b/hangul/hangulkeyboard.h @@ -1,4 +1,4 @@ -static ucschar hangul_keyboard_table_2[] = { +static const ucschar hangul_keyboard_table_2[] = { 0x0000, /* 0x00 null */ 0x0000, /* 0x01 start of heading */ 0x0000, /* 0x02 start of text */ @@ -129,7 +129,7 @@ static ucschar hangul_keyboard_table_2[] = { 0x0000 /* 0x7F delete */ }; -static ucschar hangul_keyboard_table_32[] = { +static const ucschar hangul_keyboard_table_32[] = { 0x0000, /* 0x00 null */ 0x0000, /* 0x01 start of heading */ 0x0000, /* 0x02 start of text */ @@ -260,7 +260,7 @@ static ucschar hangul_keyboard_table_32[] = { 0x0000 /* 0x7F delete */ }; -static ucschar hangul_keyboard_table_390[] = { +static const ucschar hangul_keyboard_table_390[] = { 0x0000, /* 0x00 null */ 0x0000, /* 0x01 start of heading */ 0x0000, /* 0x02 start of text */ @@ -391,7 +391,7 @@ static ucschar hangul_keyboard_table_390[] = { 0x0000 /* 0x7F delete */ }; -static ucschar hangul_keyboard_table_3final[] = { +static const ucschar hangul_keyboard_table_3final[] = { 0x0000, /* 0x00 null */ 0x0000, /* 0x01 start of heading */ 0x0000, /* 0x02 start of text */ @@ -522,7 +522,7 @@ static ucschar hangul_keyboard_table_3final[] = { 0x0000 /* 0x7F delete */ }; -static ucschar hangul_keyboard_table_3sun[] = { +static const ucschar hangul_keyboard_table_3sun[] = { 0x0000, /* 0x00 null */ 0x0000, /* 0x01 start of heading */ 0x0000, /* 0x02 start of text */ @@ -653,7 +653,7 @@ static ucschar hangul_keyboard_table_3sun[] = { 0x0000 /* 0x7F delete */ }; -static ucschar hangul_keyboard_table_3yet[] = { +static const ucschar hangul_keyboard_table_3yet[] = { 0x0000, /* 0x00 null */ 0x0000, /* 0x01 start of heading */ 0x0000, /* 0x02 start of text */ @@ -784,7 +784,7 @@ static ucschar hangul_keyboard_table_3yet[] = { 0x0000 /* 0x7F delete */ }; -static HangulCombinationItem hangul_combination_table_default[] = { +static const HangulCombinationItem hangul_combination_table_default[] = { { 0x11001100, 0x1101 }, /* choseong kiyeok + kiyeok = ssangkiyeok */ { 0x11031103, 0x1104 }, /* choseong tikeut + tikeut = ssangtikeut */ { 0x11071107, 0x1108 }, /* choseong pieup + pieup = ssangpieup */ @@ -812,7 +812,7 @@ static HangulCombinationItem hangul_combination_table_default[] = { { 0x11ba11ba, 0x11bb }, /* jongseong sios + sios = ssangsios */ }; -static HangulCombinationItem hangul_combination_table_full[] = { +static const HangulCombinationItem hangul_combination_table_full[] = { { 0x11001100, 0x1101 }, /* choseong ssangkiyeok = kiyeok + kiyeok */ { 0x11021100, 0x1113 }, /* choseong nieun-kiyeok = nieun + kiyeok */ { 0x11021102, 0x1114 }, /* choseong ssangnieun = nieun + nieun */ -- 2.7.4