[Anthy-dev 2546] patch and git (7)

Back to archive index

NIIBE Yutaka gniib****@fsij*****
2005年 10月 15日 (土) 15:00:21 JST


7 つめ。 

build & test 通っています。

2005-10-15  NIIBE Yutaka  <gniib****@fsij*****>

	* src-diclib/wtype.c (anthy_wtype_get_wf): Make it public.
	* include/wtype.h (anthy_wtype_get_wf): Exported to public.

	* depgraph/mkdepgraph.c (write_wtype): Use anthy_wtype_get_wf.
 
diff --git a/depgraph/mkdepgraph.c b/depgraph/mkdepgraph.c
--- a/depgraph/mkdepgraph.c
+++ b/depgraph/mkdepgraph.c
@@ -435,8 +435,7 @@ write_wtype(FILE *fp, wtype_t wt)
   fputc(anthy_wtype_get_scos(wt), fp);
   fputc(anthy_wtype_get_cc(wt), fp);
   fputc(anthy_wtype_get_ct(wt), fp);
-  /* 直接のアクセスはlayer violation気味 */
-  fputc(wt.wf, fp);
+  fputc(anthy_wtype_get_wf(wt), fp);
   fputc(0, fp);
   fputc(0, fp);
 }
diff --git a/include/wtype.h b/include/wtype.h
--- a/include/wtype.h
+++ b/include/wtype.h
@@ -205,6 +205,7 @@ int anthy_wtype_get_cc(wtype_t w);
 int anthy_wtype_get_ct(wtype_t w);
 int anthy_wtype_get_cos(wtype_t w);
 int anthy_wtype_get_scos(wtype_t w);
+int anthy_wtype_get_wf(wtype_t w);
 
 /* フラグの取得 */
 int anthy_wtype_get_indep(wtype_t w);
diff --git a/src-diclib/wtype.c b/src-diclib/wtype.c
--- a/src-diclib/wtype.c
+++ b/src-diclib/wtype.c
@@ -191,7 +191,7 @@ anthy_wtype_get_scos(wtype_t t)
   return t.scos;
 }
 
-static int
+int
 anthy_wtype_get_wf(wtype_t t)
 {
   return t.wf;



Anthy-dev メーリングリストの案内
Back to archive index