[Tomoe-cvs 1211] CVS update: tomoe/recognizer

アーカイブの一覧に戻る

Hiroyuki Ikezoe ikezo****@users*****
2006年 11月 27日 (月) 20:19:59 JST


Index: tomoe/recognizer/tomoe-recognizer-simple-logic.c
diff -u tomoe/recognizer/tomoe-recognizer-simple-logic.c:1.35 tomoe/recognizer/tomoe-recognizer-simple-logic.c:1.36
--- tomoe/recognizer/tomoe-recognizer-simple-logic.c:1.35	Mon Nov 27 20:01:05 2006
+++ tomoe/recognizer/tomoe-recognizer-simple-logic.c	Mon Nov 27 20:19:58 2006
@@ -17,14 +17,13 @@
  *  Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  *  Boston, MA  02111-1307  USA
  *
- *  $Id: tomoe-recognizer-simple-logic.c,v 1.35 2006/11/27 11:01:05 ikezoe Exp $
+ *  $Id: tomoe-recognizer-simple-logic.c,v 1.36 2006/11/27 11:19:58 ikezoe Exp $
  */
 
 #include <stdlib.h>
 #include <string.h>
 #include <math.h>
 #include "tomoe-char.h"
-#include "tomoe-dict.h"
 #include "tomoe-candidate.h"
 #include "tomoe-recognizer-simple-logic.h"
 
@@ -586,9 +585,9 @@
 static int
 match_stroke_num (TomoeChar *chr, int input_stroke_num, GArray *adapted)
 {
-    int pj = 100;
+    gint pj = 100;
     gint adapted_num;
-    int d_stroke_num = tomoe_writing_get_n_strokes (tomoe_char_get_writing (chr));
+    gint d_stroke_num = tomoe_writing_get_n_strokes (tomoe_char_get_writing (chr));
 
     if (!adapted)
         return -1;
@@ -596,9 +595,7 @@
     adapted_num = adapted->len;
 
     if (d_stroke_num - input_stroke_num >= 3) {
-        int i, j;
-
-        pj = 100;
+        gint i, j;
 
         for (i = 0; i < adapted_num; i++) {
             j = g_array_index (adapted, gint, i);


tomoe-cvs メーリングリストの案内
アーカイブの一覧に戻る