1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/chinese/aterm/files/patch-ab
Steve Price 67bee8b2bb Import of Chinese version of aterm 0.3.4.
Submitted by:	David Yu <davidyu@ken.csie.ntu.edu.tw>
Requested by:	foxfair
1999-05-01 13:47:15 +00:00

27 lines
604 B
Plaintext

--- src/state.h.orig Mon Apr 26 01:49:05 1999
+++ src/state.h Mon Apr 26 01:49:05 1999
@@ -0,0 +1,23 @@
+/*
+ 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; */