Mercurial > kinput2.yaz
comparison include/RubyP.h @ 16:598fcbe482b5
imported patch 19_kinput2-v3.1-ruby.patch
| author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
|---|---|
| date | Mon, 08 Mar 2010 20:38:17 +0900 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 15:89750191b165 | 16:598fcbe482b5 |
|---|---|
| 1 /* $Id: RubyP.h,v 1.2 2003/06/10 02:11:19 komatsu 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 /* Copyright 1991 NEC Corporation, Tokyo, Japan. | |
| 20 * | |
| 21 * Permission to use, copy, modify, and distribute this software and its | |
| 22 * documentation for any purpose and without fee is hereby granted, | |
| 23 * provided that the above copyright notice appear in all copies and that | |
| 24 * both that copyright notice and this permission notice appear in | |
| 25 * supporting documentation, and that the name of NEC Corporation | |
| 26 * not be used in advertising or publicity pertaining to distribution | |
| 27 * of the software without specific, written prior permission. NEC | |
| 28 * Corporation makes no representations about the suitability of this | |
| 29 * software for any purpose. It is provided "as is" without express | |
| 30 * or implied warranty. | |
| 31 * | |
| 32 * NEC CORPORATION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, | |
| 33 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN | |
| 34 * NO EVENT SHALL NEC CORPORATION BE LIABLE FOR ANY SPECIAL, INDIRECT OR | |
| 35 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF | |
| 36 * USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | |
| 37 * OTHER TORTUOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | |
| 38 * PERFORMANCE OF THIS SOFTWARE. | |
| 39 * | |
| 40 * Author: Akira Kon, NEC Corporation. (kon@d1.bs2.mt.nec.co.jp) | |
| 41 */ | |
| 42 | |
| 43 | |
| 44 #ifndef _RubyP_h | |
| 45 #define _RubyP_h | |
| 46 | |
| 47 #include "InputConvP.h" | |
| 48 | |
| 49 #include "WStr.h" | |
| 50 #include "Ruby.h" | |
| 51 | |
| 52 typedef struct { | |
| 53 int foo; | |
| 54 } RubyClassPart; | |
| 55 | |
| 56 typedef struct _RubyClassRec { | |
| 57 ObjectClassPart object_class; | |
| 58 InputConvClassPart inputConv_class; | |
| 59 RubyClassPart ruby_class; | |
| 60 } RubyClassRec; | |
| 61 | |
| 62 #define NConvertedSegments 3 | |
| 63 | |
| 64 typedef struct { | |
| 65 wchar *str[NConvertedSegments + 3]; | |
| 66 int size[NConvertedSegments + 3]; | |
| 67 int len[NConvertedSegments + 3]; | |
| 68 int offset; | |
| 69 int curseg; | |
| 70 int nseg; | |
| 71 int candstat; /* $B8uJd0lMw9T$N>uBV!#0J2<$r8+$h(B */ | |
| 72 ICString ics[3]; | |
| 73 wchar *gline[3]; | |
| 74 int glsize[3], gllen[3]; | |
| 75 int curgseg, ngseg; | |
| 76 wchar *curmode; | |
| 77 int modesize, modelen; | |
| 78 } iBuf; | |
| 79 | |
| 80 #define RUBY_GLINE_Empty 0 | |
| 81 #define RUBY_GLINE_Start 1 | |
| 82 #define RUBY_GLINE_End 2 | |
| 83 #define RUBY_GLINE_Change 3 | |
| 84 | |
| 85 typedef struct { | |
| 86 /* resources */ | |
| 87 String rubyhost; | |
| 88 String rubyfile; | |
| 89 Boolean sendReturnByString; | |
| 90 /* private data */ | |
| 91 iBuf *ibuf; | |
| 92 Boolean textchanged; /* $BJQ49%F%-%9%H$,JQ$o$C$?$+(B */ | |
| 93 Boolean selectionending;/* $BA*Br%b!<%I$r=*N;$7$h$&$H$7$F$$$k$+(B */ | |
| 94 ICString *symbollist; | |
| 95 int numsymbols; | |
| 96 int cursymbol; /* $B5-9fA*Br;~!"8=:_A*Br$5$l$F$$$k5-9f(B */ | |
| 97 ICString *candlist; | |
| 98 int candlistsize; | |
| 99 int numcand; /* $BA*Br%b!<%I$N;~!"8uJd?t(B */ | |
| 100 int curcand; /* $B8uJdA*Br;~!"8=:_A*Br$5$l$F$$$k8uJd(B */ | |
| 101 int *cur_addr; /* $B8uJdA*Br;~8uJdHV9f$rF~$l$k%"%I%l%9(B */ | |
| 102 Boolean lastTextLengthIsZero; | |
| 103 } RubyPart; | |
| 104 | |
| 105 typedef struct _RubyRec { | |
| 106 ObjectPart object; | |
| 107 InputConvPart inputConv; | |
| 108 RubyPart ruby; | |
| 109 } RubyRec; | |
| 110 | |
| 111 #endif |
