comparison Xwnmo/test/chkreset.c @ 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: chkreset.c,v 1.2 2001/06/14 18:16:11 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 *
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
40 /*
41 * X11R5 Input Method Test Program
42 * ximtest.c v 1.0 Mon Mar 18 15:05:15 JST 1991
43 */
44
45 /*
46 * Author: Takashi Inoue OMRON Corporation
47 * takashi@ari.ncl.omron.co.jp
48 */
49
50 #include <stdio.h>
51 #include "exvalue.h"
52 #include "func.h"
53
54 /* *INDENT-OFF* */
55 FLAG
56 preset (ic, mode) /* Preedit area RESET */
57 XIC ic;
58 FLAG mode;
59 /* *INDENT-ON* */
60 {
61 if (mode == ONSP)
62 {
63 prerrfunc ();
64 return (COMP);
65 }
66 else
67 {
68 cls (prdisp);
69 if (strflag == MB)
70 {
71 prstatus ("Test of XmbResetIC()...");
72 XmbResetIC (ic);
73 }
74 else if (strflag == WC)
75 {
76 prstatus ("Test of XwcResetIC()...");
77 XwcResetIC (ic);
78 }
79 prstatus ("done.");
80 prprint ("Check your own eyes if preedit area on the test window is clear.\n\n");
81 prprint ("And re-input string.\n\n");
82 if (strflag == MB)
83 {
84 fprintf (icfp, "...XmbResetIC returned.\n\n");
85 }
86 else if (strflag == WC)
87 {
88 fprintf (icfp, "...XwcResetIC returned.\n\n");
89 }
90 return (COMP);
91 }
92 }