[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#10299: Emacs doesn't handle Unicode characters in keyboard layout on
From: |
Andreas Schwab |
Subject: |
bug#10299: Emacs doesn't handle Unicode characters in keyboard layout on MS Windows |
Date: |
Tue, 24 Jan 2012 10:40:52 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> + if (os_subtype == OS_NT)
>> + result = GetMessageW (&msg, NULL, 0, 0);
>> + else
>> + result = GetMessage (&msg, NULL, 0, 0);
>
> I'd write it as follows:
>
> result = (os_subtype == OS_NT ? GetMessageW : GetMessage) (&msg, NULL, 0,
> 0);
That can fail if either of the functions is defined only as a
function-like macro.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."