changeset 50156:8ff568a30195

(XChar2b): Move typedef here for consolidation. (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
author Kim F. Storm <storm@cua.dk>
date Sun, 16 Mar 2003 20:48:31 +0000
parents 2b702ff059f8
children 203d5a0f77a8
files src/macgui.h
diffstat 1 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/macgui.h	Sun Mar 16 20:48:21 2003 +0000
+++ b/src/macgui.h	Sun Mar 16 20:48:31 2003 +0000
@@ -97,6 +97,22 @@
 typedef struct MacFontStruct MacFontStruct;
 typedef struct MacFontStruct XFontStruct;
 
+/* Structure borrowed from Xlib.h to represent two-byte characters.  */
+
+typedef struct {
+  unsigned char byte1;
+  unsigned char byte2;
+} XChar2b;
+
+#define STORE_XCHAR2B(chp, b1, b2) \
+  ((chp)->byte1 = (b1), (chp)->byte2 = (b2))
+
+#define XCHAR2B_BYTE1(chp) \
+  ((chp)->byte1)
+
+#define XCHAR2B_BYTE2(chp) \
+  ((chp)->byte2)
+
 
 /* Emulate X GC's by keeping color and font info in a structure.  */
 typedef struct _XGCValues