aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm2003-03-16 20:48:31 +0000
committerKim F. Storm2003-03-16 20:48:31 +0000
commitec480ce025f9a1668ff48e065b7d36b8ed2632d4 (patch)
tree72a9154b851d47af986ad9e38cc4c4d7a653fbc8 /src
parent8e025dd53b850775ee4755482a2947a64f18c49a (diff)
downloademacs-ec480ce025f9a1668ff48e065b7d36b8ed2632d4.tar.gz
emacs-ec480ce025f9a1668ff48e065b7d36b8ed2632d4.zip
(XChar2b): Move typedef here for consolidation.
(STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
Diffstat (limited to 'src')
-rw-r--r--src/macgui.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/macgui.h b/src/macgui.h
index a6ad18fddcf..f0ae1c36397 100644
--- a/src/macgui.h
+++ b/src/macgui.h
@@ -97,6 +97,22 @@ struct MacFontStruct {
97typedef struct MacFontStruct MacFontStruct; 97typedef struct MacFontStruct MacFontStruct;
98typedef struct MacFontStruct XFontStruct; 98typedef struct MacFontStruct XFontStruct;
99 99
100/* Structure borrowed from Xlib.h to represent two-byte characters. */
101
102typedef struct {
103 unsigned char byte1;
104 unsigned char byte2;
105} XChar2b;
106
107#define STORE_XCHAR2B(chp, b1, b2) \
108 ((chp)->byte1 = (b1), (chp)->byte2 = (b2))
109
110#define XCHAR2B_BYTE1(chp) \
111 ((chp)->byte1)
112
113#define XCHAR2B_BYTE2(chp) \
114 ((chp)->byte2)
115
100 116
101/* Emulate X GC's by keeping color and font info in a structure. */ 117/* Emulate X GC's by keeping color and font info in a structure. */
102typedef struct _XGCValues 118typedef struct _XGCValues