diff options
| author | Kim F. Storm | 2003-03-16 20:48:31 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2003-03-16 20:48:31 +0000 |
| commit | ec480ce025f9a1668ff48e065b7d36b8ed2632d4 (patch) | |
| tree | 72a9154b851d47af986ad9e38cc4c4d7a653fbc8 /src | |
| parent | 8e025dd53b850775ee4755482a2947a64f18c49a (diff) | |
| download | emacs-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.h | 16 |
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 { | |||
| 97 | typedef struct MacFontStruct MacFontStruct; | 97 | typedef struct MacFontStruct MacFontStruct; |
| 98 | typedef struct MacFontStruct XFontStruct; | 98 | typedef struct MacFontStruct XFontStruct; |
| 99 | 99 | ||
| 100 | /* Structure borrowed from Xlib.h to represent two-byte characters. */ | ||
| 101 | |||
| 102 | typedef 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. */ |
| 102 | typedef struct _XGCValues | 118 | typedef struct _XGCValues |