Hiroyuki Ikezoe
ikezo****@users*****
2006年 11月 27日 (月) 20:01:05 JST
Index: tomoe/recognizer/tomoe-recognizer-simple-logic.c diff -u tomoe/recognizer/tomoe-recognizer-simple-logic.c:1.34 tomoe/recognizer/tomoe-recognizer-simple-logic.c:1.35 --- tomoe/recognizer/tomoe-recognizer-simple-logic.c:1.34 Mon Nov 27 18:11:09 2006 +++ tomoe/recognizer/tomoe-recognizer-simple-logic.c Mon Nov 27 20:01:05 2006 @@ -17,7 +17,7 @@ * Free Software Foundation, Inc., 59 Temple Place, Suite 330, * Boston, MA 02111-1307 USA * - * $Id: tomoe-recognizer-simple-logic.c,v 1.34 2006/11/27 09:11:09 kous Exp $ + * $Id: tomoe-recognizer-simple-logic.c,v 1.35 2006/11/27 11:01:05 ikezoe Exp $ */ #include <stdlib.h> @@ -54,8 +54,7 @@ static void cand_priv_free (cand_priv *cand_p); static GPtrArray *get_candidates (GList *points, GPtrArray *cands); -static gint match_stroke_num (TomoeDict *dict, - TomoeChar *chr, +static gint match_stroke_num (TomoeChar *chr, int input_stroke_num, GArray *adapted); static TomoeWriting *create_sparse_writing (TomoeWriting *writing); @@ -122,8 +121,7 @@ gboolean f = TRUE; cand_p = g_ptr_array_index (cands, i); - pj = match_stroke_num (dict, - tomoe_candidate_get_char (cand_p->cand), + pj = match_stroke_num (tomoe_candidate_get_char (cand_p->cand), input_stroke_num, cand_p->adapted_strokes); if (pj < 0) @@ -586,7 +584,7 @@ } static int -match_stroke_num (TomoeDict* dict, TomoeChar *chr, int input_stroke_num, GArray *adapted) +match_stroke_num (TomoeChar *chr, int input_stroke_num, GArray *adapted) { int pj = 100; gint adapted_num;