0
|
1 /*
|
|
2 * $Id: xext.h,v 1.2 2001/06/14 18:16:13 ura Exp $
|
|
3 */
|
|
4 /*
|
|
5 * FreeWnn is a network-extensible Kana-to-Kanji conversion system.
|
|
6 * This file is part of FreeWnn.
|
|
7 *
|
|
8 * Copyright Kyoto University Research Institute for Mathematical Sciences
|
|
9 * 1987, 1988, 1989, 1990, 1991, 1992
|
|
10 * Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999
|
|
11 * Copyright ASTEC, Inc. 1987, 1988, 1989, 1990, 1991, 1992
|
|
12 * Copyright 1991, 1992 by Massachusetts Institute of Technology
|
|
13 *
|
|
14 * Author: OMRON SOFTWARE Co., Ltd. <freewnn@rd.kyoto.omronsoft.co.jp>
|
|
15 *
|
|
16 * This program is free software; you can redistribute it and/or modify
|
|
17 * it under the terms of the GNU General Public License as published by
|
|
18 * the Free Software Foundation; either version 2, or (at your option)
|
|
19 * any later version.
|
|
20 *
|
|
21 * This program is distributed in the hope that it will be useful,
|
|
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
24 * GNU General Public License for more details.
|
|
25 *
|
|
26 * You should have received a copy of the GNU General Public License
|
|
27 * along with GNU Emacs; see the file COPYING. If not, write to the
|
|
28 * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
29 *
|
|
30 * Commentary:
|
|
31 *
|
|
32 * Change log:
|
|
33 *
|
|
34 * Last modified date: 8,Feb.1999
|
|
35 *
|
|
36 * Code:
|
|
37 *
|
|
38 */
|
|
39 /* Version 4.0
|
|
40 */
|
|
41 /*
|
|
42 * basic_op.c
|
|
43 */
|
|
44 extern int redraw_nisemono ();
|
|
45 extern int buffer_in ();
|
|
46 extern int kana_in ();
|
|
47 extern int delete_char1 ();
|
|
48 extern int t_delete_char ();
|
|
49 extern int kuten ();
|
|
50 extern int jis ();
|
|
51 extern int input_a_char_from_function ();
|
|
52 extern int t_rubout ();
|
|
53 extern int t_kill ();
|
|
54 #ifdef CONVERT_by_STROKE
|
|
55 extern int errort_kill ();
|
|
56 #endif /* CONVERT_by_STROKE */
|
|
57 extern int t_yank ();
|
|
58 extern int t_ret ();
|
|
59 extern int t_quit ();
|
|
60 extern int c_top ();
|
|
61 extern int c_end ();
|
|
62 extern int c_end_nobi ();
|
|
63 extern int t_jmp_backward ();
|
|
64 extern int t_jmp_forward ();
|
|
65 extern int forward_char ();
|
|
66 extern int backward_char ();
|
|
67 extern int forward ();
|
|
68 extern int backward ();
|
|
69 extern int insert_char ();
|
|
70 extern int insert_string ();
|
|
71 extern int quote ();
|
|
72 extern void redraw_line ();
|
|
73
|
|
74 /*
|
|
75 * box.c
|
|
76 */
|
|
77 extern BoxRec *create_box ();
|
|
78 extern int remove_box ();
|
|
79 extern void map_box ();
|
|
80 extern void unmap_box ();
|
|
81 extern void freeze_box ();
|
|
82 extern void unfreeze_box ();
|
|
83 extern void moveresize_box ();
|
|
84 extern void changecolor_box ();
|
|
85 extern void redraw_box ();
|
|
86 extern void reverse_box ();
|
|
87 extern void change_reverse_box ();
|
|
88
|
|
89 /*
|
|
90 * cursor.c
|
|
91 */
|
|
92 extern void throw_col ();
|
|
93 extern void h_r_on ();
|
|
94 extern void h_r_off ();
|
|
95 extern void u_s_on ();
|
|
96 extern void u_s_off ();
|
|
97 extern void kk_cursor_invisible ();
|
|
98 extern void kk_cursor_normal ();
|
|
99 extern void reset_cursor_status ();
|
|
100 extern void set_cursor_status ();
|
|
101 extern void clr_line_all ();
|
|
102 extern void push_hrus ();
|
|
103 extern void pop_hrus ();
|
|
104 extern void set_hanten_ul ();
|
|
105 extern void set_bold ();
|
|
106 extern void reset_bold ();
|
|
107
|
|
108 /*
|
|
109 * display.c
|
|
110 */
|
|
111 extern void JWmark_cursor ();
|
|
112 extern void JW1Mputwc ();
|
|
113 extern void JWMflushw_buf ();
|
|
114 extern void jw_disp_mode ();
|
|
115 extern void JWMline_clear ();
|
|
116 extern void JWcursor_visible ();
|
|
117 extern void JWcursor_invisible ();
|
|
118 extern void JWcursor_move ();
|
|
119 extern void redraw_text ();
|
|
120 extern void redraw_note ();
|
|
121 extern void check_scroll ();
|
|
122
|
|
123 /*
|
|
124 * functions.c
|
|
125 */
|
|
126 extern int bytcntfn ();
|
|
127 extern void conv_ltr_to_ieuc ();
|
|
128 extern int call_t_redraw_move_normal ();
|
|
129 extern int call_t_redraw_move ();
|
|
130 extern int call_t_redraw_move_1_normal ();
|
|
131 extern int call_t_redraw_move_1 ();
|
|
132 extern int call_t_redraw_move_2_normal ();
|
|
133 extern int call_t_redraw_move_2 ();
|
|
134 extern int call_t_print_l_normal ();
|
|
135 extern int call_t_print_l ();
|
|
136 extern int c_top_normal ();
|
|
137 extern int c_end_normal ();
|
|
138 extern int c_end_nobi_normal ();
|
|
139 extern int char_q_len_normal ();
|
|
140 extern int char_len_normal ();
|
|
141 extern int t_redraw_move_normal ();
|
|
142 extern int t_print_l_normal ();
|
|
143 extern int call_jl_yomi_len ();
|
|
144 #ifdef CHINESE
|
|
145 extern int call_t_redraw_move_yincod ();
|
|
146 extern int call_t_redraw_move_1_yincod ();
|
|
147 extern int call_t_redraw_move_2_yincod ();
|
|
148 extern int call_t_print_l_yincod ();
|
|
149 extern int input_yincod ();
|
|
150 extern int redraw_when_chmsig_yincod ();
|
|
151 extern int c_top_yincod ();
|
|
152 extern int c_end_yincod ();
|
|
153 extern int c_end_nobi_yincod ();
|
|
154 extern int print_out_yincod ();
|
|
155 extern int char_q_len_yincod ();
|
|
156 extern int char_len_yincod ();
|
|
157 extern int t_redraw_move_yincod ();
|
|
158 extern int t_print_l_yincod ();
|
|
159 extern int not_call_jl_yomi_len ();
|
|
160 #endif /* CHINESE */
|
|
161
|
|
162 /*
|
|
163 * hinsi.c
|
|
164 */
|
|
165 extern int get_default_hinsi ();
|
|
166 extern int hinsi_in ();
|
|
167
|
|
168 /*
|
|
169 * ichiran.c
|
|
170 */
|
|
171 extern void JW3Mputc ();
|
|
172 extern void set_wm_properties ();
|
|
173 extern void decide_position ();
|
|
174 extern int init_ichiran ();
|
|
175 extern void end_ichiran ();
|
|
176 extern void lock_ichiran ();
|
|
177 extern void unlock_ichiran ();
|
|
178 extern void xw_move_hilite ();
|
|
179 extern void xw_jikouho_move_hilite ();
|
|
180 extern int alloc_for_save_buf ();
|
|
181 extern void redraw_ichi_w ();
|
|
182 extern int next_ichi ();
|
|
183 extern int back_ichi ();
|
|
184 extern int find_hilite ();
|
|
185 extern int find_ji_hilite ();
|
|
186 extern void xw_forward_select ();
|
|
187 extern void xw_backward_select ();
|
|
188 extern int xw_next_select ();
|
|
189 extern int xw_previous_select ();
|
|
190 extern void xw_linestart_select ();
|
|
191 extern void xw_lineend_select ();
|
|
192 extern int init_yes_or_no ();
|
|
193 extern void end_yes_or_no ();
|
|
194 extern void xw_select_button ();
|
|
195 extern void xw_select_jikouho_button ();
|
|
196 extern void xw_mouseleave ();
|
|
197 extern int xw_mouse_select ();
|
|
198 extern void draw_nyuu_w ();
|
|
199 extern void clear_nyuu_w ();
|
|
200 extern void change_ichi_buf ();
|
|
201 extern void insert_space_in_ichi_buf ();
|
|
202
|
|
203 /*
|
|
204 * init_w.c
|
|
205 */
|
|
206 extern char env_state ();
|
|
207 extern int set_cur_env ();
|
|
208 extern void get_new_env ();
|
|
209 extern void return_error ();
|
|
210 extern void read_wm_id ();
|
|
211 extern int create_text ();
|
|
212 extern int create_jutil ();
|
|
213 extern int create_ichi ();
|
|
214 extern int create_yes_no ();
|
|
215 extern void xw_end ();
|
|
216 extern XjutilFSRec *add_fontset_list ();
|
|
217 extern XjutilFSRec *get_fontset_list ();
|
|
218 extern int create_xjutil ();
|
|
219 extern void send_end_work ();
|
|
220
|
|
221 /*
|
|
222 * jhlp.c
|
|
223 */
|
|
224 extern int keyin ();
|
|
225 extern void terminate_handler ();
|
|
226 extern void main ();
|
|
227
|
|
228 /*
|
|
229 * jutil.c
|
|
230 */
|
|
231 extern int sStrcpy_and_ck ();
|
|
232 extern void if_dead_disconnect ();
|
|
233 extern int yes_or_no ();
|
|
234 extern void paramchg ();
|
|
235 extern int update_dic_list ();
|
|
236 extern void dic_nickname ();
|
|
237 extern int find_dic_by_no ();
|
|
238 extern void dicinfoout ();
|
|
239 extern void select_one_dict9 ();
|
|
240 extern void fuzoku_set ();
|
|
241 extern void jishoadd ();
|
|
242 extern int dic_delete_e ();
|
|
243
|
|
244 /*
|
|
245 * kensaku.c
|
|
246 */
|
|
247 extern void fill_space ();
|
|
248 extern void kensaku ();
|
|
249
|
|
250 /*
|
|
251 * key_bind.c
|
|
252 */
|
|
253 extern int init_key_table ();
|
|
254
|
|
255 /*
|
|
256 * keyin.c
|
|
257 */
|
|
258 extern int get_env ();
|
|
259 extern int get_touroku_data ();
|
|
260 extern int xw_read ();
|
|
261
|
|
262 /*
|
|
263 * localalloc.c
|
|
264 */
|
|
265 extern char *Malloc ();
|
|
266 extern char *Realloc ();
|
|
267 extern char *Calloc ();
|
|
268 extern void Free ();
|
|
269 extern char *alloc_and_copy ();
|
|
270
|
|
271 /*
|
|
272 * printf.c
|
|
273 */
|
|
274 extern int char_q_len ();
|
|
275 extern void put_char ();
|
|
276 extern void flushw_buf ();
|
|
277 extern int w_putchar ();
|
|
278 extern void put_char1 ();
|
|
279 extern void putchar_norm ();
|
|
280 extern void errorkeyin ();
|
|
281 #ifdef CONVERT_by_STROKE
|
|
282 void errorkeyin_q ();
|
|
283 #endif /* CONVERT_by_STROKE */
|
|
284 extern void malloc_error ();
|
|
285 extern void print_out7 ();
|
|
286 extern void print_out3 ();
|
|
287 extern void print_out2 ();
|
|
288 extern void print_out1 ();
|
|
289 extern void print_out ();
|
|
290 extern void print_msg_getc ();
|
|
291 extern void print_msg_wait ();
|
|
292
|
|
293 /*
|
|
294 * prologue.c
|
|
295 */
|
|
296 extern int open_romkan ();
|
|
297 extern int init_wnn ();
|
|
298 extern int connect_server ();
|
|
299 extern int init_xcvtkey ();
|
|
300
|
|
301 /*
|
|
302 * screen.c
|
|
303 */
|
|
304 extern void throw ();
|
|
305 extern int char_len ();
|
|
306 extern int cur_ichi ();
|
|
307 extern void t_print_line ();
|
|
308 extern void t_redraw_one_line ();
|
|
309 extern void init_screen ();
|
|
310 extern void t_redraw_move ();
|
|
311 extern void t_move ();
|
|
312 extern void t_print_l ();
|
|
313 extern char *get_rk_modes ();
|
|
314 extern void disp_mode ();
|
|
315 extern void display_henkan_off_mode ();
|
|
316 extern int char_len_normal ();
|
|
317
|
|
318 /*
|
|
319 * xselectele.c
|
|
320 */
|
|
321 extern int xw_select_one_element_call ();
|
|
322 extern int xw_select_one_element_keytable ();
|
|
323 extern int kdicdel ();
|
|
324 extern int kdicuse ();
|
|
325 extern int kdiccom ();
|
|
326 extern int kworddel ();
|
|
327 extern int kworduse ();
|
|
328 extern int kwordcom ();
|
|
329 extern int kwordhindo ();
|
|
330 extern int kwordima ();
|
|
331 extern int kworddel_op ();
|
|
332
|
|
333 /*
|
|
334 * termio.c
|
|
335 */
|
|
336 extern void clr_end_screen ();
|
|
337 extern void throw_cur_raw ();
|
|
338 extern void h_r_on_raw ();
|
|
339 extern void h_r_off_raw ();
|
|
340 extern void u_s_on_raw ();
|
|
341 extern void u_s_off_raw ();
|
|
342 extern void b_s_on_raw ();
|
|
343 extern void b_s_off_raw ();
|
|
344 extern void ring_bell ();
|
|
345 extern void cursor_invisible_raw ();
|
|
346 extern void cursor_normal_raw ();
|
|
347
|
|
348 /*
|
|
349 * touroku.c
|
|
350 */
|
|
351 extern void touroku ();
|
|
352 extern int hani_settei_normal ();
|
|
353 extern int hani_settei_yincod ();
|
|
354 extern int t_markset ();
|
|
355 extern int xw_previous_message ();
|
|
356 extern int xw_next_message ();
|
|
357
|
|
358 /*
|
|
359 * uif.c
|
|
360 */
|
|
361 extern int empty_modep ();
|
|
362 extern int insert_modep ();
|
|
363 extern int redraw_nisemono_c ();
|
|
364 extern int isconect_jserver ();
|
|
365 extern int kill_c ();
|
|
366 #ifdef CONVERT_by_STROKE
|
|
367 extern int errorkill_c ();
|
|
368 #endif /* CONVERT_by_STROKE */
|
|
369 extern int delete_c ();
|
|
370 extern int rubout_c ();
|
|
371 extern int backward_c ();
|
|
372 extern int reconnect_server ();
|
|
373 extern int disconnect_server ();
|
|
374 extern int henkan_off ();
|
|
375 extern int reset_c_b ();
|
|
376
|
|
377 /*
|
|
378 * uif1.c
|
|
379 */
|
|
380 extern int jutil_c ();
|
|
381 extern int touroku_c ();
|
|
382 extern int reconnect_jserver_body ();
|
|
383 extern int lang_c ();
|
|
384 extern int push_unget_buf ();
|
|
385 extern int *get_unget_buf ();
|
|
386 extern int if_unget_buf ();
|
|
387
|
|
388 /*
|
|
389 * w_string.c
|
|
390 */
|
|
391 extern int wchartochar ();
|
|
392 extern int sStrcpy ();
|
|
393 extern int Sstrcpy ();
|
|
394 extern w_char *Strcat ();
|
|
395 extern w_char *Strncat ();
|
|
396 extern int Strncmp ();
|
|
397 extern w_char *Strcpy ();
|
|
398 extern w_char *Strncpy ();
|
|
399 extern int Strlen ();
|
|
400 extern void delete_ss2 ();
|
|
401 extern void delete_w_ss2 ();
|
|
402 extern int byte_count ();
|
|
403
|
|
404 /*
|
|
405 * wnnrc_op.c
|
|
406 */
|
|
407 extern int expand_expr ();
|
|
408 extern void uumrc_get_entries ();
|
|
409
|
|
410 /*
|
|
411 * xcvtkey.c
|
|
412 */
|
|
413 extern int comment_char ();
|
|
414 extern int cvt_key_setup ();
|
|
415 extern int cvt_meta_and_fun_setup ();
|
|
416 extern int cvt_key_fun ();
|
|
417
|
|
418 /*
|
|
419 * xlc_util.c
|
|
420 */
|
|
421 extern int alloc_all_buf ();
|
|
422 extern int realloc_wc_buf ();
|
|
423 extern int XwcGetColumn ();
|
|
424 extern int check_mb ();
|
|
425 extern int w_char_to_char ();
|
|
426 extern int skip_pending_wchar ();
|
|
427 extern int char_to_wchar ();
|
|
428 extern int w_char_to_wchar ();
|
|
429 extern int w_char_to_ct ();
|
|
430 extern void JWOutput ();
|
|
431 extern XCharStruct *get_base_char ();
|
|
432 extern XFontSet create_font_set ();
|
|
433
|
|
434 /*
|
|
435 * xw_touroku.c
|
|
436 */
|
|
437 extern void xw_jutil_write_msg ();
|
|
438 extern void init_jutil ();
|
|
439 extern void end_jutil ();
|
|
440 extern void change_cur_jutil ();
|
|
441 extern void hanten_jutil_mes_title ();
|
|
442 extern void change_mes_title ();
|
|
443
|
|
444 /*
|
|
445 * xichiran.c
|
|
446 */
|
|
447 extern void resize_text ();
|
|
448 extern void xw_mousemove ();
|
|
449 extern void init_keytable ();
|
|
450 extern void end_keytable ();
|
|
451 extern void xw_expose ();
|
|
452 extern Status xw_buttonpress ();
|
|
453 extern int jutil_mode_set ();
|
|
454 extern void xw_enterleave ();
|
|
455
|
|
456 /*
|
|
457 * kuten.c
|
|
458 */
|
|
459 extern int in_kuten ();
|
|
460
|
|
461 /*
|
|
462 * jis_in.c
|
|
463 */
|
|
464 extern int in_jis ();
|
|
465
|
|
466 /*
|
|
467 * select_ele.c
|
|
468 */
|
|
469 extern int xw_select_one_element ();
|
|
470 extern int forward_select ();
|
|
471 extern int backward_select ();
|
|
472 extern int lineend_select ();
|
|
473 extern int linestart_select ();
|
|
474 extern int select_select ();
|
|
475 extern int quit_select ();
|
|
476
|
|
477 /*
|
|
478 * For etc
|
|
479 */
|
|
480 #include "wnn_string.h"
|
|
481 #ifdef JAPANESE
|
|
482 extern int iujis_to_eujis ();
|
|
483 #endif /* JAPANESE */
|
|
484 #ifdef CHINESE
|
|
485 extern int icns_to_ecns ();
|
|
486 extern int iugb_to_eugb ();
|
|
487 #endif /* CHINESE */
|
|
488 extern int through ();
|
|
489 extern int ibit8_to_ebit8 ();
|
|
490 extern int ieuc_to_eeuc ();
|
|
491 extern int eeuc_to_ieuc ();
|
|
492 extern int columnlen ();
|
|
493 extern void set_cswidth ();
|
|
494 extern int get_cswidth_by_char ();
|
|
495 extern int get_cswidth ();
|
|
496 extern int get_cs_mask ();
|
|
497
|
|
498 /*
|
|
499 * Standard functions
|
|
500 */
|
|
501 extern int fclose ();
|
|
502 extern int fflush ();
|
|
503 extern int atoi ();
|
|
504 extern void bcopy ();
|
|
505
|
|
506 /*
|
|
507 * Wnn jslib functions
|
|
508 */
|
|
509 extern int js_hinsi_list ();
|
|
510 extern int js_hinsi_number ();
|
|
511 extern int js_dic_list ();
|
|
512 extern int js_fuzokugo_get ();
|
|
513 extern int js_file_send ();
|
|
514 extern int js_file_read ();
|
|
515 extern int js_fuzokugo_set ();
|
|
516 extern int js_access ();
|
|
517 extern int js_mkdir ();
|
|
518 extern int js_hindo_file_create_client ();
|
|
519 extern int js_hindo_file_create ();
|
|
520 extern int js_dic_file_create_client ();
|
|
521 extern int js_dic_file_create ();
|
|
522 extern int js_file_remove_client ();
|
|
523 extern int js_file_remove ();
|
|
524 extern int js_file_discard ();
|
|
525 extern int js_dic_add ();
|
|
526 extern int js_dic_info ();
|
|
527 extern int js_dic_delete ();
|
|
528 extern int js_word_search_by_env ();
|
|
529 extern int js_hinsi_name ();
|
|
530 extern int js_dic_use ();
|
|
531 extern int js_file_info ();
|
|
532 extern int js_file_comment_set ();
|
|
533 extern int js_word_delete ();
|
|
534 extern int js_word_info ();
|
|
535 extern int js_hindo_set ();
|
|
536 extern int js_word_comment_set ();
|
|
537 extern int js_word_add ();
|
|
538 extern int js_isconnect ();
|
|
539 extern char *wnn_perror_lang ();
|
|
540
|
|
541 #ifdef CHINESE
|
|
542 /*
|
|
543 * yincoding functions
|
|
544 */
|
|
545 extern int cwnn_pzy_yincod ();
|
|
546 extern int cwnn_yincod_pzy_str ();
|
|
547 #endif /* CHINESE */
|