mirror of
https://github.com/vim/vim
synced 2025-07-16 09:12:00 +00:00
patch 8.1.1182: some function prototypes are outdated
Problem: Some function prototypes are outdated. Solution: Update function prototypes. (Ken Takata, closes #4267)
This commit is contained in:
@ -98,8 +98,10 @@ typedef int LPARAM;
|
||||
typedef int LPBOOL;
|
||||
typedef int LPCSTR;
|
||||
typedef int LPCWSTR;
|
||||
typedef int LPDWORD;
|
||||
typedef int LPSTR;
|
||||
typedef int LPTSTR;
|
||||
typedef int LPVOID;
|
||||
typedef int LPWSTR;
|
||||
typedef int LRESULT;
|
||||
typedef int MOUSE_EVENT_RECORD;
|
||||
@ -1733,7 +1735,7 @@ typedef BOOL (WINAPI *pfnGetVolumeInformationByHandleW)(
|
||||
DWORD nFileSystemNameSize);
|
||||
static pfnGetVolumeInformationByHandleW pGetVolumeInformationByHandleW = NULL;
|
||||
|
||||
char_u *
|
||||
static char_u *
|
||||
resolve_reparse_point(char_u *fname)
|
||||
{
|
||||
HANDLE h = INVALID_HANDLE_VALUE;
|
||||
|
@ -54,7 +54,5 @@ int read_viminfo_history(vir_T *virp, int writing);
|
||||
void handle_viminfo_history(garray_T *values, int writing);
|
||||
void finish_viminfo_history(vir_T *virp);
|
||||
void write_viminfo_history(FILE *fp, int merge);
|
||||
void cmd_pchar(int c, int offset);
|
||||
int cmd_gchar(int offset);
|
||||
char_u *script_get(exarg_T *eap, char_u *cmd);
|
||||
/* vim: set ft=c : */
|
||||
|
@ -60,7 +60,6 @@ void gui_mch_settitle(char_u *title, char_u *icon);
|
||||
void mch_set_mouse_shape(int shape);
|
||||
char_u *gui_mch_browse(int saving, char_u *title, char_u *dflt, char_u *ext, char_u *initdir, char_u *filter);
|
||||
char_u *gui_mch_browsedir(char_u *title, char_u *initdir);
|
||||
int get_cmd_args(char *prog, char *cmdline, char ***argvp, char **tofree);
|
||||
void gui_mch_set_parent(char *title);
|
||||
void gui_mch_prepare(int *argc, char **argv);
|
||||
int gui_mch_init(void);
|
||||
|
@ -56,7 +56,7 @@ void f_term_start(typval_T *argvars, typval_T *rettv);
|
||||
void f_term_wait(typval_T *argvars, typval_T *rettv);
|
||||
void term_send_eof(channel_T *ch);
|
||||
job_T *term_getjob(term_T *term);
|
||||
int terminal_enabled(void);
|
||||
void term_free_conpty(term_T *term);
|
||||
int use_conpty(void);
|
||||
int terminal_enabled(void);
|
||||
/* vim: set ft=c : */
|
||||
|
@ -38,7 +38,7 @@ void win_goto(win_T *wp);
|
||||
win_T *win_find_nr(int winnr);
|
||||
tabpage_T *win_find_tabpage(win_T *win);
|
||||
win_T *win_vert_neighbor(tabpage_T *tp, win_T *wp, int up, long count);
|
||||
win_T *win_horz_neighbor(tabpage_T *tp, win_T * wp, int left, long count);
|
||||
win_T *win_horz_neighbor(tabpage_T *tp, win_T *wp, int left, long count);
|
||||
void win_enter(win_T *wp, int undo_sync);
|
||||
win_T *buf_jump_open_win(buf_T *buf);
|
||||
win_T *buf_jump_open_tab(buf_T *buf);
|
||||
|
@ -5663,6 +5663,19 @@ term_getjob(term_T *term)
|
||||
/**************************************
|
||||
* 2. MS-Windows implementation.
|
||||
*/
|
||||
#ifdef PROTO
|
||||
typedef int COORD;
|
||||
typedef int DWORD;
|
||||
typedef int HANDLE;
|
||||
typedef int *DWORD_PTR;
|
||||
typedef int HPCON;
|
||||
typedef int HRESULT;
|
||||
typedef int LPPROC_THREAD_ATTRIBUTE_LIST;
|
||||
typedef int PSIZE_T;
|
||||
typedef int PVOID;
|
||||
typedef int SIZE_T;
|
||||
typedef int WINAPI;
|
||||
#endif
|
||||
|
||||
HRESULT (WINAPI *pCreatePseudoConsole)(COORD, HANDLE, HANDLE, DWORD, HPCON*);
|
||||
HRESULT (WINAPI *pResizePseudoConsole)(HPCON, COORD);
|
||||
|
@ -771,6 +771,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1182,
|
||||
/**/
|
||||
1181,
|
||||
/**/
|
||||
|
@ -4302,7 +4302,7 @@ win_goto_ver(
|
||||
* Returns the specified window if the neighbor is not found.
|
||||
*/
|
||||
win_T *
|
||||
win_horz_neighbor(tabpage_T *tp, win_T * wp, int left, long count)
|
||||
win_horz_neighbor(tabpage_T *tp, win_T *wp, int left, long count)
|
||||
{
|
||||
frame_T *fr;
|
||||
frame_T *nfr;
|
||||
|
Reference in New Issue
Block a user