comparison Wnn/jutil/dtoa.c @ 28:a7ccf412ba02

more warning suppression
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sat, 06 Mar 2010 23:24:53 +0900
parents c966456648ad
children
comparison
equal deleted inserted replaced
27:6bfa7ea3b75b 28:a7ccf412ba02
31 31
32 /* 32 /*
33 辞書を ASCII 形式の辞書に変換するプログラム。 33 辞書を ASCII 形式の辞書に変換するプログラム。
34 */ 34 */
35 35
36 #ifndef lint
37 static char *rcs_id = "$Id: dtoa.c,v 1.9 2005/06/12 17:14:23 aonoto Exp $";
38 #endif /* lint */
39
40 #ifdef HAVE_CONFIG_H 36 #ifdef HAVE_CONFIG_H
41 # include <config.h> 37 # include <config.h>
42 #endif 38 #endif
43 39
44 #include <stdio.h> 40 #include <stdio.h>
131 extern char *get_cswidth_name (); 127 extern char *get_cswidth_name ();
132 extern void set_cswidth (); 128 extern void set_cswidth ();
133 129
134 com_name = argv[0]; 130 com_name = argv[0];
135 131
136 if (cswidth_name = get_cswidth_name (WNN_DEFAULT_LANG)) 132 if ((cswidth_name = get_cswidth_name (WNN_DEFAULT_LANG)))
137 set_cswidth (create_cswidth (cswidth_name)); 133 set_cswidth (create_cswidth (cswidth_name));
138 parse_options (&argc, &argv); 134 parse_options (&argc, &argv);
139 135
140 if ((ifpter = fopen (infile, "r")) == NULL) 136 if ((ifpter = fopen (infile, "r")) == NULL)
141 { 137 {
156 set_hinsi (); 152 set_hinsi ();
157 ghindo (argc - 2, argv + 2); /* Gather Hindo */ 153 ghindo (argc - 2, argv + 2); /* Gather Hindo */
158 if (which_dict == WNN_STATIC_DICT) 154 if (which_dict == WNN_STATIC_DICT)
159 { 155 {
160 kset (); 156 kset ();
161 sdtoujis (jt.hontai, 0); 157 sdtoujis ((char *)jt.hontai, 0);
162 #ifdef CHINESE 158 #ifdef CHINESE
163 } 159 }
164 else if ((which_dict & 0x00ff) == WNN_REV_DICT) 160 else if ((which_dict & 0x00ff) == WNN_REV_DICT)
165 { 161 {
166 #else 162 #else
233 if (*argc < 2) 229 if (*argc < 2)
234 { 230 {
235 usage (); 231 usage ();
236 } 232 }
237 strcpy (infile, (*argv)[1]); 233 strcpy (infile, (*argv)[1]);
238 if (wnn_loadhinsi (hinsi_file_name) != 0) 234 if (wnn_loadhinsi ((unsigned char *)hinsi_file_name) != 0)
239 { 235 {
240 fprintf (stderr, "Can't Open hinsi_file.\n"); 236 fprintf (stderr, "Can't Open hinsi_file.\n");
241 exit (1); 237 exit (1);
242 } 238 }
243 } 239 }