Haiku fixes
This commit is contained in:
parent
7938480174
commit
e5c3cdfcf5
5 changed files with 16 additions and 16 deletions
18
src/im.c
18
src/im.c
|
|
@ -905,12 +905,12 @@ static int im_event_zh_tw(IM_DATA * im, SDL_keysym ks)
|
|||
|
||||
case IM_REQ_FREE: /* Free allocated resources */
|
||||
charmap_free(&cm);
|
||||
__attribute__ ((fallthrough)); /* go onto full reset */
|
||||
// // __attribute__ ((fallthrough)); /* go onto full reset */
|
||||
|
||||
case IM_REQ_RESET_FULL: /* Full reset */
|
||||
cm.section = SEC_ENGLISH;
|
||||
im->tip_text = im_tip_text[IM_TIP_ENGLISH];
|
||||
__attribute__ ((fallthrough)); /* go onto soft reset */
|
||||
// __attribute__ ((fallthrough)); /* go onto soft reset */
|
||||
|
||||
case IM_REQ_RESET_SOFT: /* Soft reset */
|
||||
im->s[0] = L'\0';
|
||||
|
|
@ -1124,12 +1124,12 @@ static int im_event_th(IM_DATA * im, SDL_keysym ks)
|
|||
|
||||
case IM_REQ_FREE: /* Free allocated resources */
|
||||
charmap_free(&cm);
|
||||
__attribute__ ((fallthrough)); /* go onto full reset */
|
||||
// __attribute__ ((fallthrough)); /* go onto full reset */
|
||||
|
||||
case IM_REQ_RESET_FULL: /* Full reset */
|
||||
cm.section = SEC_ENGLISH;
|
||||
im->tip_text = im_tip_text[IM_TIP_ENGLISH];
|
||||
__attribute__ ((fallthrough)); /* go onto soft reset */
|
||||
// __attribute__ ((fallthrough)); /* go onto soft reset */
|
||||
|
||||
case IM_REQ_RESET_SOFT: /* Soft reset */
|
||||
im->s[0] = L'\0';
|
||||
|
|
@ -1343,12 +1343,12 @@ static int im_event_ja(IM_DATA * im, SDL_keysym ks)
|
|||
|
||||
case IM_REQ_FREE: /* Free allocated resources */
|
||||
charmap_free(&cm);
|
||||
__attribute__ ((fallthrough)); /* go onto full reset */
|
||||
// __attribute__ ((fallthrough)); /* go onto full reset */
|
||||
|
||||
case IM_REQ_RESET_FULL: /* Full reset */
|
||||
cm.section = SEC_ENGLISH;
|
||||
im->tip_text = im_tip_text[IM_TIP_ENGLISH];
|
||||
__attribute__ ((fallthrough)); /* go onto soft reset */
|
||||
// __attribute__ ((fallthrough)); /* go onto soft reset */
|
||||
|
||||
case IM_REQ_RESET_SOFT: /* Soft reset */
|
||||
im->s[0] = L'\0';
|
||||
|
|
@ -1590,12 +1590,12 @@ static int im_event_ko(IM_DATA * im, SDL_keysym ks)
|
|||
|
||||
case IM_REQ_FREE: /* Free allocated resources */
|
||||
charmap_free(&cm);
|
||||
__attribute__ ((fallthrough)); /* go onto full reset */
|
||||
// __attribute__ ((fallthrough)); /* go onto full reset */
|
||||
|
||||
case IM_REQ_RESET_FULL: /* Full reset */
|
||||
cm.section = SEC_ENGLISH;
|
||||
im->tip_text = im_tip_text[IM_TIP_ENGLISH];
|
||||
__attribute__ ((fallthrough)); /* go onto soft reset */
|
||||
// __attribute__ ((fallthrough)); /* go onto soft reset */
|
||||
|
||||
case IM_REQ_RESET_SOFT: /* Soft reset */
|
||||
im->s[0] = L'\0';
|
||||
|
|
@ -1681,7 +1681,7 @@ static int im_event_ko(IM_DATA * im, SDL_keysym ks)
|
|||
im->redraw--;
|
||||
ks.unicode = L'\0';
|
||||
}
|
||||
__attribute__ ((fallthrough)); /* continue processing: */
|
||||
// __attribute__ ((fallthrough)); /* continue processing: */
|
||||
|
||||
/* Actual character processing */
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue