aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2010-10-29 11:01:41 +0900
committerKenichi Handa2010-10-29 11:01:41 +0900
commit0269bd906626243b117136d6ea9eb98d2947b9f8 (patch)
tree554657b1a580b0536ec0bfe5553d32910d5d8b61 /src
parentb2cca8569ad863c651dde1523ed841b280a96658 (diff)
downloademacs-0269bd906626243b117136d6ea9eb98d2947b9f8.tar.gz
emacs-0269bd906626243b117136d6ea9eb98d2947b9f8.zip
w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): Surround chp by parentheses.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/w32gui.h6
2 files changed, 8 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0928978ba28..eecad1f9689 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12010-10-29 Kenichi Handa <handa@m17n.org>
2
3 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): Surround
4 chp by parentheses.
5
12010-10-28 Kenichi Handa <handa@m17n.org> 62010-10-28 Kenichi Handa <handa@m17n.org>
2 7
3 Implement various display methods for glyphless characters. 8 Implement various display methods for glyphless characters.
diff --git a/src/w32gui.h b/src/w32gui.h
index 9cad4f21f21..079cd19a1f1 100644
--- a/src/w32gui.h
+++ b/src/w32gui.h
@@ -59,13 +59,13 @@ typedef HCURSOR Cursor;
59 59
60/* Dealing with bits of wchar_t as if they were an XChar2b. */ 60/* Dealing with bits of wchar_t as if they were an XChar2b. */
61#define STORE_XCHAR2B(chp, byte1, byte2) \ 61#define STORE_XCHAR2B(chp, byte1, byte2) \
62 ((*chp) = ((XChar2b)((((byte1) & 0x00ff) << 8) | ((byte2) & 0x00ff)))) 62 ((*(chp)) = ((XChar2b)((((byte1) & 0x00ff) << 8) | ((byte2) & 0x00ff))))
63 63
64#define XCHAR2B_BYTE1(chp) \ 64#define XCHAR2B_BYTE1(chp) \
65 (((*chp) & 0xff00) >> 8) 65 (((*(chp)) & 0xff00) >> 8)
66 66
67#define XCHAR2B_BYTE2(chp) \ 67#define XCHAR2B_BYTE2(chp) \
68 ((*chp) & 0x00ff) 68 ((*(chp)) & 0x00ff)
69 69
70 70
71/* Windows equivalent of XImage. */ 71/* Windows equivalent of XImage. */