diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-06-14 21:36:54 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-06-14 21:36:54 +0200 |
commit | 0554fa478d27c611d23a814c987eb66f9daae6f7 (patch) | |
tree | f1dc359a778da461f7d32e20aa6f4e50ee0df530 /src | |
parent | f42397c395ec8ff2dffef914805b4d9cbf1d600b (diff) | |
download | vim-git-0554fa478d27c611d23a814c987eb66f9daae6f7.tar.gz |
patch 8.1.1531: clipboard type name is inconsistentv8.1.1531
Problem: Clipboard type name is inconsistent.
Solution: Rename VimClipboard to Clipboard_T.
Diffstat (limited to 'src')
-rw-r--r-- | src/globals.h | 6 | ||||
-rw-r--r-- | src/gui_gtk_x11.c | 14 | ||||
-rw-r--r-- | src/gui_mac.c | 8 | ||||
-rw-r--r-- | src/gui_x11.c | 8 | ||||
-rw-r--r-- | src/ops.c | 8 | ||||
-rw-r--r-- | src/os_qnx.c | 8 | ||||
-rw-r--r-- | src/os_unix.c | 8 | ||||
-rw-r--r-- | src/proto.h | 8 | ||||
-rw-r--r-- | src/proto/gui_gtk_x11.pro | 10 | ||||
-rw-r--r-- | src/proto/gui_mac.pro | 8 | ||||
-rw-r--r-- | src/proto/gui_x11.pro | 8 | ||||
-rw-r--r-- | src/proto/ops.pro | 8 | ||||
-rw-r--r-- | src/proto/os_qnx.pro | 8 | ||||
-rw-r--r-- | src/proto/os_unix.pro | 8 | ||||
-rw-r--r-- | src/proto/ui.pro | 30 | ||||
-rw-r--r-- | src/proto/winclip.pro | 8 | ||||
-rw-r--r-- | src/ui.c | 55 | ||||
-rw-r--r-- | src/version.c | 2 | ||||
-rw-r--r-- | src/winclip.c | 10 |
19 files changed, 112 insertions, 111 deletions
diff --git a/src/globals.h b/src/globals.h index 3e6154573..992ce2a54 100644 --- a/src/globals.h +++ b/src/globals.h @@ -545,11 +545,11 @@ EXTERN int gui_win_y INIT(= -1); #endif #ifdef FEAT_CLIPBOARD -EXTERN VimClipboard clip_star; /* PRIMARY selection in X11 */ +EXTERN Clipboard_T clip_star; // PRIMARY selection in X11 # ifdef FEAT_X11 -EXTERN VimClipboard clip_plus; /* CLIPBOARD selection in X11 */ +EXTERN Clipboard_T clip_plus; // CLIPBOARD selection in X11 # else -# define clip_plus clip_star /* there is only one clipboard */ +# define clip_plus clip_star // there is only one clipboard # define ONE_CLIPBOARD # endif diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c index a994869a5..509cfc2b5 100644 --- a/src/gui_gtk_x11.c +++ b/src/gui_gtk_x11.c @@ -1394,7 +1394,7 @@ selection_received_cb(GtkWidget *widget UNUSED, guint time_ UNUSED, gpointer user_data UNUSED) { - VimClipboard *cbd; + Clipboard_T *cbd; char_u *text; char_u *tmpbuf = NULL; guchar *tmpbuf_utf8 = NULL; @@ -1511,7 +1511,7 @@ selection_get_cb(GtkWidget *widget UNUSED, int length; int motion_type; GdkAtom type; - VimClipboard *cbd; + Clipboard_T *cbd; if (gtk_selection_data_get_selection(selection_data) == clip_plus.gtk_sel_atom) @@ -6602,7 +6602,7 @@ gui_mch_insert_lines(int row, int num_lines) * X Selection stuff, for cutting and pasting text to other windows. */ void -clip_mch_request_selection(VimClipboard *cbd) +clip_mch_request_selection(Clipboard_T *cbd) { GdkAtom target; unsigned i; @@ -6639,7 +6639,7 @@ clip_mch_request_selection(VimClipboard *cbd) * Disown the selection. */ void -clip_mch_lose_selection(VimClipboard *cbd UNUSED) +clip_mch_lose_selection(Clipboard_T *cbd UNUSED) { if (!in_selection_clear_event) { @@ -6652,7 +6652,7 @@ clip_mch_lose_selection(VimClipboard *cbd UNUSED) * Own the selection and return OK if it worked. */ int -clip_mch_own_selection(VimClipboard *cbd) +clip_mch_own_selection(Clipboard_T *cbd) { int success; @@ -6667,13 +6667,13 @@ clip_mch_own_selection(VimClipboard *cbd) * will fill in the selection only when requested by another app. */ void -clip_mch_set_selection(VimClipboard *cbd UNUSED) +clip_mch_set_selection(Clipboard_T *cbd UNUSED) { } #if (defined(FEAT_XCLIPBOARD) && defined(USE_SYSTEM)) || defined(PROTO) int -clip_gtk_owner_exists(VimClipboard *cbd) +clip_gtk_owner_exists(Clipboard_T *cbd) { return gdk_selection_owner_get(cbd->gtk_sel_atom) != NULL; } diff --git a/src/gui_mac.c b/src/gui_mac.c index bb0aa9d87..b43ed8506 100644 --- a/src/gui_mac.c +++ b/src/gui_mac.c @@ -4434,7 +4434,7 @@ gui_mch_insert_lines(int row, int num_lines) */ void -clip_mch_request_selection(VimClipboard *cbd) +clip_mch_request_selection(Clipboard_T *cbd) { Handle textOfClip; @@ -4524,7 +4524,7 @@ clip_mch_request_selection(VimClipboard *cbd) } void -clip_mch_lose_selection(VimClipboard *cbd) +clip_mch_lose_selection(Clipboard_T *cbd) { /* * TODO: Really nothing to do? @@ -4532,7 +4532,7 @@ clip_mch_lose_selection(VimClipboard *cbd) } int -clip_mch_own_selection(VimClipboard *cbd) +clip_mch_own_selection(Clipboard_T *cbd) { return OK; } @@ -4541,7 +4541,7 @@ clip_mch_own_selection(VimClipboard *cbd) * Send the current selection to the clipboard. */ void -clip_mch_set_selection(VimClipboard *cbd) +clip_mch_set_selection(Clipboard_T *cbd) { Handle textOfClip; long scrapSize; diff --git a/src/gui_x11.c b/src/gui_x11.c index edf69dd40..3555ffae0 100644 --- a/src/gui_x11.c +++ b/src/gui_x11.c @@ -2872,26 +2872,26 @@ gui_x11_check_copy_area(void) */ void -clip_mch_lose_selection(VimClipboard *cbd) +clip_mch_lose_selection(Clipboard_T *cbd) { clip_x11_lose_selection(vimShell, cbd); } int -clip_mch_own_selection(VimClipboard *cbd) +clip_mch_own_selection(Clipboard_T *cbd) { return clip_x11_own_selection(vimShell, cbd); } void -clip_mch_request_selection(VimClipboard *cbd) +clip_mch_request_selection(Clipboard_T *cbd) { clip_x11_request_selection(vimShell, gui.dpy, cbd); } void clip_mch_set_selection( - VimClipboard *cbd) + Clipboard_T *cbd) { clip_x11_set_selection(cbd); } @@ -6460,7 +6460,7 @@ x11_export_final_selection(void) #endif void -clip_free_selection(VimClipboard *cbd) +clip_free_selection(Clipboard_T *cbd) { yankreg_T *y_ptr = y_current; @@ -6477,7 +6477,7 @@ clip_free_selection(VimClipboard *cbd) * Get the selected text and put it in register '*' or '+'. */ void -clip_get_selection(VimClipboard *cbd) +clip_get_selection(Clipboard_T *cbd) { yankreg_T *old_y_previous, *old_y_current; pos_T old_cursor; @@ -6542,7 +6542,7 @@ clip_yank_selection( int type, char_u *str, long len, - VimClipboard *cbd) + Clipboard_T *cbd) { yankreg_T *y_ptr; @@ -6562,7 +6562,7 @@ clip_yank_selection( * Returns the motion type, or -1 for failure. */ int -clip_convert_selection(char_u **str, long_u *len, VimClipboard *cbd) +clip_convert_selection(char_u **str, long_u *len, Clipboard_T *cbd) { char_u *p; int lnum; diff --git a/src/os_qnx.c b/src/os_qnx.c index 79b7ec0f6..a6f195e50 100644 --- a/src/os_qnx.c +++ b/src/os_qnx.c @@ -48,18 +48,18 @@ void qnx_clip_init(void) /* No support for owning the clipboard */ int -clip_mch_own_selection(VimClipboard *cbd) +clip_mch_own_selection(Clipboard_T *cbd) { return FALSE; } void -clip_mch_lose_selection(VimClipboard *cbd) +clip_mch_lose_selection(Clipboard_T *cbd) { } void -clip_mch_request_selection(VimClipboard *cbd) +clip_mch_request_selection(Clipboard_T *cbd) { int type = MLINE, clip_length = 0, is_type_set = FALSE; void *cbdata; @@ -102,7 +102,7 @@ clip_mch_request_selection(VimClipboard *cbd) } void -clip_mch_set_selection(VimClipboard *cbd) +clip_mch_set_selection(Clipboard_T *cbd) { int type; long_u len; diff --git a/src/os_unix.c b/src/os_unix.c index 01f5f5946..a15d66057 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -7775,7 +7775,7 @@ xterm_update(void) } int -clip_xterm_own_selection(VimClipboard *cbd) +clip_xterm_own_selection(Clipboard_T *cbd) { if (xterm_Shell != (Widget)0) return clip_x11_own_selection(xterm_Shell, cbd); @@ -7783,21 +7783,21 @@ clip_xterm_own_selection(VimClipboard *cbd) } void -clip_xterm_lose_selection(VimClipboard *cbd) +clip_xterm_lose_selection(Clipboard_T *cbd) { if (xterm_Shell != (Widget)0) clip_x11_lose_selection(xterm_Shell, cbd); } void -clip_xterm_request_selection(VimClipboard *cbd) +clip_xterm_request_selection(Clipboard_T *cbd) { if (xterm_Shell != (Widget)0) clip_x11_request_selection(xterm_Shell, xterm_dpy, cbd); } void -clip_xterm_set_selection(VimClipboard *cbd) +clip_xterm_set_selection(Clipboard_T *cbd) { clip_x11_set_selection(cbd); } diff --git a/src/proto.h b/src/proto.h index 264cbb9e4..81023e274 100644 --- a/src/proto.h +++ b/src/proto.h @@ -320,9 +320,9 @@ extern char *vim_SelFile(Widget toplevel, char *prompt, char *init_path, int (*s #endif #if defined(MACOS_X_DARWIN) && defined(FEAT_CLIPBOARD) && !defined(FEAT_GUI) /* functions in os_macosx.m */ -void clip_mch_lose_selection(VimClipboard *cbd); -int clip_mch_own_selection(VimClipboard *cbd); -void clip_mch_request_selection(VimClipboard *cbd); -void clip_mch_set_selection(VimClipboard *cbd); +void clip_mch_lose_selection(Clipboard_T *cbd); +int clip_mch_own_selection(Clipboard_T *cbd); +void clip_mch_request_selection(Clipboard_T *cbd); +void clip_mch_set_selection(Clipboard_T *cbd); #endif #endif /* !PROTO && !NOPROTO */ diff --git a/src/proto/gui_gtk_x11.pro b/src/proto/gui_gtk_x11.pro index 111cac7c9..708e68dd5 100644 --- a/src/proto/gui_gtk_x11.pro +++ b/src/proto/gui_gtk_x11.pro @@ -59,11 +59,11 @@ void gui_mch_clear_block(int row1arg, int col1arg, int row2arg, int col2arg); void gui_mch_clear_all(void); void gui_mch_delete_lines(int row, int num_lines); void gui_mch_insert_lines(int row, int num_lines); -void clip_mch_request_selection(VimClipboard *cbd); -void clip_mch_lose_selection(VimClipboard *cbd); -int clip_mch_own_selection(VimClipboard *cbd); -void clip_mch_set_selection(VimClipboard *cbd); -int clip_gtk_owner_exists(VimClipboard *cbd); +void clip_mch_request_selection(Clipboard_T *cbd); +void clip_mch_lose_selection(Clipboard_T *cbd); +int clip_mch_own_selection(Clipboard_T *cbd); +void clip_mch_set_selection(Clipboard_T *cbd); +int clip_gtk_owner_exists(Clipboard_T *cbd); void gui_mch_menu_grey(vimmenu_T *menu, int grey); void gui_mch_menu_hidden(vimmenu_T *menu, int hidden); void gui_mch_draw_menubar(void); diff --git a/src/proto/gui_mac.pro b/src/proto/gui_mac.pro index 011ef2888..a36ad903c 100644 --- a/src/proto/gui_mac.pro +++ b/src/proto/gui_mac.pro @@ -111,10 +111,10 @@ void mch_post_buffer_write (buf_T *buf); void mch_errmsg(char *str); void mch_display_error(void); -void clip_mch_lose_selection(VimClipboard *cbd); -void clip_mch_request_selection(VimClipboard *cbd); -void clip_mch_set_selection(VimClipboard *cbd); -int clip_mch_own_selection(VimClipboard *cbd); +void clip_mch_lose_selection(Clipboard_T *cbd); +void clip_mch_request_selection(Clipboard_T *cbd); +void clip_mch_set_selection(Clipboard_T *cbd); +int clip_mch_own_selection(Clipboard_T *cbd); pascal OSErr FindProcessBySignature( const OSType targetType, const OSType targetCreator, ProcessSerialNumberPtr psnPtr ); diff --git a/src/proto/gui_x11.pro b/src/proto/gui_x11.pro index 955f374a6..5dde37d46 100644 --- a/src/proto/gui_x11.pro +++ b/src/proto/gui_x11.pro @@ -46,10 +46,10 @@ void gui_mch_clear_block(int row1, int col1, int row2, int col2); void gui_mch_clear_all(void); void gui_mch_delete_lines(int row, int num_lines); void gui_mch_insert_lines(int row, int num_lines); -void clip_mch_lose_selection(VimClipboard *cbd); -int clip_mch_own_selection(VimClipboard *cbd); -void clip_mch_request_selection(VimClipboard *cbd); -void clip_mch_set_selection(VimClipboard *cbd); +void clip_mch_lose_selection(Clipboard_T *cbd); +int clip_mch_own_selection(Clipboard_T *cbd); +void clip_mch_request_selection(Clipboard_T *cbd); +void clip_mch_set_selection(Clipboard_T *cbd); void gui_mch_menu_grey(vimmenu_T *menu, int grey); void gui_mch_menu_hidden(vimmenu_T *menu, int hidden); void gui_mch_draw_menubar(void); diff --git a/src/proto/ops.pro b/src/proto/ops.pro index 01df56f2f..0ff27a2c8 100644 --- a/src/proto/ops.pro +++ b/src/proto/ops.pro @@ -53,10 +53,10 @@ int read_viminfo_register(vir_T *virp, int force); void handle_viminfo_register(garray_T *values, int force); void write_viminfo_registers(FILE *fp); void x11_export_final_selection(void); -void clip_free_selection(VimClipboard *cbd); -void clip_get_selection(VimClipboard *cbd); -void clip_yank_selection(int type, char_u *str, long len, VimClipboard *cbd); -int clip_convert_selection(char_u **str, long_u *len, VimClipboard *cbd); +void clip_free_selection(Clipboard_T *cbd); +void clip_get_selection(Clipboard_T *cbd); +void clip_yank_selection(int type, char_u *str, long len, Clipboard_T *cbd); +int clip_convert_selection(char_u **str, long_u *len, Clipboard_T *cbd); void dnd_yank_drag_data(char_u *str, long len); char_u get_reg_type(int regname, long *reglen); char_u *get_reg_contents(int regname, int flags); diff --git a/src/proto/os_qnx.pro b/src/proto/os_qnx.pro index 89a250f94..a3fab620f 100644 --- a/src/proto/os_qnx.pro +++ b/src/proto/os_qnx.pro @@ -1,8 +1,8 @@ /* os_qnx.c */ void qnx_init(void); void qnx_clip_init (void); -int clip_mch_own_selection(VimClipboard *cbd); -void clip_mch_lose_selection(VimClipboard *cbd); -void clip_mch_request_selection(VimClipboard *cbd); -void clip_mch_set_selection(VimClipboard *cbd); +int clip_mch_own_selection(Clipboard_T *cbd); +void clip_mch_lose_selection(Clipboard_T *cbd); +void clip_mch_request_selection(Clipboard_T *cbd); +void clip_mch_set_selection(Clipboard_T *cbd); /* vim: set ft=c : */ diff --git a/src/proto/os_unix.pro b/src/proto/os_unix.pro index 0e7c609f3..449b3e96f 100644 --- a/src/proto/os_unix.pro +++ b/src/proto/os_unix.pro @@ -79,10 +79,10 @@ void setup_term_clip(void); void start_xterm_trace(int button); void stop_xterm_trace(void); void clear_xterm_clip(void); -int clip_xterm_own_selection(VimClipboard *cbd); -void clip_xterm_lose_selection(VimClipboard *cbd); -void clip_xterm_request_selection(VimClipboard *cbd); -void clip_xterm_set_selection(VimClipboard *cbd); +int clip_xterm_own_selection(Clipboard_T *cbd); +void clip_xterm_lose_selection(Clipboard_T *cbd); +void clip_xterm_request_selection(Clipboard_T *cbd); +void clip_xterm_set_selection(Clipboard_T *cbd); int xsmp_handle_requests(void); void xsmp_init(void); void xsmp_close(void); diff --git a/src/proto/ui.pro b/src/proto/ui.pro index e920029af..7b28a32a2 100644 --- a/src/proto/ui.pro +++ b/src/proto/ui.pro @@ -15,9 +15,9 @@ int ui_get_winpos(int *x, int *y, varnumber_T timeout); void ui_breakcheck(void); void ui_breakcheck_force(int force); void clip_init(int can_use); -void clip_update_selection(VimClipboard *clip); -void clip_own_selection(VimClipboard *cbd); -void clip_lose_selection(VimClipboard *cbd); +void clip_update_selection(Clipboard_T *clip); +void clip_own_selection(Clipboard_T *cbd); +void clip_lose_selection(Clipboard_T *cbd); void start_global_changes(void); int is_clipboard_needs_update(void); void end_global_changes(void); @@ -28,15 +28,15 @@ void clip_modeless(int button, int is_click, int is_drag); void clip_start_selection(int col, int row, int repeated_click); void clip_process_selection(int button, int col, int row, int_u repeated_click); void clip_may_redraw_selection(int row, int col, int len); -void clip_clear_selection(VimClipboard *cbd); +void clip_clear_selection(Clipboard_T *cbd); void clip_may_clear_selection(int row1, int row2); void clip_scroll_selection(int rows); void clip_copy_modeless_selection(int both); -int clip_gen_own_selection(VimClipboard *cbd); -void clip_gen_lose_selection(VimClipboard *cbd); -void clip_gen_set_selection(VimClipboard *cbd); -void clip_gen_request_selection(VimClipboard *cbd); -int clip_gen_owner_exists(VimClipboard *cbd); +int clip_gen_own_selection(Clipboard_T *cbd); +void clip_gen_lose_selection(Clipboard_T *cbd); +void clip_gen_set_selection(Clipboard_T *cbd); +void clip_gen_request_selection(Clipboard_T *cbd); +int clip_gen_owner_exists(Clipboard_T *cbd); int vim_is_input_buf_full(void); int vim_is_input_buf_empty(void); int vim_free_in_input_buf(void); @@ -57,12 +57,12 @@ int check_row(int row); void open_app_context(void); void x11_setup_atoms(Display *dpy); void x11_setup_selection(Widget w); -void clip_x11_request_selection(Widget myShell, Display *dpy, VimClipboard *cbd); -void clip_x11_lose_selection(Widget myShell, VimClipboard *cbd); -int clip_x11_own_selection(Widget myShell, VimClipboard *cbd); -void clip_x11_set_selection(VimClipboard *cbd); -int clip_x11_owner_exists(VimClipboard *cbd); -void yank_cut_buffer0(Display *dpy, VimClipboard *cbd); +void clip_x11_request_selection(Widget myShell, Display *dpy, Clipboard_T *cbd); +void clip_x11_lose_selection(Widget myShell, Clipboard_T *cbd); +int clip_x11_own_selection(Widget myShell, Clipboard_T *cbd); +void clip_x11_set_selection(Clipboard_T *cbd); +int clip_x11_owner_exists(Clipboard_T *cbd); +void yank_cut_buffer0(Display *dpy, Clipboard_T *cbd); int jump_to_mouse(int flags, int *inclusive, int which_button); int mouse_comp_pos(win_T *win, int *rowp, int *colp, linenr_T *lnump); win_T *mouse_find_win(int *rowp, int *colp, mouse_find_T popup); diff --git a/src/proto/winclip.pro b/src/proto/winclip.pro index 990c1cfb0..c7cba71a2 100644 --- a/src/proto/winclip.pro +++ b/src/proto/winclip.pro @@ -4,10 +4,10 @@ int utf16_to_utf8(short_u *instr, int inlen, char_u *outstr); void MultiByteToWideChar_alloc(UINT cp, DWORD flags, LPCSTR in, int inlen, LPWSTR *out, int *outlen); void WideCharToMultiByte_alloc(UINT cp, DWORD flags, LPCWSTR in, int inlen, LPSTR *out, int *outlen, LPCSTR def, LPBOOL useddef); void win_clip_init(void); -int clip_mch_own_selection(VimClipboard *cbd); -void clip_mch_lose_selection(VimClipboard *cbd); -void clip_mch_request_selection(VimClipboard *cbd); -void clip_mch_set_selection(VimClipboard *cbd); +int clip_mch_own_selection(Clipboard_T *cbd); +void clip_mch_lose_selection(Clipboard_T *cbd); +void clip_mch_request_selection(Clipboard_T *cbd); +void clip_mch_set_selection(Clipboard_T *cbd); short_u *enc_to_utf16(char_u *str, int *lenp); char_u *utf16_to_enc(short_u *str, int *lenp); void acp_to_enc(char_u *str, int str_size, char_u **out, int *outlen); @@ -724,7 +724,7 @@ ui_breakcheck_force(int force) void clip_init(int can_use) { - VimClipboard *cb; + Clipboard_T *cb; cb = &clip_star; for (;;) @@ -751,7 +751,7 @@ clip_init(int can_use) * this is called whenever VIsual mode is ended. */ void -clip_update_selection(VimClipboard *clip) +clip_update_selection(Clipboard_T *clip) { pos_T start, end; @@ -786,7 +786,7 @@ clip_update_selection(VimClipboard *clip) } void -clip_own_selection(VimClipboard *cbd) +clip_own_selection(Clipboard_T *cbd) { /* * Also want to check somehow that we are reading from the keyboard rather @@ -822,7 +822,7 @@ clip_own_selection(VimClipboard *cbd) } void -clip_lose_selection(VimClipboard *cbd) +clip_lose_selection(Clipboard_T *cbd) { #ifdef FEAT_X11 int was_owned = cbd->owned; @@ -860,7 +860,7 @@ clip_lose_selection(VimClipboard *cbd) } static void -clip_copy_selection(VimClipboard *clip) +clip_copy_selection(Clipboard_T *clip) { if (VIsual_active && (State & NORMAL) && clip->available) { @@ -990,10 +990,9 @@ clip_isautosel_plus(void) static void clip_invert_area(int, int, int, int, int how); static void clip_invert_rectangle(int row, int col, int height, int width, int invert); -static void clip_get_word_boundaries(VimClipboard *, int, int); +static void clip_get_word_boundaries(Clipboard_T *, int, int); static int clip_get_line_end(int); -static void clip_update_modeless_selection(VimClipboard *, int, int, - int, int); +static void clip_update_modeless_selection(Clipboard_T *, int, int, int, int); /* flags for clip_invert_area() */ #define CLIP_CLEAR 1 @@ -1058,7 +1057,7 @@ clip_compare_pos( void clip_start_selection(int col, int row, int repeated_click) { - VimClipboard *cb = &clip_star; + Clipboard_T *cb = &clip_star; if (cb->state == SELECT_DONE) clip_clear_selection(cb); @@ -1130,9 +1129,9 @@ clip_process_selection( int row, int_u repeated_click) { - VimClipboard *cb = &clip_star; - int diff; - int slen = 1; /* cursor shape width */ + Clipboard_T *cb = &clip_star; + int diff; + int slen = 1; // cursor shape width if (button == MOUSE_RELEASE) { @@ -1326,7 +1325,7 @@ clip_may_redraw_selection(int row, int col, int len) * Called from outside to clear selected region from the display */ void -clip_clear_selection(VimClipboard *cbd) +clip_clear_selection(Clipboard_T *cbd) { if (cbd->state == SELECT_CLEARED) @@ -1651,7 +1650,7 @@ clip_copy_modeless_selection(int both UNUSED) #define CHAR_CLASS(c) (c <= ' ' ? ' ' : vim_iswordc(c)) static void -clip_get_word_boundaries(VimClipboard *cb, int row, int col) +clip_get_word_boundaries(Clipboard_T *cb, int row, int col) { int start_class; int temp_col; @@ -1712,7 +1711,7 @@ clip_get_line_end(int row) */ static void clip_update_modeless_selection( - VimClipboard *cb, + Clipboard_T *cb, int row1, int col1, int row2, @@ -1738,7 +1737,7 @@ clip_update_modeless_selection( } int -clip_gen_own_selection(VimClipboard *cbd) +clip_gen_own_selection(Clipboard_T *cbd) { #ifdef FEAT_XCLIPBOARD # ifdef FEAT_GUI @@ -1753,7 +1752,7 @@ clip_gen_own_selection(VimClipboard *cbd) } void -clip_gen_lose_selection(VimClipboard *cbd) +clip_gen_lose_selection(Clipboard_T *cbd) { #ifdef FEAT_XCLIPBOARD # ifdef FEAT_GUI @@ -1768,7 +1767,7 @@ clip_gen_lose_selection(VimClipboard *cbd) } void -clip_gen_set_selection(VimClipboard *cbd) +clip_gen_set_selection(Clipboard_T *cbd) { if (!clip_did_set_selection) { @@ -1794,7 +1793,7 @@ clip_gen_set_selection(VimClipboard *cbd) } void -clip_gen_request_selection(VimClipboard *cbd) +clip_gen_request_selection(Clipboard_T *cbd) { #ifdef FEAT_XCLIPBOARD # ifdef FEAT_GUI @@ -1810,7 +1809,7 @@ clip_gen_request_selection(VimClipboard *cbd) #if (defined(FEAT_X11) && defined(USE_SYSTEM)) || defined(PROTO) int -clip_gen_owner_exists(VimClipboard *cbd UNUSED) +clip_gen_owner_exists(Clipboard_T *cbd UNUSED) { #ifdef FEAT_XCLIPBOARD # ifdef FEAT_GUI_GTK @@ -2372,7 +2371,7 @@ clip_x11_request_selection_cb( long_u len; char_u *p; char **text_list = NULL; - VimClipboard *cbd; + Clipboard_T *cbd; char_u *tmpbuf = NULL; if (*sel_atom == clip_plus.sel_atom) @@ -2463,7 +2462,7 @@ clip_x11_request_selection_cb( clip_x11_request_selection( Widget myShell, Display *dpy, - VimClipboard *cbd) + Clipboard_T *cbd) { XEvent event; Atom type; @@ -2566,7 +2565,7 @@ clip_x11_convert_selection_cb( static long_u save_length = 0; char_u *string; int motion_type; - VimClipboard *cbd; + Clipboard_T *cbd; int i; if (*sel_atom == clip_plus.sel_atom) @@ -2692,7 +2691,7 @@ clip_x11_lose_ownership_cb(Widget w UNUSED, Atom *sel_atom) } void -clip_x11_lose_selection(Widget myShell, VimClipboard *cbd) +clip_x11_lose_selection(Widget myShell, Clipboard_T *cbd) { XtDisownSelection(myShell, cbd->sel_atom, XtLastTimestampProcessed(XtDisplay(myShell))); @@ -2705,7 +2704,7 @@ clip_x11_notify_cb(Widget w UNUSED, Atom *sel_atom UNUSED, Atom *target UNUSED) } int -clip_x11_own_selection(Widget myShell, VimClipboard *cbd) +clip_x11_own_selection(Widget myShell, Clipboard_T *cbd) { /* When using the GUI we have proper timestamps, use the one of the last * event. When in the console we don't get events (the terminal gets @@ -2737,14 +2736,14 @@ clip_x11_own_selection(Widget myShell, VimClipboard *cbd) * will fill in the selection only when requested by another app. */ void -clip_x11_set_selection(VimClipboard *cbd UNUSED) +clip_x11_set_selection(Clipboard_T *cbd UNUSED) { } #if (defined(FEAT_X11) && defined(FEAT_XCLIPBOARD) && defined(USE_SYSTEM)) \ || defined(PROTO) int -clip_x11_owner_exists(VimClipboard *cbd) +clip_x11_owner_exists(Clipboard_T *cbd) { return XGetSelectionOwner(X_DISPLAY, cbd->sel_atom) != None; } @@ -2757,7 +2756,7 @@ clip_x11_owner_exists(VimClipboard *cbd) * Get the contents of the X CUT_BUFFER0 and put it in "cbd". */ void -yank_cut_buffer0(Display *dpy, VimClipboard *cbd) +yank_cut_buffer0(Display *dpy, Clipboard_T *cbd) { int nbytes = 0; char_u *buffer = (char_u *)XFetchBuffer(dpy, &nbytes, 0); diff --git a/src/version.c b/src/version.c index 510587b11..d252a1475 100644 --- a/src/version.c +++ b/src/version.c @@ -778,6 +778,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1531, +/**/ 1530, /**/ 1529, diff --git a/src/winclip.c b/src/winclip.c index 9b7f3f6ae..4dcbc4386 100644 --- a/src/winclip.c +++ b/src/winclip.c @@ -191,7 +191,7 @@ win_clip_init(void) /* * Vim's own clipboard format recognises whether the text is char, line, * or rectangular block. Only useful for copying between two Vims. - * "VimClipboard" was used for previous versions, using the first + * "Clipboard_T" was used for previous versions, using the first * character to specify MCHAR, MLINE or MBLOCK. */ clip_star.format = RegisterClipboardFormat("VimClipboard2"); @@ -212,7 +212,7 @@ typedef struct * Make vim the owner of the current selection. Return OK upon success. */ int -clip_mch_own_selection(VimClipboard *cbd UNUSED) +clip_mch_own_selection(Clipboard_T *cbd UNUSED) { /* * Never actually own the clipboard. If another application sets the @@ -225,7 +225,7 @@ clip_mch_own_selection(VimClipboard *cbd UNUSED) * Make vim NOT the owner of the current selection. */ void -clip_mch_lose_selection(VimClipboard *cbd UNUSED) +clip_mch_lose_selection(Clipboard_T *cbd UNUSED) { /* Nothing needs to be done here */ } @@ -293,7 +293,7 @@ vim_open_clipboard(void) * <VN> */ void -clip_mch_request_selection(VimClipboard *cbd) +clip_mch_request_selection(Clipboard_T *cbd) { VimClipType_t metadata = { -1, -1, -1, -1 }; HGLOBAL hMem = NULL; @@ -453,7 +453,7 @@ clip_mch_request_selection(VimClipboard *cbd) * Send the current selection to the clipboard. */ void -clip_mch_set_selection(VimClipboard *cbd) +clip_mch_set_selection(Clipboard_T *cbd) { char_u *str = NULL; VimClipType_t metadata; |