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

more warning suppression
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sat, 06 Mar 2010 23:24:53 +0900
parents c966456648ad
children 35bc1f2e3f14
comparison
equal deleted inserted replaced
27:6bfa7ea3b75b 28:a7ccf412ba02
31 31
32 /* 32 /*
33 UJIS 形式を、辞書登録可能形式, 及び固定形式辞書に変換するプログラム。 33 UJIS 形式を、辞書登録可能形式, 及び固定形式辞書に変換するプログラム。
34 */ 34 */
35 35
36 #ifndef lint
37 static char *rcs_id = "$Id: atod.c,v 1.13 2004/08/12 09:03:19 aono 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>
226 usage (); 222 usage ();
227 exit (1); 223 exit (1);
228 } 224 }
229 strncpy (outfile, argv[1], LINE_SIZE-1); 225 strncpy (outfile, argv[1], LINE_SIZE-1);
230 outfile[LINE_SIZE-1] = '\0'; 226 outfile[LINE_SIZE-1] = '\0';
231 if (wnn_loadhinsi (hinsi_file_name) != 0) 227 if (wnn_loadhinsi ((unsigned char *)hinsi_file_name) != 0)
232 { 228 {
233 fprintf (stderr, "Can't Open hinsi_file.\n"); 229 fprintf (stderr, "Can't Open hinsi_file.\n");
234 exit (1); 230 exit (1);
235 } 231 }
236 if (init_heap (DEF_ENTRIES * HEAP_PER_LINE, DEF_ENTRIES * YOMI_PER_LINE, maxserial, DEF_ENTRIES, stdin) == -1) 232 if (init_heap (DEF_ENTRIES * HEAP_PER_LINE, DEF_ENTRIES * YOMI_PER_LINE, maxserial, DEF_ENTRIES, stdin) == -1)
275 extern void set_cswidth (); 271 extern void set_cswidth ();
276 272
277 com_name = argv[0]; 273 com_name = argv[0];
278 init (argc, argv); 274 init (argc, argv);
279 275
280 if (cswidth_name = get_cswidth_name (WNN_DEFAULT_LANG)) 276 if ((cswidth_name = get_cswidth_name (WNN_DEFAULT_LANG)))
281 set_cswidth (create_cswidth (cswidth_name)); 277 set_cswidth (create_cswidth (cswidth_name));
282 278
283 #ifdef CHINESE 279 #ifdef CHINESE
284 ujis_header (&which_dict); /* read header of UJIS dic */ 280 ujis_header (&which_dict); /* read header of UJIS dic */
285 #else 281 #else