keyboard array와 combination array를 const로 바꿈
authorChoe Hwanjin <choe.hwanjin@gmail.com>
Thu, 4 Jan 2007 13:36:11 +0000 (22:36 +0900)
committerChoe Hwanjin <choe.hwanjin@gmail.com>
Thu, 4 Jan 2007 13:36:11 +0000 (22:36 +0900)
git-svn-id: http://kldp.net/svn/hangul/libhangul/trunk@106 8f00fcd2-89fc-0310-932e-b01be5b65e01

hangul/hangulinputcontext.c
hangul/hangulkeyboard.h

index d0942ee..e304c63 100644 (file)
@@ -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);
index b93c870..aa609ea 100644 (file)
@@ -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 */