indent im.c im.h

This commit is contained in:
Bill Kendrick 2017-10-15 10:58:14 -07:00
parent 5b4e0dd53f
commit 0796dc924c
2 changed files with 1003 additions and 796 deletions

1778
src/im.c

File diff suppressed because it is too large Load diff

View file

@ -33,15 +33,16 @@
* TYPES
*/
typedef struct IM_DATA {
int lang; /* Language used in sequence translation */
wchar_t s[16]; /* Characters that should be displayed */
const char* tip_text; /* Tip text, read-only please */
typedef struct IM_DATA
{
int lang; /* Language used in sequence translation */
wchar_t s[16]; /* Characters that should be displayed */
const char *tip_text; /* Tip text, read-only please */
/* For use by language-specific im_event_<lang> calls. PRIVATE! */
wchar_t buf[8]; /* Buffered characters */
int redraw; /* Redraw this many characters next time */
int request; /* Event request */
wchar_t buf[8]; /* Buffered characters */
int redraw; /* Redraw this many characters next time */
int request; /* Event request */
} IM_DATA;
@ -49,9 +50,9 @@ typedef struct IM_DATA {
* FUNCTIONS
*/
void im_init(IM_DATA* im, int lang); /* Initialize IM */
void im_softreset(IM_DATA* im); /* Soft Reset IM */
int im_read(IM_DATA* im, SDL_keysym ks);
void im_init(IM_DATA * im, int lang); /* Initialize IM */
void im_softreset(IM_DATA * im); /* Soft Reset IM */
int im_read(IM_DATA * im, SDL_keysym ks);
#endif /* TUXPAINT_IM_H */