mirror of
https://github.com/vim/vim.git
synced 2025-07-04 23:07:33 -04:00
patch 7.4.1225
Problem: Still a few old style function declarations. Solution: Make them new style. (Hirohito Higashi)
This commit is contained in:
parent
bbb3339dbf
commit
d14e00ea67
@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int
|
||||||
main()
|
main()
|
||||||
{
|
{
|
||||||
while (1)
|
while (1)
|
||||||
@ -18,4 +19,5 @@ main()
|
|||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
usleep(250000); /* off time */
|
usleep(250000); /* off time */
|
||||||
}
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
12
src/eval.c
12
src/eval.c
@ -6001,7 +6001,7 @@ list_free(
|
|||||||
* It is not initialized, don't forget to set v_lock.
|
* It is not initialized, don't forget to set v_lock.
|
||||||
*/
|
*/
|
||||||
listitem_T *
|
listitem_T *
|
||||||
listitem_alloc()
|
listitem_alloc(void)
|
||||||
{
|
{
|
||||||
return (listitem_T *)alloc(sizeof(listitem_T));
|
return (listitem_T *)alloc(sizeof(listitem_T));
|
||||||
}
|
}
|
||||||
@ -10902,13 +10902,11 @@ f_filewritable(typval_T *argvars, typval_T *rettv)
|
|||||||
rettv->vval.v_number = filewritable(get_tv_string(&argvars[0]));
|
rettv->vval.v_number = filewritable(get_tv_string(&argvars[0]));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void findfilendir(typval_T *argvars, typval_T *rettv, int find_what);
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
findfilendir(argvars, rettv, find_what)
|
findfilendir(
|
||||||
typval_T *argvars UNUSED;
|
typval_T *argvars UNUSED,
|
||||||
typval_T *rettv;
|
typval_T *rettv,
|
||||||
int find_what UNUSED;
|
int find_what UNUSED)
|
||||||
{
|
{
|
||||||
#ifdef FEAT_SEARCHPATH
|
#ifdef FEAT_SEARCHPATH
|
||||||
char_u *fname;
|
char_u *fname;
|
||||||
|
@ -3627,10 +3627,7 @@ fgets_cr(char *s, int n, FILE *stream)
|
|||||||
* At least CodeWarrior 9 needed this code.
|
* At least CodeWarrior 9 needed this code.
|
||||||
*/
|
*/
|
||||||
char *
|
char *
|
||||||
fgets_cr(s, n, stream)
|
fgets_cr(char *s, int n, FILE *stream)
|
||||||
char *s;
|
|
||||||
int n;
|
|
||||||
FILE *stream;
|
|
||||||
{
|
{
|
||||||
int c = 0;
|
int c = 0;
|
||||||
int char_read = 0;
|
int char_read = 0;
|
||||||
|
@ -5646,7 +5646,7 @@ set_cmdline_pos(
|
|||||||
* Returns NUL when something is wrong.
|
* Returns NUL when something is wrong.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
get_cmdline_type()
|
get_cmdline_type(void)
|
||||||
{
|
{
|
||||||
struct cmdline_info *p = get_ccline_ptr();
|
struct cmdline_info *p = get_ccline_ptr();
|
||||||
|
|
||||||
|
10
src/fileio.c
10
src/fileio.c
@ -9987,9 +9987,9 @@ theend:
|
|||||||
* "curbuf" and "curwin" to match "buf".
|
* "curbuf" and "curwin" to match "buf".
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
aucmd_prepbuf(aco, buf)
|
aucmd_prepbuf(
|
||||||
aco_save_T *aco; /* structure to save values in */
|
aco_save_T *aco, /* structure to save values in */
|
||||||
buf_T *buf; /* new curbuf */
|
buf_T *buf) /* new curbuf */
|
||||||
{
|
{
|
||||||
aco->save_curbuf = curbuf;
|
aco->save_curbuf = curbuf;
|
||||||
--curbuf->b_nwindows;
|
--curbuf->b_nwindows;
|
||||||
@ -10003,8 +10003,8 @@ aucmd_prepbuf(aco, buf)
|
|||||||
* This is the non-autocommand version.
|
* This is the non-autocommand version.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
aucmd_restbuf(aco)
|
aucmd_restbuf(
|
||||||
aco_save_T *aco; /* structure holding saved values */
|
aco_save_T *aco) /* structure holding saved values */
|
||||||
{
|
{
|
||||||
--curbuf->b_nwindows;
|
--curbuf->b_nwindows;
|
||||||
curbuf = aco->save_curbuf;
|
curbuf = aco->save_curbuf;
|
||||||
|
@ -2292,7 +2292,7 @@ im_set_active(int active)
|
|||||||
* Get IM status. When IM is on, return not 0. Else return 0.
|
* Get IM status. When IM is on, return not 0. Else return 0.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
im_get_status()
|
im_get_status(void)
|
||||||
{
|
{
|
||||||
return global_ime_get_status();
|
return global_ime_get_status();
|
||||||
}
|
}
|
||||||
|
@ -2234,8 +2234,7 @@ fontset_height2(XFontSet fs)
|
|||||||
|
|
||||||
/* NOT USED YET
|
/* NOT USED YET
|
||||||
static int
|
static int
|
||||||
fontset_descent(fs)
|
fontset_descent(XFontSet fs)
|
||||||
XFontSet fs;
|
|
||||||
{
|
{
|
||||||
XFontSetExtents *extents;
|
XFontSetExtents *extents;
|
||||||
|
|
||||||
|
@ -631,8 +631,7 @@ perl_runtime_link_init(char *libname, int verbose)
|
|||||||
* There were no DLL loaded, return FALSE.
|
* There were no DLL loaded, return FALSE.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
perl_enabled(verbose)
|
perl_enabled(int verbose)
|
||||||
int verbose;
|
|
||||||
{
|
{
|
||||||
return perl_runtime_link_init((char *)p_perldll, verbose) == OK;
|
return perl_runtime_link_init((char *)p_perldll, verbose) == OK;
|
||||||
}
|
}
|
||||||
@ -644,7 +643,7 @@ perl_enabled(verbose)
|
|||||||
* there's nothing to actually parse.
|
* there's nothing to actually parse.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
perl_init()
|
perl_init(void)
|
||||||
{
|
{
|
||||||
char *bootargs[] = { "VI", NULL };
|
char *bootargs[] = { "VI", NULL };
|
||||||
int argc = 3;
|
int argc = 3;
|
||||||
@ -670,7 +669,7 @@ perl_init()
|
|||||||
* perl_end(): clean up after ourselves
|
* perl_end(): clean up after ourselves
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
perl_end()
|
perl_end(void)
|
||||||
{
|
{
|
||||||
if (perl_interp)
|
if (perl_interp)
|
||||||
{
|
{
|
||||||
@ -696,9 +695,9 @@ perl_end()
|
|||||||
* split at '\n' first though.
|
* split at '\n' first though.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
msg_split(s, attr)
|
msg_split(
|
||||||
char_u *s;
|
char_u *s,
|
||||||
int attr; /* highlighting attributes */
|
int attr) /* highlighting attributes */
|
||||||
{
|
{
|
||||||
char *next;
|
char *next;
|
||||||
char *token = (char *)s;
|
char *token = (char *)s;
|
||||||
@ -719,10 +718,10 @@ msg_split(s, attr)
|
|||||||
* work properly.
|
* work properly.
|
||||||
*/
|
*/
|
||||||
char_u *
|
char_u *
|
||||||
eval_to_string(arg, nextcmd, dolist)
|
eval_to_string(
|
||||||
char_u *arg UNUSED;
|
char_u *arg UNUSED,
|
||||||
char_u **nextcmd UNUSED;
|
char_u **nextcmd UNUSED,
|
||||||
int dolist UNUSED;
|
int dolist UNUSED)
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@ -740,9 +739,7 @@ eval_to_string(arg, nextcmd, dolist)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
static SV *
|
static SV *
|
||||||
newWINrv(rv, ptr)
|
newWINrv(SV *rv, win_T *ptr)
|
||||||
SV *rv;
|
|
||||||
win_T *ptr;
|
|
||||||
{
|
{
|
||||||
sv_upgrade(rv, SVt_RV);
|
sv_upgrade(rv, SVt_RV);
|
||||||
if (ptr->w_perl_private == NULL)
|
if (ptr->w_perl_private == NULL)
|
||||||
@ -758,9 +755,7 @@ newWINrv(rv, ptr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static SV *
|
static SV *
|
||||||
newBUFrv(rv, ptr)
|
newBUFrv(SV *rv, buf_T *ptr)
|
||||||
SV *rv;
|
|
||||||
buf_T *ptr;
|
|
||||||
{
|
{
|
||||||
sv_upgrade(rv, SVt_RV);
|
sv_upgrade(rv, SVt_RV);
|
||||||
if (ptr->b_perl_private == NULL)
|
if (ptr->b_perl_private == NULL)
|
||||||
@ -780,8 +775,7 @@ newBUFrv(rv, ptr)
|
|||||||
* Remove all references to the window to be destroyed
|
* Remove all references to the window to be destroyed
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
perl_win_free(wp)
|
perl_win_free(win_T *wp)
|
||||||
win_T *wp;
|
|
||||||
{
|
{
|
||||||
if (wp->w_perl_private)
|
if (wp->w_perl_private)
|
||||||
sv_setiv((SV *)wp->w_perl_private, 0);
|
sv_setiv((SV *)wp->w_perl_private, 0);
|
||||||
@ -789,8 +783,7 @@ perl_win_free(wp)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
perl_buf_free(bp)
|
perl_buf_free(buf_T *bp)
|
||||||
buf_T *bp;
|
|
||||||
{
|
{
|
||||||
if (bp->b_perl_private)
|
if (bp->b_perl_private)
|
||||||
sv_setiv((SV *)bp->b_perl_private, 0);
|
sv_setiv((SV *)bp->b_perl_private, 0);
|
||||||
@ -834,7 +827,7 @@ struct ufuncs cb_funcs = { cur_val, 0, 1 };
|
|||||||
* Make the magical main::curwin and main::curbuf variables
|
* Make the magical main::curwin and main::curbuf variables
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
VIM_init()
|
VIM_init(void)
|
||||||
{
|
{
|
||||||
static char cw[] = "main::curwin";
|
static char cw[] = "main::curwin";
|
||||||
static char cb[] = "main::curbuf";
|
static char cb[] = "main::curbuf";
|
||||||
@ -866,8 +859,7 @@ static char *e_noperl = N_("Sorry, this command is disabled: the Perl library co
|
|||||||
* ":perl"
|
* ":perl"
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
ex_perl(eap)
|
ex_perl(exarg_T *eap)
|
||||||
exarg_T *eap;
|
|
||||||
{
|
{
|
||||||
char *err;
|
char *err;
|
||||||
char *script;
|
char *script;
|
||||||
@ -947,8 +939,7 @@ ex_perl(eap)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
replace_line(line, end)
|
replace_line(linenr_T *line, linenr_T *end)
|
||||||
linenr_T *line, *end;
|
|
||||||
{
|
{
|
||||||
char *str;
|
char *str;
|
||||||
|
|
||||||
@ -989,8 +980,7 @@ ref_map_free(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static struct ref_map_S *
|
static struct ref_map_S *
|
||||||
ref_map_find_SV(sv)
|
ref_map_find_SV(SV *const sv)
|
||||||
SV *const sv;
|
|
||||||
{
|
{
|
||||||
struct ref_map_S *refs = ref_map;
|
struct ref_map_S *refs = ref_map;
|
||||||
int count = 350;
|
int count = 350;
|
||||||
@ -1016,9 +1006,7 @@ ref_map_find_SV(sv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
perl_to_vim(sv, rettv)
|
perl_to_vim(SV *sv, typval_T *rettv)
|
||||||
SV *sv;
|
|
||||||
typval_T *rettv;
|
|
||||||
{
|
{
|
||||||
if (SvROK(sv))
|
if (SvROK(sv))
|
||||||
sv = SvRV(sv);
|
sv = SvRV(sv);
|
||||||
@ -1171,9 +1159,7 @@ perl_to_vim(sv, rettv)
|
|||||||
* "perleval()"
|
* "perleval()"
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
do_perleval(str, rettv)
|
do_perleval(char_u *str, typval_T *rettv)
|
||||||
char_u *str;
|
|
||||||
typval_T *rettv;
|
|
||||||
{
|
{
|
||||||
char *err = NULL;
|
char *err = NULL;
|
||||||
STRLEN err_len = 0;
|
STRLEN err_len = 0;
|
||||||
@ -1241,8 +1227,7 @@ do_perleval(str, rettv)
|
|||||||
* ":perldo".
|
* ":perldo".
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
ex_perldo(eap)
|
ex_perldo(exarg_T *eap)
|
||||||
exarg_T *eap;
|
|
||||||
{
|
{
|
||||||
STRLEN length;
|
STRLEN length;
|
||||||
SV *sv;
|
SV *sv;
|
||||||
@ -1314,9 +1299,21 @@ err:
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifndef FEAT_WINDOWS
|
#ifndef FEAT_WINDOWS
|
||||||
int win_valid(win_T *w) { return TRUE; }
|
int
|
||||||
int win_count() { return 1; }
|
win_valid(win_T *w)
|
||||||
win_T *win_find_nr(int n) { return curwin; }
|
{
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
int
|
||||||
|
win_count(void)
|
||||||
|
{
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
win_T *
|
||||||
|
win_find_nr(int n)
|
||||||
|
{
|
||||||
|
return curwin;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
XS(boot_VIM);
|
XS(boot_VIM);
|
||||||
@ -1513,8 +1510,7 @@ SetHeight(win, height)
|
|||||||
curwin = savewin;
|
curwin = savewin;
|
||||||
|
|
||||||
void
|
void
|
||||||
Cursor(win, ...)
|
Cursor(VIWIN win, ...)
|
||||||
VIWIN win
|
|
||||||
|
|
||||||
PPCODE:
|
PPCODE:
|
||||||
if (items == 1)
|
if (items == 1)
|
||||||
|
@ -2041,15 +2041,13 @@ set_x11_icon(char_u *icon)
|
|||||||
#else /* FEAT_X11 */
|
#else /* FEAT_X11 */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
get_x11_title(test_only)
|
get_x11_title(int test_only UNUSED)
|
||||||
int test_only UNUSED;
|
|
||||||
{
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
get_x11_icon(test_only)
|
get_x11_icon(int test_only)
|
||||||
int test_only;
|
|
||||||
{
|
{
|
||||||
if (!test_only)
|
if (!test_only)
|
||||||
{
|
{
|
||||||
@ -2333,9 +2331,7 @@ mch_get_host_name(char_u *s, int len)
|
|||||||
# endif
|
# endif
|
||||||
|
|
||||||
void
|
void
|
||||||
mch_get_host_name(s, len)
|
mch_get_host_name(char_u *s, int len)
|
||||||
char_u *s;
|
|
||||||
int len;
|
|
||||||
{
|
{
|
||||||
# ifdef VAXC
|
# ifdef VAXC
|
||||||
vaxc$gethostname((char *)s, len);
|
vaxc$gethostname((char *)s, len);
|
||||||
@ -2743,9 +2739,7 @@ mch_copy_sec(char_u *from_file, char_u *to_file)
|
|||||||
* Copy security info from "from_file" to "to_file".
|
* Copy security info from "from_file" to "to_file".
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
mch_copy_sec(from_file, to_file)
|
mch_copy_sec(char_u *from_file, char_u *to_file)
|
||||||
char_u *from_file;
|
|
||||||
char_u *to_file;
|
|
||||||
{
|
{
|
||||||
static const char * const smack_copied_attributes[] =
|
static const char * const smack_copied_attributes[] =
|
||||||
{
|
{
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv);
|
main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
char buffer[BUFSIZ];
|
char buffer[BUFSIZ];
|
||||||
char *p;
|
char *p;
|
||||||
|
18
src/pty.c
18
src/pty.c
@ -195,8 +195,7 @@ OpenPTY(char **ttyn)
|
|||||||
&& !defined(PTY_DONE)
|
&& !defined(PTY_DONE)
|
||||||
#define PTY_DONE
|
#define PTY_DONE
|
||||||
int
|
int
|
||||||
OpenPTY(ttyn)
|
OpenPTY(char **ttyn)
|
||||||
char **ttyn;
|
|
||||||
{
|
{
|
||||||
char *m, *s;
|
char *m, *s;
|
||||||
int f;
|
int f;
|
||||||
@ -220,8 +219,7 @@ OpenPTY(ttyn)
|
|||||||
#if defined(__sgi) && !defined(PTY_DONE)
|
#if defined(__sgi) && !defined(PTY_DONE)
|
||||||
#define PTY_DONE
|
#define PTY_DONE
|
||||||
int
|
int
|
||||||
OpenPTY(ttyn)
|
OpenPTY(char **ttyn)
|
||||||
char **ttyn;
|
|
||||||
{
|
{
|
||||||
int f;
|
int f;
|
||||||
char *name;
|
char *name;
|
||||||
@ -246,8 +244,7 @@ OpenPTY(ttyn)
|
|||||||
#if defined(MIPS) && defined(HAVE_DEV_PTC) && !defined(PTY_DONE)
|
#if defined(MIPS) && defined(HAVE_DEV_PTC) && !defined(PTY_DONE)
|
||||||
#define PTY_DONE
|
#define PTY_DONE
|
||||||
int
|
int
|
||||||
OpenPTY(ttyn)
|
OpenPTY(char **ttyn)
|
||||||
char **ttyn;
|
|
||||||
{
|
{
|
||||||
int f;
|
int f;
|
||||||
struct stat buf;
|
struct stat buf;
|
||||||
@ -274,8 +271,7 @@ OpenPTY(ttyn)
|
|||||||
* Same for Mac OS X Leopard. */
|
* Same for Mac OS X Leopard. */
|
||||||
#define PTY_DONE
|
#define PTY_DONE
|
||||||
int
|
int
|
||||||
OpenPTY(ttyn)
|
OpenPTY(char **ttyn)
|
||||||
char **ttyn;
|
|
||||||
{
|
{
|
||||||
int f;
|
int f;
|
||||||
char *m;
|
char *m;
|
||||||
@ -316,8 +312,7 @@ int aixhack = -1;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
OpenPTY(ttyn)
|
OpenPTY(char **ttyn)
|
||||||
char **ttyn;
|
|
||||||
{
|
{
|
||||||
int f;
|
int f;
|
||||||
/* used for opening a new pty-pair: */
|
/* used for opening a new pty-pair: */
|
||||||
@ -363,8 +358,7 @@ static char TtyProto[] = "/dev/ttyXY";
|
|||||||
# endif
|
# endif
|
||||||
|
|
||||||
int
|
int
|
||||||
OpenPTY(ttyn)
|
OpenPTY(char **ttyn)
|
||||||
char **ttyn;
|
|
||||||
{
|
{
|
||||||
char *p, *q, *l, *d;
|
char *p, *q, *l, *d;
|
||||||
int f;
|
int f;
|
||||||
|
@ -742,6 +742,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 */
|
||||||
|
/**/
|
||||||
|
1225,
|
||||||
/**/
|
/**/
|
||||||
1224,
|
1224,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user