# HG changeset patch # User Bram Moolenaar # Date 1545166807 -3600 # Node ID 16b2f2db6f28da72e0adf2bd76ac80dc01e1cd95 # Parent 8b334e4cb97f993a7515aee6e300a7be1b42353e patch 8.1.0607: proto files are not in sync with the source code commit https://github.com/vim/vim/commit/c447d8d33f695a83fefe4e47334b41c32874c3c5 Author: Bram Moolenaar Date: Tue Dec 18 21:56:28 2018 +0100 patch 8.1.0607: proto files are not in sync with the source code Problem: Proto files are not in sync with the source code. Solution: Update the proto files. diff --git a/src/os_mswin.c b/src/os_mswin.c --- a/src/os_mswin.c +++ b/src/os_mswin.c @@ -114,6 +114,7 @@ typedef int SMALL_RECT; typedef int TEXTMETRIC; typedef int UINT; typedef int WCHAR; +typedef int WNDENUMPROC; typedef int WORD; typedef int WPARAM; typedef void VOID; diff --git a/src/proto/buffer.pro b/src/proto/buffer.pro --- a/src/proto/buffer.pro +++ b/src/proto/buffer.pro @@ -16,7 +16,7 @@ void do_autochdir(void); void no_write_message(void); void no_write_message_nobang(buf_T *buf); int curbuf_reusable(void); -buf_T *buflist_new(char_u *ffname, char_u *sfname, linenr_T lnum, int flags); +buf_T *buflist_new(char_u *ffname_arg, char_u *sfname_arg, linenr_T lnum, int flags); void free_buf_options(buf_T *buf, int free_p_ff); int buflist_getfile(int n, linenr_T lnum, int options, int forceit); void buflist_getfpos(void); @@ -31,7 +31,7 @@ pos_T *buflist_findfpos(buf_T *buf); linenr_T buflist_findlnum(buf_T *buf); void buflist_list(exarg_T *eap); int buflist_name_nr(int fnum, char_u **fname, linenr_T *lnum); -int setfname(buf_T *buf, char_u *ffname, char_u *sfname, int message); +int setfname(buf_T *buf, char_u *ffname_arg, char_u *sfname_arg, int message); void buf_set_name(int fnum, char_u *name); void buf_name_changed(buf_T *buf); buf_T *setaltfname(char_u *ffname, char_u *sfname, linenr_T lnum); diff --git a/src/proto/ex_cmds.pro b/src/proto/ex_cmds.pro --- a/src/proto/ex_cmds.pro +++ b/src/proto/ex_cmds.pro @@ -30,7 +30,7 @@ int check_overwrite(exarg_T *eap, buf_T void ex_wnext(exarg_T *eap); void do_wqall(exarg_T *eap); int not_writing(void); -int getfile(int fnum, char_u *ffname, char_u *sfname, int setpm, linenr_T lnum, int forceit); +int getfile(int fnum, char_u *ffname_arg, char_u *sfname_arg, int setpm, linenr_T lnum, int forceit); int do_ecmd(int fnum, char_u *ffname, char_u *sfname, exarg_T *eap, linenr_T newlnum, int flags, win_T *oldwin); void ex_append(exarg_T *eap); void ex_change(exarg_T *eap); diff --git a/src/proto/ex_getln.pro b/src/proto/ex_getln.pro --- a/src/proto/ex_getln.pro +++ b/src/proto/ex_getln.pro @@ -1,4 +1,5 @@ /* ex_getln.c */ +void cmdline_init(void); char_u *getcmdline(int firstc, long count, int indent); char_u *getcmdline_prompt(int firstc, char_u *prompt, int attr, int xp_context, char_u *xp_arg); int text_locked(void); @@ -52,7 +53,6 @@ void prepare_viminfo_history(int asklen, 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 cmdline_init(void); void write_viminfo_history(FILE *fp, int merge); void cmd_pchar(int c, int offset); int cmd_gchar(int offset); diff --git a/src/proto/misc2.pro b/src/proto/misc2.pro --- a/src/proto/misc2.pro +++ b/src/proto/misc2.pro @@ -20,8 +20,8 @@ void check_cursor(void); void adjust_cursor_col(void); int leftcol_changed(void); void vim_mem_profile_dump(void); +int alloc_does_fail(long_u size); char_u *alloc(unsigned size); -int alloc_does_fail(long_u size); char_u *alloc_id(unsigned size, alloc_id_T id); char_u *alloc_clear(unsigned size); char_u *alloc_check(unsigned size); diff --git a/src/proto/userfunc.pro b/src/proto/userfunc.pro --- a/src/proto/userfunc.pro +++ b/src/proto/userfunc.pro @@ -4,6 +4,8 @@ int get_lambda_tv(char_u **arg, typval_T char_u *deref_func_name(char_u *name, int *lenp, partial_T **partialp, int no_autoload); int get_func_tv(char_u *name, int len, typval_T *rettv, char_u **arg, linenr_T firstline, linenr_T lastline, int *doesrange, int evaluate, partial_T *partial, dict_T *selfdict); ufunc_T *find_func(char_u *name); +void save_funccal(funccal_entry_T *entry); +void restore_funccal(void); void free_all_functions(void); int func_call(char_u *name, typval_T *args, partial_T *partial, dict_T *selfdict, typval_T *rettv); int call_func(char_u *funcname, int len, typval_T *rettv, int argcount_in, typval_T *argvars_in, int (*argv_func)(int, typval_T *, int), linenr_T firstline, linenr_T lastline, int *doesrange, int evaluate, partial_T *partial, dict_T *selfdict_in); @@ -39,8 +41,6 @@ linenr_T *func_breakpoint(void *cookie); int *func_dbg_tick(void *cookie); int func_level(void *cookie); int current_func_returned(void); -void save_funccal(funccal_entry_T *entry); -void restore_funccal(void); int free_unref_funccal(int copyID, int testing); hashtab_T *get_funccal_local_ht(void); dictitem_T *get_funccal_local_var(void); diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -800,6 +800,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 607, +/**/ 606, /**/ 605,