1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/chinese/aterm/files/state.h
Seiichirou Hiraoka b1ee07820b Update to 0.3.5
PR: ports/11625
Submitted by: davidyu@ken.csie.ntu.edu.tw
1999-05-10 16:20:23 +00:00

24 lines
477 B
C

/*
Copyright (C) 1994 Edward Der-Hua Liu, Hsin-Chu, Taiwan
*/
typedef struct {
char kb_state;
char _CurInMethod;
} InmdState;
#define EngChiMask (1)
#define HalfFullMask (2)
typedef struct {
int len;
int status;
InmdState inmdstate;
char tkey[512];
} XCIN_RES;
#define EngChi ((inmdstate.kb_state & EngChiMask) ? 1:0)
#define HalfFull ((inmdstate.kb_state & HalfFullMask) ? 1:0)
#define CurInMethod (inmdstate._CurInMethod)
/* extern InmdState inmdstate; */