0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 7.4.2192

Problem:    Generating prototypes with Cygwin doesn't work well.
Solution:   Change #ifdefs. (Ken Takata)
This commit is contained in:
Bram Moolenaar
2016-08-10 20:53:05 +02:00
parent a357e44ccd
commit a6b7a08ae0
9 changed files with 13 additions and 9 deletions

View File

@@ -16,7 +16,7 @@
# include <X11/StringDefs.h> # include <X11/StringDefs.h>
#endif #endif
#ifdef FEAT_BEVAL #if defined(FEAT_BEVAL) || defined(PROTO)
# include "gui_beval.h" # include "gui_beval.h"
#endif #endif

View File

@@ -247,6 +247,7 @@ gui_mch_set_rendering_options(char_u *s)
# define CONST # define CONST
# define FAR # define FAR
# define NEAR # define NEAR
# undef _cdecl
# define _cdecl # define _cdecl
typedef int BOOL; typedef int BOOL;
typedef int BYTE; typedef int BYTE;
@@ -288,6 +289,7 @@ typedef void VOID;
typedef int LPNMHDR; typedef int LPNMHDR;
typedef int LONG; typedef int LONG;
typedef int WNDPROC; typedef int WNDPROC;
typedef int UINT_PTR;
#endif #endif
#ifndef GET_X_LPARAM #ifndef GET_X_LPARAM
@@ -3451,7 +3453,7 @@ gui_mch_settitle(
set_window_title(s_hwnd, (title == NULL ? "VIM" : (char *)title)); set_window_title(s_hwnd, (title == NULL ? "VIM" : (char *)title));
} }
#ifdef FEAT_MOUSESHAPE #if defined(FEAT_MOUSESHAPE) || defined(PROTO)
/* Table for shape IDCs. Keep in sync with the mshape_names[] table in /* Table for shape IDCs. Keep in sync with the mshape_names[] table in
* misc2.c! */ * misc2.c! */
static LPCSTR mshape_idcs[] = static LPCSTR mshape_idcs[] =
@@ -3514,7 +3516,7 @@ mch_set_mouse_shape(int shape)
} }
#endif #endif
#ifdef FEAT_BROWSE #if defined(FEAT_BROWSE) || defined(PROTO)
/* /*
* The file browser exists in two versions: with "W" uses wide characters, * The file browser exists in two versions: with "W" uses wide characters,
* without "W" the current codepage. When FEAT_MBYTE is defined and on * without "W" the current codepage. When FEAT_MBYTE is defined and on

View File

@@ -6283,7 +6283,7 @@ write_viminfo_registers(FILE *fp)
* 'permanent' of the two), otherwise the PRIMARY one. * 'permanent' of the two), otherwise the PRIMARY one.
* For now, use a hard-coded sanity limit of 1Mb of data. * For now, use a hard-coded sanity limit of 1Mb of data.
*/ */
#if defined(FEAT_X11) && defined(FEAT_CLIPBOARD) #if (defined(FEAT_X11) && defined(FEAT_CLIPBOARD)) || defined(PROTO)
void void
x11_export_final_selection(void) x11_export_final_selection(void)
{ {

View File

@@ -33,7 +33,7 @@ void free_all_autocmds(void);
int check_ei(void); int check_ei(void);
char_u *au_event_disable(char *what); char_u *au_event_disable(char *what);
void au_event_restore(char_u *old_ei); void au_event_restore(char_u *old_ei);
void do_autocmd(char_u *arg, int forceit); void do_autocmd(char_u *arg_in, int forceit);
int do_doautocmd(char_u *arg, int do_msg, int *did_something); int do_doautocmd(char_u *arg, int do_msg, int *did_something);
void ex_doautoall(exarg_T *eap); void ex_doautoall(exarg_T *eap);
int check_nomodeline(char_u **argp); int check_nomodeline(char_u **argp);

View File

@@ -4,7 +4,7 @@ int verb_msg(char_u *s);
int msg_attr(char_u *s, int attr); int msg_attr(char_u *s, int attr);
int msg_attr_keep(char_u *s, int attr, int keep); int msg_attr_keep(char_u *s, int attr, int keep);
char_u *msg_strtrunc(char_u *s, int force); char_u *msg_strtrunc(char_u *s, int force);
void trunc_string(char_u *s, char_u *buf, int room, int buflen); void trunc_string(char_u *s, char_u *buf, int room_in, int buflen);
void reset_last_sourcing(void); void reset_last_sourcing(void);
void msg_source(int attr); void msg_source(int attr);
int emsg_not_now(void); int emsg_not_now(void);

View File

@@ -16,7 +16,7 @@ void push_showcmd(void);
void pop_showcmd(void); void pop_showcmd(void);
void do_check_scrollbind(int check); void do_check_scrollbind(int check);
void check_scrollbind(linenr_T topline_diff, long leftcol_diff); void check_scrollbind(linenr_T topline_diff, long leftcol_diff);
int find_decl(char_u *ptr, int len, int locally, int thisblock, int searchflags); int find_decl(char_u *ptr, int len, int locally, int thisblock, int flags_arg);
void scroll_redraw(int up, long count); void scroll_redraw(int up, long count);
void handle_tabmenu(void); void handle_tabmenu(void);
void do_nv_ident(int c1, int c2); void do_nv_ident(int c1, int c2);

View File

@@ -47,7 +47,7 @@ void op_addsub(oparg_T *oap, linenr_T Prenum1, int g_cmd);
void prepare_viminfo_registers(void); void prepare_viminfo_registers(void);
void finish_viminfo_registers(void); void finish_viminfo_registers(void);
int read_viminfo_register(vir_T *virp, int force); int read_viminfo_register(vir_T *virp, int force);
void handle_viminfo_register(garray_T *values, int writing); void handle_viminfo_register(garray_T *values, int force);
void write_viminfo_registers(FILE *fp); void write_viminfo_registers(FILE *fp);
void x11_export_final_selection(void); void x11_export_final_selection(void);
void clip_free_selection(VimClipboard *cbd); void clip_free_selection(VimClipboard *cbd);

View File

@@ -763,6 +763,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 */
/**/
2192,
/**/ /**/
2191, 2191,
/**/ /**/

View File

@@ -2109,7 +2109,7 @@ typedef enum
* been seen at that stage. But it must be before globals.h, where error_ga * been seen at that stage. But it must be before globals.h, where error_ga
* is declared. */ * is declared. */
#if !defined(FEAT_GUI_W32) && !defined(FEAT_GUI_X11) \ #if !defined(FEAT_GUI_W32) && !defined(FEAT_GUI_X11) \
&& !defined(FEAT_GUI_GTK) && !defined(FEAT_GUI_MAC) && !defined(FEAT_GUI_GTK) && !defined(FEAT_GUI_MAC) && !defined(PROTO)
# define mch_errmsg(str) fprintf(stderr, "%s", (str)) # define mch_errmsg(str) fprintf(stderr, "%s", (str))
# define display_errors() fflush(stderr) # define display_errors() fflush(stderr)
# define mch_msg(str) printf("%s", (str)) # define mch_msg(str) printf("%s", (str))