]> granicus.if.org Git - vim/commitdiff
patch 8.1.1182: some function prototypes are outdated v8.1.1182
authorBram Moolenaar <Bram@vim.org>
Wed, 17 Apr 2019 16:24:35 +0000 (18:24 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 17 Apr 2019 16:24:35 +0000 (18:24 +0200)
Problem:    Some function prototypes are outdated.
Solution:   Update function prototypes. (Ken Takata, closes #4267)

src/os_mswin.c
src/proto/ex_getln.pro
src/proto/gui_w32.pro
src/proto/terminal.pro
src/proto/window.pro
src/terminal.c
src/version.c
src/window.c

index c638aa678f2bd842dda1aab8fb9d8bc50953c439..48be0de52cae08768900cf51e7b388c86581e25c 100644 (file)
@@ -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;
index 298c630ebd9fec46dfbaba17b4ac6ca577c74b22..8845b9c77d563812db002cc8a2408a435e0b2b77 100644 (file)
@@ -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 : */
index 9f2e5fbce6635591d1a9528192fbb7c4dc7fca24..6756dc879be5e4cd2b2a608da9a4aa49b1e3a467 100644 (file)
@@ -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);
index 0fa62b71090d7cd0899c4ac3b094c4cd3305efbd..996db6ddac6df57925d6e7153eb79559ed8b5c8c 100644 (file)
@@ -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 : */
index 5020b2f037dbf97a585199de25a15def3bff93c6..5da322e28901d4a68088934b55f7bd0bf300efa7 100644 (file)
@@ -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);
index c0777b2ed6c08cc0e42fc271605db587d8e93b30..7dd0387dd3c25f5a852e5aa789a45b989384ece7 100644 (file)
@@ -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);
index cef19e85e0dbcbb75f16698a0c208863c66a3696..f265f6440b9674579531d265519d09363ab69fdd 100644 (file)
@@ -771,6 +771,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1182,
 /**/
     1181,
 /**/
index 4dda512af2a6a715d7d56ce1d71f683c2b5c0edd..4ca56274bcea11cd5f45914d855d19b1b8b01b2b 100644 (file)
@@ -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;