patch 8.2.0872: XIM code is mixed with multi-byte code
Problem: XIM code is mixed with multi-byte code.
Solution: Move the XIM code to a separate file. (Yegappan Lakshmanan,
closes #6177)
diff --git a/src/Makefile b/src/Makefile
index 9a8e24f..520ef0b 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1636,6 +1636,7 @@
findfile.c \
fold.c \
getchar.c \
+ gui_xim.c \
hardcopy.c \
hashtab.c \
highlight.c \
@@ -1785,6 +1786,7 @@
objects/findfile.o \
objects/fold.o \
objects/getchar.o \
+ objects/gui_xim.o \
objects/hardcopy.o \
objects/hashtab.o \
objects/highlight.o \
@@ -1950,6 +1952,7 @@
findfile.pro \
fold.pro \
getchar.pro \
+ gui_xim.pro \
gui_beval.pro \
hardcopy.pro \
hashtab.pro \
@@ -3301,6 +3304,9 @@
objects/gui_x11.o: gui_x11.c
$(CCC) -o $@ gui_x11.c
+objects/gui_xim.o: gui_xim.c
+ $(CCC) -o $@ gui_xim.c
+
objects/gui_photon.o: gui_photon.c
$(CCC) -o $@ gui_photon.c
@@ -4239,6 +4245,11 @@
proto/gui_beval.pro structs.h regexp.h gui.h alloc.h ex_cmds.h spell.h \
proto.h globals.h ../runtime/vim32x32.xpm ../runtime/vim16x16.xpm \
../runtime/vim48x48.xpm
+objects/gui_xim.o: gui_xim.c vim.h protodef.h auto/config.h feature.h os_unix.h \
+ auto/osdef.h ascii.h keymap.h term.h macros.h option.h beval.h \
+ proto/gui_beval.pro structs.h regexp.h gui.h alloc.h ex_cmds.h spell.h \
+ proto.h globals.h ../runtime/vim32x32.xpm ../runtime/vim16x16.xpm \
+ ../runtime/vim48x48.xpm
objects/gui_at_sb.o: gui_at_sb.c vim.h protodef.h auto/config.h feature.h \
os_unix.h auto/osdef.h ascii.h keymap.h term.h macros.h option.h beval.h \
proto/gui_beval.pro structs.h regexp.h gui.h alloc.h ex_cmds.h spell.h \