imm32: Replace macros with helper functions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Aric Stewart <aric@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e8a82e230f
commit
c4a4146534
|
@ -119,8 +119,15 @@ static CRITICAL_SECTION_DEBUG critsect_debug =
|
||||||
static CRITICAL_SECTION threaddata_cs = { &critsect_debug, -1, 0, 0, 0, 0 };
|
static CRITICAL_SECTION threaddata_cs = { &critsect_debug, -1, 0, 0, 0, 0 };
|
||||||
static BOOL disable_ime;
|
static BOOL disable_ime;
|
||||||
|
|
||||||
#define is_himc_ime_unicode(p) (p->immKbd->imeInfo.fdwProperty & IME_PROP_UNICODE)
|
static inline BOOL is_himc_ime_unicode(const InputContextData *data)
|
||||||
#define is_kbd_ime_unicode(p) (p->imeInfo.fdwProperty & IME_PROP_UNICODE)
|
{
|
||||||
|
return !!(data->immKbd->imeInfo.fdwProperty & IME_PROP_UNICODE);
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline BOOL is_kbd_ime_unicode(const ImmHkl *hkl)
|
||||||
|
{
|
||||||
|
return !!(hkl->imeInfo.fdwProperty & IME_PROP_UNICODE);
|
||||||
|
}
|
||||||
|
|
||||||
static BOOL IMM_DestroyContext(HIMC hIMC);
|
static BOOL IMM_DestroyContext(HIMC hIMC);
|
||||||
static InputContextData* get_imc_data(HIMC hIMC);
|
static InputContextData* get_imc_data(HIMC hIMC);
|
||||||
|
|
Loading…
Reference in New Issue