# HG changeset patch # User Kim F. Storm # Date 1047847711 0 # Node ID 8ff568a30195ad825409a1262dc9b8e0c6d9dc62 # Parent 2b702ff059f8a04d677c058bd733729700a51d0b (XChar2b): Move typedef here for consolidation. (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros. diff -r 2b702ff059f8 -r 8ff568a30195 src/macgui.h --- 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