0
|
1 /*
|
|
2 * $Id: cvt_head.h,v 1.6 2006/03/04 19:01:45 aonoto Exp $
|
|
3 */
|
|
4
|
|
5 /*
|
|
6 * FreeWnn is a network-extensible Kana-to-Kanji conversion system.
|
|
7 * This file is part of FreeWnn.
|
|
8 *
|
|
9 * Copyright Kyoto University Research Institute for Mathematical Sciences
|
|
10 * 1987, 1988, 1989, 1990, 1991, 1992
|
|
11 * Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999
|
|
12 * Copyright ASTEC, Inc. 1987, 1988, 1989, 1990, 1991, 1992
|
|
13 * Copyright FreeWnn Project 1999, 2000, 2002, 2006
|
|
14 *
|
|
15 * Maintainer: FreeWnn Project
|
|
16 *
|
|
17 * This program is free software; you can redistribute it and/or modify
|
|
18 * it under the terms of the GNU General Public License as published by
|
|
19 * the Free Software Foundation; either version 2 of the License, or
|
|
20 * (at your option) any later version.
|
|
21 *
|
|
22 * This program is distributed in the hope that it will be useful,
|
|
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
25 * GNU General Public License for more details.
|
|
26 *
|
|
27 * You should have received a copy of the GNU General Public License
|
|
28 * along with this program; if not, write to the Free Software
|
|
29 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
30 */
|
|
31
|
|
32 /***********************************************************************
|
|
33 cvt_head.h ___
|
|
34 87/11/24|改正|
|
|
35  ̄ ̄ ̄
|
|
36 convert_key.c 及び convert_read.c で使われる
|
|
37 へッダファイル。テーブルのサイズの定義など。
|
|
38 ***********************************************************************/
|
|
39 /* Version 4.0 */
|
|
40
|
|
41 #include "commonhd.h"
|
|
42
|
|
43 #if defined(luna) || defined(DGUX) || defined(hpux) || defined(sun)
|
|
44 #ifndef SUPPORT_TWODIGIT_FUNCTIONS
|
|
45 #define SUPPORT_TWODIGIT_FUNCTIONS
|
|
46 #endif /* SUPPORT_TWODIGIT_FUNCTIONS */
|
|
47 #endif /* defined(luna) || defined(DGUX) || defined(hpux) || defined(sun) */
|
|
48
|
|
49 #define BITSIZ (sizeof(int) * 8)
|
|
50 #define CHANGE_MAX 4 /* 変換テーブルの最大個数÷BITSIZを下回らない整数 */
|
|
51 #define AREASIZE 1024
|
|
52
|
|
53 #ifdef WNNDEFAULT
|
|
54 # include "wnn_config.h"
|
|
55 /* マクロCONVERT_FILENAMEの定義(のためだけ)。コンパイル時は、ヘッダファイル
|
|
56 のサーチパスに、Wnnのインクルードファイルのありかを設定しておくこと。 */
|
|
57 #else
|
|
58 # define CONVERT_FILENAME "cvt_key_tbl"
|
|
59 #endif
|
|
60
|
|
61 #define div_up(a, b) ((a + b - 1) / b)
|
|
62 /* a,bは非負整数。a/bを切り上げて整数にする */
|
|
63
|
|
64 struct CONVCODE
|
|
65 {
|
|
66 int tokey; /* 変換されたコード */
|
|
67 char *fromkey; /* 変換するコード */
|
|
68 };
|