Mercurial > freewnn
comparison Xwnmo/xwnmo/ext.h @ 0:bbc77ca4def5
initial import
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Thu, 13 Dec 2007 04:30:14 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:bbc77ca4def5 |
---|---|
1 /* | |
2 * $Id: ext.h,v 1.2 2001/06/14 18:16:15 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 OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999 | |
10 * Copyright 1991, 1992 by Massachusetts Institute of Technology | |
11 * | |
12 * Author: OMRON SOFTWARE Co., Ltd. <freewnn@rd.kyoto.omronsoft.co.jp> | |
13 * | |
14 * This program is free software; you can redistribute it and/or modify | |
15 * it under the terms of the GNU General Public License as published by | |
16 * the Free Software Foundation; either version 2, or (at your option) | |
17 * any later version. | |
18 * | |
19 * This program is distributed in the hope that it will be useful, | |
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
22 * GNU General Public License for more details. | |
23 * | |
24 * You should have received a copy of the GNU General Public License | |
25 * along with GNU Emacs; see the file COPYING. If not, write to the | |
26 * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
27 * | |
28 * Commentary: | |
29 * | |
30 * Change log: | |
31 * | |
32 * Last modified date: 8,Feb.1999 | |
33 * | |
34 * Code: | |
35 * | |
36 */ | |
37 /* Version 4.0 | |
38 */ | |
39 /* | |
40 * basic_op.c | |
41 */ | |
42 extern int redraw_nisemono (); | |
43 extern int buffer_in (); | |
44 extern int t_rubout (); | |
45 extern int delete_char1 (); | |
46 extern int t_delete_char (); | |
47 extern int kuten (); | |
48 extern int jis (); | |
49 extern int input_a_char_from_function (); | |
50 extern int t_kill (); | |
51 #ifdef CONVERT_by_STROKE | |
52 extern int errort_kill (); | |
53 #endif /* CONVERT_by_STROKE */ | |
54 extern int t_yank (); | |
55 extern int t_ret (); | |
56 extern int t_quit (); | |
57 extern int c_top (); | |
58 extern int c_end (); | |
59 extern int c_end_nobi (); | |
60 extern int t_jmp_backward (); | |
61 extern int t_jmp_forward (); | |
62 extern int forward_char (); | |
63 extern int backward_char (); | |
64 extern int forward (); | |
65 extern int backward (); | |
66 extern int insert_char (); | |
67 extern int insert_string (); | |
68 extern int quote (); | |
69 extern int reset_line (); | |
70 extern void redraw_line (); | |
71 | |
72 /* | |
73 * box.c | |
74 */ | |
75 extern BoxRec *create_box (); | |
76 extern int remove_box (); | |
77 extern void map_box (); | |
78 extern void unmap_box (); | |
79 extern void freeze_box (); | |
80 extern void unfreeze_box (); | |
81 extern void moveresize_box (); | |
82 extern void changecolor_box (); | |
83 extern void redraw_box (); | |
84 extern void reverse_box (); | |
85 | |
86 /* | |
87 * byte_swap.c | |
88 */ | |
89 unsigned long byteswap_l (); | |
90 unsigned short byteswap_s (); | |
91 void byteswap_xevent (); | |
92 void byteswap_GetIMReply (); | |
93 void byteswap_CreateICReply (); | |
94 void byteswap_NormalReply (); | |
95 void byteswap_GetICReply (); | |
96 void byteswap_ICValuesReq (); | |
97 void byteswap_ICAttributesReq (); | |
98 void byteswap_EventReply (); | |
99 void byteswap_ReturnReply (); | |
100 #ifdef CALLBACKS | |
101 void byteswap_StatusDrawReply (); | |
102 void byteswap_PreDrawReply (); | |
103 void byteswap_PreCaretReply (); | |
104 #endif /* CALLBACKS */ | |
105 | |
106 /* | |
107 * change.c | |
108 */ | |
109 extern void reset_preedit (); | |
110 extern void reset_status (); | |
111 extern unsigned long update_ic (); | |
112 extern unsigned long update_spotlocation (); | |
113 extern int change_current_language (); | |
114 extern void change_client_area (); | |
115 extern void change_focus_area (); | |
116 extern int change_client (); | |
117 #ifdef SPOT | |
118 extern int change_spotlocation (); | |
119 #endif /* SPOT */ | |
120 | |
121 /* | |
122 * client.c | |
123 */ | |
124 extern int new_client (); | |
125 extern void del_client (); | |
126 extern void epilogue (); | |
127 extern char env_state (); | |
128 extern int set_cur_env (); | |
129 extern int get_new_env (); | |
130 extern void free_env (); | |
131 | |
132 /* | |
133 * cursor.c | |
134 */ | |
135 extern void throw_col (); | |
136 extern void h_r_on (); | |
137 extern void h_r_off (); | |
138 extern void u_s_on (); | |
139 extern void u_s_off (); | |
140 extern void kk_cursor_invisible (); | |
141 extern void kk_cursor_normal (); | |
142 extern void reset_cursor_status (); | |
143 extern void set_cursor_status (); | |
144 extern void clr_line_all (); | |
145 extern void push_hrus (); | |
146 extern void pop_hrus (); | |
147 extern void set_hanten_ul (); | |
148 extern void set_bold (); | |
149 extern void reset_bold (); | |
150 | |
151 /* | |
152 * display.c | |
153 */ | |
154 extern void JWmark_cursor (); | |
155 extern void redraw_window3 (); | |
156 extern void redraw_lines (); | |
157 extern void redraw_note (); | |
158 extern void redraw_window0 (); | |
159 extern void redraw_xj_all (); | |
160 extern void visual_window1 (); | |
161 extern void visual_window (); | |
162 extern void invisual_window1 (); | |
163 extern void invisual_window (); | |
164 extern void JWMflushw_buf (); | |
165 extern void jw_disp_mode (); | |
166 extern void JWMline_clear (); | |
167 extern void JWMline_clear1 (); | |
168 extern void visual_status (); | |
169 extern void invisual_status (); | |
170 extern void JWcursor_visible (); | |
171 extern void JWcursor_invisible (); | |
172 extern void JWcursor_move (); | |
173 extern void check_scroll (); | |
174 extern void check_root_mapping (); | |
175 extern void visible_root (); | |
176 extern void invisible_root (); | |
177 | |
178 /* | |
179 * do_socket.c | |
180 */ | |
181 extern int _Send_Flush (); | |
182 extern int _WriteToClient (); | |
183 extern int _ReadFromClient (); | |
184 extern short init_net (); | |
185 extern void close_net (); | |
186 extern int wait_for_socket (); | |
187 extern void close_socket (); | |
188 extern int get_cur_sock (); | |
189 extern int get_rest_len (); | |
190 extern int read_requestheader (); | |
191 extern int read_strings (); | |
192 extern Bool need_byteswap (); | |
193 extern int get_client_screen (); | |
194 | |
195 /* | |
196 * do_xjutil.c | |
197 */ | |
198 #ifdef USING_XJUTIL | |
199 extern void xjutil_start (); | |
200 extern void kill_xjutil (); | |
201 extern void kill_all_xjutil (); | |
202 extern void set_xjutil_id (); | |
203 extern void reset_xjutil_fs_id (); | |
204 extern int isstart_xjutil (); | |
205 extern void end_xjutil_work (); | |
206 extern int xjutil_destroy (); | |
207 extern void xjutil_send_key_event (); | |
208 extern void xw_jishoadd (); | |
209 extern void xw_kensaku (); | |
210 extern void xw_select_one_dict9 (); | |
211 extern void xw_paramchg (); | |
212 extern void xw_dicinfoout (); | |
213 extern void xw_fuzoku_set (); | |
214 extern void xw_touroku (); | |
215 extern void call_kill_old_xjutil (); | |
216 #endif /* USING_XJUTIL */ | |
217 | |
218 /* | |
219 * ev_dispatch.c | |
220 */ | |
221 extern void X_flush (); | |
222 extern void XEventDispatch (); | |
223 extern int get_yes_no_event (); | |
224 | |
225 /* | |
226 * functions.c | |
227 */ | |
228 extern int bytcntfn (); | |
229 extern void conv_ltr_to_ieuc (); | |
230 /* | |
231 extern int letterpickfn(); | |
232 */ | |
233 extern int call_t_redraw_move_normal (); | |
234 extern int call_t_redraw_move (); | |
235 extern int call_t_redraw_move_1_normal (); | |
236 extern int call_t_redraw_move_1 (); | |
237 extern int call_t_redraw_move_2_normal (); | |
238 extern int call_t_redraw_move_2 (); | |
239 extern int call_t_print_l_normal (); | |
240 extern int call_t_print_l (); | |
241 extern int c_top_normal (); | |
242 extern int c_end_normal (); | |
243 extern int c_end_nobi_normal (); | |
244 extern int char_q_len_normal (); | |
245 extern int char_len_normal (); | |
246 extern int t_redraw_move_normal (); | |
247 extern int t_print_l_normal (); | |
248 extern int call_jl_yomi_len (); | |
249 #ifdef CHINESE | |
250 extern int call_t_redraw_move_yincod (); | |
251 extern int call_t_redraw_move_1_yincod (); | |
252 extern int call_t_redraw_move_2_yincod (); | |
253 extern int call_t_print_l_yincod (); | |
254 extern int input_yincod (); | |
255 extern int redraw_when_chmsig_yincod (); | |
256 extern int c_top_yincod (); | |
257 extern int c_end_yincod (); | |
258 extern int c_end_nobi_yincod (); | |
259 extern int print_out_yincod (); | |
260 extern int char_q_len_yincod (); | |
261 extern int char_len_yincod (); | |
262 extern int t_redraw_move_yincod (); | |
263 extern int t_print_l_yincod (); | |
264 extern int not_call_jl_yomi_len (); | |
265 #endif /* CHINESE */ | |
266 | |
267 /* | |
268 * history.c | |
269 */ | |
270 extern int init_history (); | |
271 extern int make_history (); | |
272 extern void get_end_of_history (); | |
273 extern int previous_history1 (); | |
274 extern int next_history1 (); | |
275 extern void destroy_history (); | |
276 | |
277 /* | |
278 * ichiran.c | |
279 */ | |
280 extern void JW3Mputc (); | |
281 extern void set_wm_properties (); | |
282 extern int init_ichiran (); | |
283 extern void end_ichiran (); | |
284 extern void check_map (); | |
285 extern void lock_inspect (); | |
286 extern void unlock_inspect (); | |
287 extern int init_inspect (); | |
288 extern void end_inspect (); | |
289 extern int xw_next_inspect (); | |
290 extern int xw_back_inspect (); | |
291 extern void xw_move_hilite (); | |
292 extern void xw_jikouho_move_hilite (); | |
293 extern int alloc_for_save_buf (); | |
294 extern void redraw_ichi_w (); | |
295 extern int next_ichi (); | |
296 extern int back_ichi (); | |
297 extern int find_hilite (); | |
298 extern int find_ji_hilite (); | |
299 extern void xw_forward_select (); | |
300 extern void xw_backward_select (); | |
301 extern int xw_next_select (); | |
302 extern int xw_previous_select (); | |
303 extern void xw_linestart_select (); | |
304 extern void xw_lineend_select (); | |
305 extern int init_yes_or_no (); | |
306 extern void end_yes_or_no (); | |
307 extern int set_j_c (); | |
308 extern int cur_cl_change3 (); | |
309 extern int cur_cl_change4 (); | |
310 extern void xw_select_button (); | |
311 extern void xw_select_jikouho_button (); | |
312 extern void xw_mouseleave (); | |
313 extern int xw_mouse_select (); | |
314 extern void draw_nyuu_w (); | |
315 extern void clear_nyuu_w (); | |
316 extern void nyuu_w_cursor (); | |
317 extern int yes_or_no_lock (); | |
318 extern int yes_or_no (); | |
319 | |
320 /* | |
321 * init.c | |
322 */ | |
323 extern void add_ximclientlist (); | |
324 extern void remove_ximclientlist (); | |
325 extern void add_inputlist (); | |
326 extern void remove_inputlist (); | |
327 extern int allocate_wnn (); | |
328 extern void free_wnn (); | |
329 extern int initialize_wnn (); | |
330 | |
331 /* | |
332 * init_w.c | |
333 */ | |
334 extern int get_application_resources (); | |
335 extern int create_yes_no (); | |
336 extern void read_wm_id (); | |
337 extern int create_xim_window (); | |
338 extern int create_xim (); | |
339 extern void xw_end (); | |
340 extern int create_preedit (); | |
341 extern int create_status (); | |
342 | |
343 /* | |
344 * inspect.c | |
345 */ | |
346 extern int inspect (); | |
347 extern int inspect_kouho (); | |
348 extern int sakujo_kouho (); | |
349 extern int inspectdel (); | |
350 extern int inspectuse (); | |
351 extern unsigned char *next_inspect (); | |
352 extern unsigned char *previous_inspect (); | |
353 | |
354 /* | |
355 * jhlp.c | |
356 */ | |
357 extern void do_end (); | |
358 extern void in_put (); | |
359 extern void main (); | |
360 | |
361 /* | |
362 * jikouho.c | |
363 */ | |
364 extern int dai_top (); | |
365 extern int dai_end (); | |
366 extern void set_escape_code (); | |
367 extern int jikouho_c (); | |
368 extern int zenkouho_c (); | |
369 extern int jikouho_dai_c (); | |
370 extern int zenkouho_dai_c (); | |
371 extern int select_jikouho (); | |
372 extern int select_jikouho_dai (); | |
373 #ifdef CONVERT_by_STROKE | |
374 extern int select_question (); | |
375 #endif /* CONVERT_by_STROKE */ | |
376 | |
377 /* | |
378 * jis_in.c | |
379 */ | |
380 extern int in_jis (); | |
381 | |
382 /* | |
383 * jutil.c | |
384 */ | |
385 extern int jutil (); | |
386 extern int dicsv (); | |
387 #ifdef USING_XJUTIL | |
388 extern int paramchg (); | |
389 extern int dicinfoout (); | |
390 extern int select_one_dict9 (); | |
391 extern int fuzoku_set (); | |
392 extern int jishoadd (); | |
393 extern int kensaku (); | |
394 #endif /* USING_XJUTIL */ | |
395 | |
396 /* | |
397 * key_bind.c | |
398 */ | |
399 extern int init_key_table (); | |
400 | |
401 /* | |
402 * keyin.c | |
403 */ | |
404 extern int key_input (); | |
405 int ifempty (); | |
406 extern int RequestDispatch (); | |
407 /* | |
408 * kuten.c | |
409 */ | |
410 extern int in_kuten (); | |
411 | |
412 /* | |
413 * localalloc.c | |
414 */ | |
415 extern char *Malloc (); | |
416 extern char *Realloc (); | |
417 extern char *Calloc (); | |
418 extern void Free (); | |
419 extern char *alloc_and_copy (); | |
420 | |
421 /* | |
422 * multi_lang.c | |
423 */ | |
424 extern char *get_default_font_name (); | |
425 extern int load_font_set (); | |
426 extern int add_locale_to_xl (); | |
427 extern void remove_locale_to_xl (); | |
428 extern int add_lang_env (); | |
429 extern void default_xc_set (); | |
430 extern XIMClientRec *create_client (); | |
431 extern int lang_set (); | |
432 extern int lang_set_ct (); | |
433 extern void change_lang (); | |
434 | |
435 /* | |
436 * printf.c | |
437 */ | |
438 extern int char_q_len (); | |
439 extern void put_char (); | |
440 extern void flushw_buf (); | |
441 extern int w_putchar (); | |
442 extern void put_char1 (); | |
443 extern void putchar_norm (); | |
444 extern void errorkeyin (); | |
445 #ifdef CONVERT_by_STROKE | |
446 void errorkeyin_q (); | |
447 #endif /* CONVERT_by_STROKE */ | |
448 extern void malloc_error (); | |
449 extern void print_out7 (); | |
450 extern void print_out3 (); | |
451 extern void print_out2 (); | |
452 extern void print_out1 (); | |
453 extern void print_out (); | |
454 extern void print_msg_getc (); | |
455 extern void print_msg_wait (); | |
456 | |
457 /* | |
458 * prologue.c | |
459 */ | |
460 extern int open_romkan (); | |
461 extern int allocate_areas (); | |
462 extern void free_areas (); | |
463 extern int connect_server (); | |
464 extern int init_xcvtkey (); | |
465 | |
466 /* | |
467 * readximrc.c | |
468 */ | |
469 int read_ximrc (); | |
470 int read_ximconf (); | |
471 | |
472 /* | |
473 * screen.c | |
474 */ | |
475 extern void throw (); | |
476 extern int char_len (); | |
477 extern int cur_ichi (); | |
478 extern void t_print_line (); | |
479 extern void t_redraw_one_line (); | |
480 extern void init_screen (); | |
481 extern void t_redraw_move (); | |
482 extern void t_move (); | |
483 extern void t_print_l (); | |
484 extern char *get_rk_modes (); | |
485 extern void disp_mode (); | |
486 extern void display_henkan_off_mode (); | |
487 | |
488 /* | |
489 * select_ele.c | |
490 */ | |
491 extern int xw_select_one_element (); | |
492 /* | |
493 extern int xw_select_one_jikouho(); | |
494 */ | |
495 extern int forward_select (); | |
496 extern int backward_select (); | |
497 extern int lineend_select (); | |
498 extern int linestart_select (); | |
499 extern int select_select (); | |
500 extern int quit_select (); | |
501 extern int previous_select (); | |
502 extern int next_select (); | |
503 extern int redraw_select (); | |
504 | |
505 /* | |
506 * termio.c | |
507 */ | |
508 extern void clr_end_screen (); | |
509 extern void throw_cur_raw (); | |
510 extern void h_r_on_raw (); | |
511 extern void h_r_off_raw (); | |
512 extern void u_s_on_raw (); | |
513 extern void u_s_off_raw (); | |
514 extern void b_s_on_raw (); | |
515 extern void b_s_off_raw (); | |
516 extern void ring_bell (); | |
517 extern void cursor_invisible_raw (); | |
518 extern void cursor_normal_raw (); | |
519 | |
520 /* | |
521 * touroku.c | |
522 */ | |
523 extern int touroku (); | |
524 | |
525 /* | |
526 * uif.c | |
527 */ | |
528 extern void push_func (); | |
529 extern void pop_func (); | |
530 extern int insert_char_and_change_to_insert_mode (); | |
531 extern int kakutei (); | |
532 extern int return_it (); | |
533 extern int return_it_if_ascii (); | |
534 extern int redraw_nisemono_c (); | |
535 extern int kk (); | |
536 extern int insert_modep (); | |
537 extern int empty_modep (); | |
538 extern void clear_c_b (); | |
539 extern void make_kanji_buffer (); | |
540 extern int isconect_jserver (); | |
541 extern int ren_henkan (); | |
542 extern int kankana_ren_henkan (); | |
543 #ifdef CONVERT_by_STROKE | |
544 extern int errorkaijo (); | |
545 #endif /* CONVERT_by_STROKE */ | |
546 extern int tan_henkan (); | |
547 extern int tan_henkan_dai (); | |
548 extern int nobi_henkan (); | |
549 extern int nobi_henkan_dai (); | |
550 extern void henkan_if_maru (); | |
551 #ifdef CONVERT_by_STROKE | |
552 extern int question_henkan (); | |
553 #endif /* CONVERT_by_STROKE */ | |
554 extern int yank_c (); | |
555 extern int remember_me (); | |
556 extern int kill_c (); | |
557 #ifdef CONVERT_by_STROKE | |
558 extern int errorkill_c (); | |
559 #endif /* CONVERT_by_STROKE */ | |
560 extern int delete_c (); | |
561 extern int rubout_c (); | |
562 extern int end_bunsetsu (); | |
563 extern int top_bunsetsu (); | |
564 extern int forward_bunsetsu (); | |
565 extern int backward_bunsetsu (); | |
566 extern int kaijo (); | |
567 extern int enlarge_bunsetsu (); | |
568 extern int smallen_bunsetsu (); | |
569 extern int send_string (); | |
570 extern int tijime (); | |
571 extern int jmptijime (); | |
572 extern int henkan_forward (); | |
573 extern int henkan_backward (); | |
574 extern int backward_c (); | |
575 extern int insert_it_as_yomi (); | |
576 extern int previous_history (); | |
577 extern int next_history (); | |
578 extern int send_ascii (); | |
579 extern int not_send_ascii (); | |
580 extern int toggle_send_ascii (); | |
581 extern int pop_send_ascii (); | |
582 extern int send_ascii_e (); | |
583 extern int not_send_ascii_e (); | |
584 extern int toggle_send_ascii_e (); | |
585 extern int pop_send_ascii_e (); | |
586 extern int quote_send_ascii_e (); | |
587 extern int reconnect_server (); | |
588 extern int disconnect_server (); | |
589 extern int henkan_off (); | |
590 extern int reset_c_b (); | |
591 extern void errorkeyin_q (); | |
592 | |
593 /* | |
594 * uif1.c | |
595 */ | |
596 extern int jutil_c (); | |
597 extern int touroku_c (); | |
598 extern int reconnect_jserver_body (); | |
599 extern int lang_c (); | |
600 extern int push_unget_buf (); | |
601 extern unsigned int *get_unget_buf (); | |
602 extern int if_unget_buf (); | |
603 | |
604 /* | |
605 * util.c | |
606 */ | |
607 extern void GetIM (); | |
608 extern Status have_world (); | |
609 extern void CreateIC (); | |
610 extern void GetIC (); | |
611 extern void SetICFocus (); | |
612 extern void UnsetICFocus (); | |
613 extern void ChangeIC (); | |
614 extern void DestroyIC (); | |
615 extern void destroy_for_sock (); | |
616 extern void destroy_xl (); | |
617 extern void destroy_client (); | |
618 extern void ResetIC (); | |
619 extern void free_langlist (); | |
620 extern int get_langlist (); | |
621 #ifdef SPOT | |
622 extern void ChangeSpot (); | |
623 #endif /* SPOT */ | |
624 | |
625 /* | |
626 * w_string.c | |
627 */ | |
628 extern int wchartochar (); | |
629 extern int sStrcpy (); | |
630 extern w_char *Strcat (); | |
631 extern w_char *Strncat (); | |
632 extern int Strncmp (); | |
633 extern w_char *Strcpy (); | |
634 extern w_char *Strncpy (); | |
635 extern int Strlen (); | |
636 extern void delete_w_ss2 (); | |
637 extern int byte_count (); | |
638 | |
639 /* | |
640 * wnnrc_op.c | |
641 */ | |
642 extern int expand_expr (); | |
643 extern int uumrc_get_entries (); | |
644 extern int read_default_rk (); | |
645 | |
646 /* | |
647 * write.c | |
648 */ | |
649 extern int return_eventreply (); | |
650 extern int send_nofilter (); | |
651 extern int send_end (); | |
652 extern int return_cl_it (); | |
653 extern void xw_write (); | |
654 | |
655 /* | |
656 * xcvtkey.c | |
657 */ | |
658 extern int comment_char (); | |
659 extern int cvt_key_setup (); | |
660 extern int cvt_key_fun (); | |
661 extern int cvt_meta_and_fun_setup (); | |
662 /* | |
663 * xlc_util.c | |
664 */ | |
665 extern int alloc_all_buf (); | |
666 extern int realloc_wc_buf (); | |
667 extern int realloc_ct_buf (); | |
668 extern int realloc_c_buf (); | |
669 #ifndef X_WCHAR | |
670 extern int realloc_w_buf (); | |
671 #endif /* !X_WCHAR */ | |
672 extern int get_columns_wchar (); | |
673 extern int XwcGetColumn (); | |
674 extern int check_mb (); | |
675 extern int w_char_to_char (); | |
676 extern int skip_pending_wchar (); | |
677 extern int put_pending_wchar_and_flg (); | |
678 extern int char_to_wchar (); | |
679 extern int w_char_to_wchar (); | |
680 extern int w_char_to_ct (); | |
681 extern int wchar_to_ct (); | |
682 extern void JWOutput (); | |
683 extern XCharStruct *get_base_char (); | |
684 extern XFontSet create_font_set (); | |
685 #ifdef CALLBACKS | |
686 extern int XwcGetChars (); | |
687 | |
688 /* | |
689 * For callback.c | |
690 */ | |
691 extern void CBStatusDraw (); | |
692 extern void CBStatusStart (); | |
693 extern void CBStatusDone (); | |
694 extern void CBPreeditDraw (); | |
695 extern void CBPreeditStart (); | |
696 extern void CBPreeditDone (); | |
697 extern void CBPreeditRedraw (); | |
698 extern void CBPreeditClear (); | |
699 extern void CBCursorMove (); | |
700 extern void CBCursorMark (); | |
701 extern void SendCBRedraw (); | |
702 #endif /* CALLBACKS */ | |
703 | |
704 /* | |
705 * For etc | |
706 */ | |
707 #include "wnn_string.h" | |
708 #ifdef JAPANESE | |
709 extern int iujis_to_eujis (); | |
710 #endif /* JAPANESE */ | |
711 #ifdef CHINESE | |
712 extern int icns_to_ecns (); | |
713 extern int iugb_to_eugb (); | |
714 #endif /* CHINESE */ | |
715 extern int through (); | |
716 extern int ibit8_to_ebit8 (); | |
717 extern int ieuc_to_eeuc (); | |
718 extern int eeuc_to_ieuc (); | |
719 extern unsigned int create_cswidth (); | |
720 extern int columnlen (); | |
721 extern void set_cswidth (); | |
722 extern int get_cswidth_by_char (); | |
723 extern int get_cswidth (); | |
724 extern int get_cs_mask (); | |
725 | |
726 /* | |
727 * Standard functions | |
728 */ | |
729 extern int fclose (); | |
730 extern int fflush (); | |
731 extern int atoi (); | |
732 extern void bcopy (); | |
733 | |
734 /* | |
735 * Wnn jllib functions | |
736 */ | |
737 extern int jl_isconnect_e (); | |
738 extern int jl_dic_save_all_e (); | |
739 extern void jl_close (); | |
740 extern int jl_dic_list_e (); | |
741 extern int wnn_get_area (); | |
742 extern int jl_kanji_len (); | |
743 extern int jl_yomi_len (); | |
744 extern int jl_word_delete_e (); | |
745 extern int jl_word_use_e (); | |
746 extern int jl_zenkouho (); | |
747 extern int jl_set_jikouho (); | |
748 extern void jl_env_set (); | |
749 extern int jl_zenkouho_dai (); | |
750 extern int jl_set_jikouho_dai (); | |
751 extern void jl_get_zenkouho_kanji (); | |
752 extern void jl_get_zenkouho_yomi (); | |
753 extern int jl_zenkouho_q (); | |
754 extern int js_env_sticky (); | |
755 extern int jl_kill (); | |
756 extern int jl_update_hindo (); | |
757 extern int jl_ren_conv (); | |
758 extern int jl_tan_conv (); | |
759 extern int jl_nobi_conv (); | |
760 extern int jl_nobi_conv_e2 (); | |
761 extern int jl_q_conv (); | |
762 extern void jl_disconnect (); | |
763 | |
764 #ifdef CHINESE | |
765 /* | |
766 * yincoding functions | |
767 */ | |
768 extern int cwnn_pzy_yincod (); | |
769 extern int cwnn_yincod_pzy_str (); | |
770 #endif /* CHINESE */ | |
771 | |
772 #ifdef XJPLIB | |
773 extern void XJp_init (); | |
774 extern void XJp_end (); | |
775 extern void XJp_xjp_to_xim (); | |
776 extern void XJp_event_dispatch (); | |
777 extern XIMClientRec *XJp_cur_cl_set (); | |
778 extern int XJp_check_cur_input (); | |
779 extern void XJp_check_send_cl_key (); | |
780 extern void XJp_check_save_event (); | |
781 extern void XJp_return_cl_it (); | |
782 extern void XJp_xw_write (); | |
783 extern int XJp_xw_destroy (); | |
784 extern int XJp_check_map (); | |
785 extern int XJp_get_client_cnt (); | |
786 #ifdef XJPLIB_DIRECT | |
787 extern int XJp_get_xjp_port (); | |
788 extern void XJp_init_net (); | |
789 extern void XJp_close_net (); | |
790 extern int XJp_return_sock (); | |
791 extern int XJp_wait_for_socket (); | |
792 extern void XJp_destroy_for_sock (); | |
793 extern void XJp_Direct_Dispatch (); | |
794 extern void XJp_save_sockbuf (); | |
795 extern void XJp_direct_send_cl_key (); | |
796 #endif /* XJPLIB_DIRECT */ | |
797 #endif /* XJPLIB */ | |
798 | |
799 #ifndef X11R5 | |
800 | |
801 extern void XimError ( | |
802 #if NeedFunctionPrototypes | |
803 int /* fd */ | |
804 #endif | |
805 ); | |
806 | |
807 extern void XimRequestDispatch ( | |
808 #if NeedFunctionPrototypes | |
809 void | |
810 #endif | |
811 ); | |
812 | |
813 extern void XimConvertTarget ( | |
814 #if NeedFunctionPrototypes | |
815 Display * /* dpy */ , | |
816 XSelectionRequestEvent * /* event */ | |
817 #endif | |
818 ); | |
819 | |
820 extern int XimPreConnect ( | |
821 #if NeedFunctionPrototypes | |
822 unsigned short /* port */ , | |
823 XIMRootRec * /* root */ | |
824 #endif | |
825 ); | |
826 | |
827 extern int xim_send_keysym ( | |
828 #if NeedFunctionPrototypes | |
829 KeySym /* keysym */ , | |
830 char /* str */ | |
831 #endif | |
832 ); | |
833 | |
834 extern int xim_send_ct ( | |
835 #if NeedFunctionPrototypes | |
836 register char * /* ct */ , | |
837 register int /* ct_len */ | |
838 #endif | |
839 ); | |
840 | |
841 extern int xim_send_nofilter ( | |
842 #if NeedFunctionPrototypes | |
843 void | |
844 #endif | |
845 ); | |
846 | |
847 #ifdef CALLBACKS | |
848 extern void xim_send_preeditstart (); | |
849 extern void xim_send_preeditdraw (); | |
850 extern void xim_send_preeditcaret (); | |
851 extern void xim_send_preeditdone (); | |
852 extern void xim_send_statusstart (); | |
853 extern void xim_send_statusdraw (); | |
854 extern void xim_send_statusdone (); | |
855 #endif /* CALLBACKS */ | |
856 | |
857 #endif /* !X11R5 */ |