summaryrefslogtreecommitdiff
path: root/other.h
diff options
context:
space:
mode:
authorEgbert Eich <eich@suse.de>2004-01-29 08:09:01 +0000
committerEgbert Eich <eich@suse.de>2004-01-29 08:09:01 +0000
commitc65c9b70829cf3e7e82729a7756cad05189c31ec (patch)
treeb20f43666621716643676c13a7b51bff64443483 /other.h
parent0afe748d654f553771ee2f4b07ab1ccce30b9ddd (diff)
Importing vendor version xf86-012804-2330 on Thu Jan 29 00:06:33 PST 2004xf86-4_3_99_903_specialxf86-012804-2330
Diffstat (limited to 'other.h')
-rw-r--r--other.h32
1 files changed, 31 insertions, 1 deletions
diff --git a/other.h b/other.h
index ef659c7..d5b2758 100644
--- a/other.h
+++ b/other.h
@@ -19,7 +19,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* $XFree86: xc/programs/luit/other.h,v 1.1 2002/10/17 01:06:09 dawes Exp $ */
+/* $XFree86: xc/programs/luit/other.h,v 1.2 2004/01/27 02:30:30 dawes Exp $ */
typedef struct {
FontMapPtr mapping;
@@ -40,10 +40,30 @@ typedef struct {
int buf;
} aux_sjis;
+typedef struct {
+ FontMapPtr mapping;
+ FontMapReversePtr reverse;
+ int buf;
+} aux_hkscs;
+
+typedef struct {
+ FontMapPtr cs0_mapping; /* gb18030.2000-0 */
+ FontMapReversePtr cs0_reverse;
+
+ FontMapPtr cs1_mapping; /* gb18030.2000-1 */
+ FontMapReversePtr cs1_reverse;
+
+ int linear; /* set to '1' if stack_gb18030 linearized a 4bytes seq */
+ int buf[3];
+ int buf_ptr;
+} aux_gb18030;
+
typedef union {
aux_gbk gbk;
aux_utf8 utf8;
aux_sjis sjis;
+ aux_hkscs hkscs;
+ aux_gb18030 gb18030;
} OtherState, *OtherStatePtr;
int init_gbk(OtherStatePtr);
@@ -61,3 +81,13 @@ unsigned int mapping_sjis(unsigned int, OtherStatePtr);
unsigned int reverse_sjis(unsigned int, OtherStatePtr);
int stack_sjis(unsigned char, OtherStatePtr);
+int init_hkscs(OtherStatePtr);
+unsigned int mapping_hkscs(unsigned int, OtherStatePtr);
+unsigned int reverse_hkscs(unsigned int, OtherStatePtr);
+int stack_hkscs(unsigned char, OtherStatePtr);
+
+int init_gb18030(OtherStatePtr);
+unsigned int mapping_gb18030(unsigned int, OtherStatePtr);
+unsigned int reverse_gb18030(unsigned int, OtherStatePtr);
+int stack_gb18030(unsigned char, OtherStatePtr);
+