1 /*
2  * $Id: sxheader.h,v 1.2 2001/06/14 18:16:13 ura 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 1991, 1992 by Massachusetts Institute of Technology
14  *
15  * Author: OMRON SOFTWARE Co., Ltd. <freewnn@rd.kyoto.omronsoft.co.jp>
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, or (at your option)
20  * 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 GNU Emacs; see the file COPYING.  If not, write to the
29  * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
30  *
31  * Commentary:
32  *
33  * Change log:
34  *
35  * Last modified date: 8,Feb.1999
36  *
37  * Code:
38  *
39  */
40 /*      Version 4.0
41  */
42 /**************************
43  * header of standard i/o
44  **************************/
45 
46 #include "jslib.h"
47 
48 extern int max_env;
49 extern WnnEnv *normal_env;
50 extern WnnEnv *reverse_env;
51 extern WnnEnv *cur_normal_env;
52 extern WnnEnv *cur_reverse_env;
53 extern int save_env_id[32];
54 extern int save_env_reverse_id[32];
55 extern int env_is_reverse;
56 
57 extern w_char *input_buffer;
58 extern w_char *return_buf;
59 
60 extern int cur_bnst_;           /* current bunsetsu pointer */
61 
62 extern int rubout_code;
63 
64 extern char romkan_clear_tbl[TBL_CNT][TBL_SIZE];
65 extern int (*main_table[TBL_CNT][TBL_SIZE]) (); /* holding commands */
66 extern char jishopath[];
67 extern char hindopath[];
68 extern char fuzokugopath[];
69 
70 extern ClientBuf *c_b;
71 
72 extern int excellent_delete;
73 
74 extern int *bunsetsu;
75 extern int *bunsetsuend;
76 extern int *touroku_bnst;
77 extern int touroku_bnst_cnt;
78 extern w_char *kill_buffer;
79 extern w_char *remember_buf;
80 extern int kill_buffer_offset;
81 
82 extern int touroku_comment;
83 
84 extern char *uumrc_name;
85 extern char *envrc_name;
86 extern char *uumkey_name;
87 extern char *cvt_key_file;
88 extern char *cvt_fun_file;
89 extern char *cvt_meta_file;
90 extern char *rkfile_name;
91 
92 extern char *jserver_name;
93 extern char *display_name;
94 extern char *username;
95 
96 extern int maxbunsetsu;
97 extern int max_ichiran_kosu;
98 extern int maxchg;
99 extern int maxlength;
100 
101 extern WNN_DIC_INFO *dicinfo;
102 extern int dic_list_size;
103 
104 extern char *prgname;
105 
106 extern struct wnn_ret_buf rb;
107 extern struct wnn_ret_buf dicrb;
108 extern struct wnn_ret_buf wordrb;
109 
110 extern Xjutil *xjutil;
111 extern XIMRootRec *cur_root;
112 extern JutilTextRec *cur_text;
113 extern Romkan *cur_rk;
114 extern RomkanTable *cur_rk_table;
115 extern BoxRec *box_list;
116 
117 extern XjutilFSList font_set_list;
118 extern XjutilFSRec *cur_fs;
119 
120 
121 extern char *default_message[];
122 extern struct msg_cat *cd;
123 extern BoxRec *create_box ();
124 
125 extern wchar *wc_buf;
126 extern unsigned char *ct_buf;
127 extern unsigned char *c_buf;
128 extern int wc_buf_max;
129 extern int ct_buf_max;
130 extern int c_buf_max;
131 #ifndef X_WCHAR
132 extern wchar_t *wt_buf;
133 extern int wt_buf_max;
134 #endif /* !X_WCHAR */
135 
136 extern ConvCode cvt_key_tbl[];
137 extern int cvt_key_tbl_cnt;
138 
139 extern FunctionTable *f_table;
140 extern FunctionTable function_db[];
141