mirror of
https://github.com/vim/vim.git
synced 2025-07-04 23:07:33 -04:00
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)
This commit is contained in:
parent
f17e7ea67a
commit
f15c8b6eb3
2
Filelist
2
Filelist
@ -419,6 +419,7 @@ SRC_UNIX = \
|
|||||||
src/gui_gtk_x11.c \
|
src/gui_gtk_x11.c \
|
||||||
src/gui_gtk_res.xml \
|
src/gui_gtk_res.xml \
|
||||||
src/gui_motif.c \
|
src/gui_motif.c \
|
||||||
|
src/gui_xim.c \
|
||||||
src/gui_xmdlg.c \
|
src/gui_xmdlg.c \
|
||||||
src/gui_xmebw.c \
|
src/gui_xmebw.c \
|
||||||
src/gui_xmebw.h \
|
src/gui_xmebw.h \
|
||||||
@ -442,6 +443,7 @@ SRC_UNIX = \
|
|||||||
src/proto/gui_gtk_x11.pro \
|
src/proto/gui_gtk_x11.pro \
|
||||||
src/proto/gui_gtk_gresources.pro \
|
src/proto/gui_gtk_gresources.pro \
|
||||||
src/proto/gui_motif.pro \
|
src/proto/gui_motif.pro \
|
||||||
|
src/proto/gui_xim.pro \
|
||||||
src/proto/gui_xmdlg.pro \
|
src/proto/gui_xmdlg.pro \
|
||||||
src/proto/gui_x11.pro \
|
src/proto/gui_x11.pro \
|
||||||
src/proto/if_xcmdsrv.pro \
|
src/proto/if_xcmdsrv.pro \
|
||||||
|
@ -741,6 +741,7 @@ OBJ = \
|
|||||||
$(OUTDIR)/findfile.o \
|
$(OUTDIR)/findfile.o \
|
||||||
$(OUTDIR)/fold.o \
|
$(OUTDIR)/fold.o \
|
||||||
$(OUTDIR)/getchar.o \
|
$(OUTDIR)/getchar.o \
|
||||||
|
$(OUTDIR)/gui_xim.o \
|
||||||
$(OUTDIR)/hardcopy.o \
|
$(OUTDIR)/hardcopy.o \
|
||||||
$(OUTDIR)/hashtab.o \
|
$(OUTDIR)/hashtab.o \
|
||||||
$(OUTDIR)/highlight.o \
|
$(OUTDIR)/highlight.o \
|
||||||
|
@ -61,6 +61,7 @@ SRC = arabic.c \
|
|||||||
findfile.c \
|
findfile.c \
|
||||||
fold.c \
|
fold.c \
|
||||||
getchar.c \
|
getchar.c \
|
||||||
|
gui_xim.c \
|
||||||
hardcopy.c \
|
hardcopy.c \
|
||||||
hashtab.c \
|
hashtab.c \
|
||||||
highlight.c \
|
highlight.c \
|
||||||
|
@ -761,6 +761,7 @@ OBJ = \
|
|||||||
$(OUTDIR)\findfile.obj \
|
$(OUTDIR)\findfile.obj \
|
||||||
$(OUTDIR)\fold.obj \
|
$(OUTDIR)\fold.obj \
|
||||||
$(OUTDIR)\getchar.obj \
|
$(OUTDIR)\getchar.obj \
|
||||||
|
$(OUTDIR)\gui_xim.obj \
|
||||||
$(OUTDIR)\hardcopy.obj \
|
$(OUTDIR)\hardcopy.obj \
|
||||||
$(OUTDIR)\hashtab.obj \
|
$(OUTDIR)\hashtab.obj \
|
||||||
$(OUTDIR)\highlight.obj \
|
$(OUTDIR)\highlight.obj \
|
||||||
@ -1591,6 +1592,8 @@ $(OUTDIR)/fold.obj: $(OUTDIR) fold.c $(INCL)
|
|||||||
|
|
||||||
$(OUTDIR)/getchar.obj: $(OUTDIR) getchar.c $(INCL)
|
$(OUTDIR)/getchar.obj: $(OUTDIR) getchar.c $(INCL)
|
||||||
|
|
||||||
|
$(OUTDIR)/gui_xim.obj: $(OUTDIR) gui_xim.c $(INCL)
|
||||||
|
|
||||||
$(OUTDIR)/hardcopy.obj: $(OUTDIR) hardcopy.c $(INCL) version.h
|
$(OUTDIR)/hardcopy.obj: $(OUTDIR) hardcopy.c $(INCL) version.h
|
||||||
|
|
||||||
$(OUTDIR)/hashtab.obj: $(OUTDIR) hashtab.c $(INCL)
|
$(OUTDIR)/hashtab.obj: $(OUTDIR) hashtab.c $(INCL)
|
||||||
@ -1908,6 +1911,7 @@ proto.h: \
|
|||||||
proto/filepath.pro \
|
proto/filepath.pro \
|
||||||
proto/findfile.pro \
|
proto/findfile.pro \
|
||||||
proto/getchar.pro \
|
proto/getchar.pro \
|
||||||
|
proto/gui_xim.pro \
|
||||||
proto/hardcopy.pro \
|
proto/hardcopy.pro \
|
||||||
proto/hashtab.pro \
|
proto/hashtab.pro \
|
||||||
proto/highlight.pro \
|
proto/highlight.pro \
|
||||||
|
@ -334,6 +334,7 @@ SRC = \
|
|||||||
findfile.c \
|
findfile.c \
|
||||||
fold.c \
|
fold.c \
|
||||||
getchar.c \
|
getchar.c \
|
||||||
|
gui_xim.c \
|
||||||
hardcopy.c \
|
hardcopy.c \
|
||||||
hashtab.c \
|
hashtab.c \
|
||||||
highlight.c \
|
highlight.c \
|
||||||
@ -445,6 +446,7 @@ OBJ = \
|
|||||||
findfile.obj \
|
findfile.obj \
|
||||||
fold.obj \
|
fold.obj \
|
||||||
getchar.obj \
|
getchar.obj \
|
||||||
|
gui_xim.obj \
|
||||||
hardcopy.obj \
|
hardcopy.obj \
|
||||||
hashtab.obj \
|
hashtab.obj \
|
||||||
highlight.obj \
|
highlight.obj \
|
||||||
@ -818,6 +820,10 @@ getchar.obj : getchar.c vim.h [.auto]config.h feature.h os_unix.h \
|
|||||||
ascii.h keymap.h term.h macros.h structs.h regexp.h \
|
ascii.h keymap.h term.h macros.h structs.h regexp.h \
|
||||||
gui.h beval.h [.proto]gui_beval.pro option.h ex_cmds.h proto.h \
|
gui.h beval.h [.proto]gui_beval.pro option.h ex_cmds.h proto.h \
|
||||||
globals.h
|
globals.h
|
||||||
|
gui_xim.obj : gui_xim.c vim.h [.auto]config.h feature.h os_unix.h \
|
||||||
|
ascii.h keymap.h term.h macros.h structs.h regexp.h \
|
||||||
|
gui.h beval.h [.proto]gui_beval.pro option.h ex_cmds.h proto.h \
|
||||||
|
globals.h
|
||||||
hardcopy.obj : hardcopy.c vim.h [.auto]config.h feature.h os_unix.h \
|
hardcopy.obj : hardcopy.c vim.h [.auto]config.h feature.h os_unix.h \
|
||||||
ascii.h keymap.h term.h macros.h structs.h regexp.h \
|
ascii.h keymap.h term.h macros.h structs.h regexp.h \
|
||||||
gui.h beval.h [.proto]gui_beval.pro option.h ex_cmds.h proto.h \
|
gui.h beval.h [.proto]gui_beval.pro option.h ex_cmds.h proto.h \
|
||||||
|
11
src/Makefile
11
src/Makefile
@ -1636,6 +1636,7 @@ BASIC_SRC = \
|
|||||||
findfile.c \
|
findfile.c \
|
||||||
fold.c \
|
fold.c \
|
||||||
getchar.c \
|
getchar.c \
|
||||||
|
gui_xim.c \
|
||||||
hardcopy.c \
|
hardcopy.c \
|
||||||
hashtab.c \
|
hashtab.c \
|
||||||
highlight.c \
|
highlight.c \
|
||||||
@ -1785,6 +1786,7 @@ OBJ_COMMON = \
|
|||||||
objects/findfile.o \
|
objects/findfile.o \
|
||||||
objects/fold.o \
|
objects/fold.o \
|
||||||
objects/getchar.o \
|
objects/getchar.o \
|
||||||
|
objects/gui_xim.o \
|
||||||
objects/hardcopy.o \
|
objects/hardcopy.o \
|
||||||
objects/hashtab.o \
|
objects/hashtab.o \
|
||||||
objects/highlight.o \
|
objects/highlight.o \
|
||||||
@ -1950,6 +1952,7 @@ PRO_AUTO = \
|
|||||||
findfile.pro \
|
findfile.pro \
|
||||||
fold.pro \
|
fold.pro \
|
||||||
getchar.pro \
|
getchar.pro \
|
||||||
|
gui_xim.pro \
|
||||||
gui_beval.pro \
|
gui_beval.pro \
|
||||||
hardcopy.pro \
|
hardcopy.pro \
|
||||||
hashtab.pro \
|
hashtab.pro \
|
||||||
@ -3301,6 +3304,9 @@ objects/gui_xmebw.o: gui_xmebw.c
|
|||||||
objects/gui_x11.o: gui_x11.c
|
objects/gui_x11.o: gui_x11.c
|
||||||
$(CCC) -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
|
objects/gui_photon.o: gui_photon.c
|
||||||
$(CCC) -o $@ gui_photon.c
|
$(CCC) -o $@ gui_photon.c
|
||||||
|
|
||||||
@ -4239,6 +4245,11 @@ objects/gui_x11.o: gui_x11.c vim.h protodef.h auto/config.h feature.h os_unix.h
|
|||||||
proto/gui_beval.pro structs.h regexp.h gui.h alloc.h ex_cmds.h spell.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 \
|
proto.h globals.h ../runtime/vim32x32.xpm ../runtime/vim16x16.xpm \
|
||||||
../runtime/vim48x48.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 \
|
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 \
|
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/gui_beval.pro structs.h regexp.h gui.h alloc.h ex_cmds.h spell.h \
|
||||||
|
1777
src/gui_xim.c
Normal file
1777
src/gui_xim.c
Normal file
File diff suppressed because it is too large
Load Diff
1764
src/mbyte.c
1764
src/mbyte.c
File diff suppressed because it is too large
Load Diff
@ -92,6 +92,7 @@ extern int _stricoll(char *a, char *b);
|
|||||||
# include "findfile.pro"
|
# include "findfile.pro"
|
||||||
# include "fold.pro"
|
# include "fold.pro"
|
||||||
# include "getchar.pro"
|
# include "getchar.pro"
|
||||||
|
# include "gui_xim.pro"
|
||||||
# include "hardcopy.pro"
|
# include "hardcopy.pro"
|
||||||
# include "hashtab.pro"
|
# include "hashtab.pro"
|
||||||
# include "highlight.pro"
|
# include "highlight.pro"
|
||||||
|
17
src/proto/gui_xim.pro
Normal file
17
src/proto/gui_xim.pro
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
/* gui_xim.c */
|
||||||
|
void im_set_active(int active);
|
||||||
|
void xim_set_focus(int focus);
|
||||||
|
void im_set_position(int row, int col);
|
||||||
|
void xim_set_preedit(void);
|
||||||
|
int im_get_feedback_attr(int col);
|
||||||
|
void xim_init(void);
|
||||||
|
void im_shutdown(void);
|
||||||
|
int im_xim_isvalid_imactivate(void);
|
||||||
|
void xim_reset(void);
|
||||||
|
int xim_queue_key_press_event(GdkEventKey *event, int down);
|
||||||
|
int im_get_status(void);
|
||||||
|
int preedit_get_status(void);
|
||||||
|
int im_is_preediting(void);
|
||||||
|
void xim_set_status_area(void);
|
||||||
|
int xim_get_status_area_height(void);
|
||||||
|
/* vim: set ft=c : */
|
@ -74,21 +74,6 @@ int encname2codepage(char_u *name);
|
|||||||
void *my_iconv_open(char_u *to, char_u *from);
|
void *my_iconv_open(char_u *to, char_u *from);
|
||||||
int iconv_enabled(int verbose);
|
int iconv_enabled(int verbose);
|
||||||
void iconv_end(void);
|
void iconv_end(void);
|
||||||
void im_set_active(int active);
|
|
||||||
void xim_set_focus(int focus);
|
|
||||||
void im_set_position(int row, int col);
|
|
||||||
void xim_set_preedit(void);
|
|
||||||
int im_get_feedback_attr(int col);
|
|
||||||
void xim_init(void);
|
|
||||||
void im_shutdown(void);
|
|
||||||
int im_xim_isvalid_imactivate(void);
|
|
||||||
void xim_reset(void);
|
|
||||||
int xim_queue_key_press_event(GdkEventKey *event, int down);
|
|
||||||
int im_get_status(void);
|
|
||||||
int preedit_get_status(void);
|
|
||||||
int im_is_preediting(void);
|
|
||||||
void xim_set_status_area(void);
|
|
||||||
int xim_get_status_area_height(void);
|
|
||||||
void f_getimstatus(typval_T *argvars, typval_T *rettv);
|
void f_getimstatus(typval_T *argvars, typval_T *rettv);
|
||||||
int convert_setup(vimconv_T *vcp, char_u *from, char_u *to);
|
int convert_setup(vimconv_T *vcp, char_u *from, char_u *to);
|
||||||
int convert_setup_ext(vimconv_T *vcp, char_u *from, int from_unicode_is_utf8, char_u *to, int to_unicode_is_utf8);
|
int convert_setup_ext(vimconv_T *vcp, char_u *from, int from_unicode_is_utf8, char_u *to, int to_unicode_is_utf8);
|
||||||
|
@ -746,6 +746,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
872,
|
||||||
/**/
|
/**/
|
||||||
871,
|
871,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user