Skip to content

Commit a6b7a08

Browse files
committed
patch 7.4.2192
Problem: Generating prototypes with Cygwin doesn't work well. Solution: Change #ifdefs. (Ken Takata)
1 parent a357e44 commit a6b7a08

9 files changed

Lines changed: 13 additions & 9 deletions

File tree

src/gui.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# include <X11/StringDefs.h>
1717
#endif
1818

19-
#ifdef FEAT_BEVAL
19+
#if defined(FEAT_BEVAL) || defined(PROTO)
2020
# include "gui_beval.h"
2121
#endif
2222

src/gui_w32.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ gui_mch_set_rendering_options(char_u *s)
247247
# define CONST
248248
# define FAR
249249
# define NEAR
250+
# undef _cdecl
250251
# define _cdecl
251252
typedef int BOOL;
252253
typedef int BYTE;
@@ -288,6 +289,7 @@ typedef void VOID;
288289
typedef int LPNMHDR;
289290
typedef int LONG;
290291
typedef int WNDPROC;
292+
typedef int UINT_PTR;
291293
#endif
292294

293295
#ifndef GET_X_LPARAM
@@ -3451,7 +3453,7 @@ gui_mch_settitle(
34513453
set_window_title(s_hwnd, (title == NULL ? "VIM" : (char *)title));
34523454
}
34533455

3454-
#ifdef FEAT_MOUSESHAPE
3456+
#if defined(FEAT_MOUSESHAPE) || defined(PROTO)
34553457
/* Table for shape IDCs. Keep in sync with the mshape_names[] table in
34563458
* misc2.c! */
34573459
static LPCSTR mshape_idcs[] =
@@ -3514,7 +3516,7 @@ mch_set_mouse_shape(int shape)
35143516
}
35153517
#endif
35163518

3517-
#ifdef FEAT_BROWSE
3519+
#if defined(FEAT_BROWSE) || defined(PROTO)
35183520
/*
35193521
* The file browser exists in two versions: with "W" uses wide characters,
35203522
* without "W" the current codepage. When FEAT_MBYTE is defined and on

src/ops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6283,7 +6283,7 @@ write_viminfo_registers(FILE *fp)
62836283
* 'permanent' of the two), otherwise the PRIMARY one.
62846284
* For now, use a hard-coded sanity limit of 1Mb of data.
62856285
*/
6286-
#if defined(FEAT_X11) && defined(FEAT_CLIPBOARD)
6286+
#if (defined(FEAT_X11) && defined(FEAT_CLIPBOARD)) || defined(PROTO)
62876287
void
62886288
x11_export_final_selection(void)
62896289
{

src/proto/fileio.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void free_all_autocmds(void);
3333
int check_ei(void);
3434
char_u *au_event_disable(char *what);
3535
void au_event_restore(char_u *old_ei);
36-
void do_autocmd(char_u *arg, int forceit);
36+
void do_autocmd(char_u *arg_in, int forceit);
3737
int do_doautocmd(char_u *arg, int do_msg, int *did_something);
3838
void ex_doautoall(exarg_T *eap);
3939
int check_nomodeline(char_u **argp);

src/proto/message.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ int verb_msg(char_u *s);
44
int msg_attr(char_u *s, int attr);
55
int msg_attr_keep(char_u *s, int attr, int keep);
66
char_u *msg_strtrunc(char_u *s, int force);
7-
void trunc_string(char_u *s, char_u *buf, int room, int buflen);
7+
void trunc_string(char_u *s, char_u *buf, int room_in, int buflen);
88
void reset_last_sourcing(void);
99
void msg_source(int attr);
1010
int emsg_not_now(void);

src/proto/normal.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ void push_showcmd(void);
1616
void pop_showcmd(void);
1717
void do_check_scrollbind(int check);
1818
void check_scrollbind(linenr_T topline_diff, long leftcol_diff);
19-
int find_decl(char_u *ptr, int len, int locally, int thisblock, int searchflags);
19+
int find_decl(char_u *ptr, int len, int locally, int thisblock, int flags_arg);
2020
void scroll_redraw(int up, long count);
2121
void handle_tabmenu(void);
2222
void do_nv_ident(int c1, int c2);

src/proto/ops.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void op_addsub(oparg_T *oap, linenr_T Prenum1, int g_cmd);
4747
void prepare_viminfo_registers(void);
4848
void finish_viminfo_registers(void);
4949
int read_viminfo_register(vir_T *virp, int force);
50-
void handle_viminfo_register(garray_T *values, int writing);
50+
void handle_viminfo_register(garray_T *values, int force);
5151
void write_viminfo_registers(FILE *fp);
5252
void x11_export_final_selection(void);
5353
void clip_free_selection(VimClipboard *cbd);

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,8 @@ static char *(features[]) =
763763

764764
static int included_patches[] =
765765
{ /* Add new patch number below this line */
766+
/**/
767+
2192,
766768
/**/
767769
2191,
768770
/**/

src/vim.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2109,7 +2109,7 @@ typedef enum
21092109
* been seen at that stage. But it must be before globals.h, where error_ga
21102110
* is declared. */
21112111
#if !defined(FEAT_GUI_W32) && !defined(FEAT_GUI_X11) \
2112-
&& !defined(FEAT_GUI_GTK) && !defined(FEAT_GUI_MAC)
2112+
&& !defined(FEAT_GUI_GTK) && !defined(FEAT_GUI_MAC) && !defined(PROTO)
21132113
# define mch_errmsg(str) fprintf(stderr, "%s", (str))
21142114
# define display_errors() fflush(stderr)
21152115
# define mch_msg(str) printf("%s", (str))

0 commit comments

Comments
 (0)