diff --git a/src/im.c b/src/im.c index ac7d5862b..f960ab9cd 100644 --- a/src/im.c +++ b/src/im.c @@ -43,6 +43,12 @@ #include #include "im.h" +#include "i18n.h" +#include "debug.h" + +#ifdef DEBUG +#include +#endif /* *************************************************************************** @@ -94,7 +100,9 @@ static const char *const im_tip_text[NUM_IM_TIPS] = { * CONSTANTS */ -/* #define IM_DEBUG 1 */ +#ifdef DEBUG +#define IM_DEBUG 1 +#endif #define MAX_SECTIONS 8 /* Maximum numbers of sections in *.im file */ #define MAX_UNICODE_SEQ 16 /* Output of state machine, including NUL */ @@ -1876,8 +1884,7 @@ void im_init(IM_DATA * im, int lang) #ifdef DEBUG assert(0 <= im->lang && im->lang < NUM_LANGS); - if (im_event_fp) - printf("Initializing IM for %s...\n", lang_prefixes[im->lang]); + printf("Initializing IM for %s...\n", lang_prefixes[im->lang]); #endif /* Initialize the individual IM */