struct x_display_info *dpyinfo;
char *resource_name;
{
+#ifdef USE_XIM
XIM xim;
xim = XOpenIM (dpyinfo->display, dpyinfo->xrdb, resource_name, EMACS_CLASS);
XSetIMValues (xim, XNDestroyCallback, &destroy, NULL);
#endif
}
+
+#else /* not USE_XIM */
+ dpyinfo->xim = NULL;
+#endif /* not USE_XIM */
}
struct x_display_info *dpyinfo;
char *resource_name;
{
+#ifdef USE_XIM
#ifdef HAVE_X11R6_XIM
struct xim_inst_t *xim_inst;
int len;
dpyinfo->xim = NULL;
xim_open_dpy (dpyinfo, resource_name);
#endif /* not HAVE_X11R6_XIM */
+
+#else /* not USE_XIM */
+ dpyinfo->xim = NULL;
+#endif /* not USE_XIM */
}
xim_close_dpy (dpyinfo)
struct x_display_info *dpyinfo;
{
+#ifdef USE_XIM
#ifdef HAVE_X11R6_XIM
XUnregisterIMInstantiateCallback (dpyinfo->display, dpyinfo->xrdb,
NULL, EMACS_CLASS,
XCloseIM (dpyinfo->xim);
dpyinfo->xim = NULL;
XFree (dpyinfo->xim_styles);
+#endif /* USE_XIM */
}
#endif /* not HAVE_X11R6_XIM */