Mercurial > kinput2.yaz
comparison include/Sj3P.h @ 0:92745d501b9a
initial import from kinput2-v3.1
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Mon, 08 Mar 2010 04:44:30 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:92745d501b9a |
---|---|
1 /* $Id: Sj3P.h,v 2.0 1992/02/09 17:56:19 nao Exp $ */ | |
2 /* | |
3 * Copyright (c) 1990 Software Research Associates, Inc. | |
4 * | |
5 * Permission to use, copy, modify, and distribute this software and its | |
6 * documentation for any purpose and without fee is hereby granted, provided | |
7 * that the above copyright notice appear in all copies and that both that | |
8 * copyright notice and this permission notice appear in supporting | |
9 * documentation, and that the name of Software Research Associates not be | |
10 * used in advertising or publicity pertaining to distribution of the | |
11 * software without specific, written prior permission. Software Research | |
12 * Associates makes no representations about the suitability of this software | |
13 * for any purpose. It is provided "as is" without express or implied | |
14 * warranty. | |
15 * | |
16 * Author: Makoto Ishisone, Software Research Associates, Inc., Japan | |
17 */ | |
18 | |
19 /* | |
20 * Copyright 1991 Sony Corporation | |
21 * | |
22 * Permission to use, copy, modify, distribute, and sell this software and its | |
23 * documentation for any purpose is hereby granted without fee, provided that | |
24 * the above copyright notice appear in all copies and that both that | |
25 * copyright notice and this permission notice appear in supporting | |
26 * documentation, and that the name of Sony not be used in advertising or | |
27 * publicity pertaining to distribution of the software without specific, | |
28 * written prior permission. Sony makes no representations about the | |
29 * suitability of this software for any purpose. It is provided "as is" | |
30 * without express or implied warranty. | |
31 * | |
32 * SONY DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL | |
33 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL SONY | |
34 * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
35 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION | |
36 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN | |
37 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
38 */ | |
39 /* | |
40 * Author: Naoshi Suzuki, SONY Corporation. (nao@sm.sony.co.jp) | |
41 */ | |
42 | |
43 #ifndef _Sj3P_h | |
44 #define _Sj3P_h | |
45 | |
46 #include "InputConvP.h" | |
47 | |
48 #include "Sj3.h" | |
49 #include "Xsj3clib.h" | |
50 | |
51 typedef struct { | |
52 int foo; | |
53 } Sj3ClassPart; | |
54 | |
55 typedef struct _Sj3ClassRec { | |
56 ObjectClassPart object_class; | |
57 InputConvClassPart inputConv_class; | |
58 Sj3ClassPart sj3_class; | |
59 } Sj3ClassRec; | |
60 | |
61 typedef enum { | |
62 normal_state, | |
63 candidate_state, | |
64 symbol_state, | |
65 hinsi_state | |
66 } Sj3State; | |
67 | |
68 typedef struct { | |
69 | |
70 /* resources */ | |
71 String sj3serv; | |
72 String sj3serv2; | |
73 String sj3user; | |
74 String rcfile; | |
75 String rkfile; | |
76 String hkfile; | |
77 String zhfile; | |
78 String sbfile; | |
79 | |
80 /* private data */ | |
81 Xsj3cBuf sj3buf; | |
82 Sj3State state; | |
83 ICString *candlist; | |
84 int candlistsize; | |
85 int numcand; | |
86 int curcand; | |
87 ICString *symbollist; | |
88 int cursymbol; | |
89 ICString *hinsilist; | |
90 int curhinsi; | |
91 Boolean selectionending; | |
92 } Sj3Part; | |
93 | |
94 typedef struct _Sj3Rec { | |
95 ObjectPart object; | |
96 InputConvPart inputConv; | |
97 Sj3Part sj3; | |
98 } Sj3Rec; | |
99 | |
100 #endif |