Skip to content

Commit 9b57814

Browse files
committed
patch 7.4.1211
Problem: Using old style function declarations. Solution: Change to new style function declarations. (script by Hirohito Higashi)
1 parent 52ea13d commit 9b57814

8 files changed

Lines changed: 1151 additions & 1779 deletions

File tree

src/misc1.c

Lines changed: 279 additions & 427 deletions
Large diffs are not rendered by default.

src/misc2.c

Lines changed: 215 additions & 384 deletions
Large diffs are not rendered by default.

src/move.c

Lines changed: 59 additions & 89 deletions
Large diffs are not rendered by default.

src/netbeans.c

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ static int curPCtype = -1;
561561
* Free netbeans resources.
562562
*/
563563
static void
564-
nb_free()
564+
nb_free(void)
565565
{
566566
keyQ_T *key_node = keyHead.next;
567567
nbbuf_T buf;
@@ -2355,22 +2355,20 @@ special_keys(char_u *args)
23552355
}
23562356

23572357
void
2358-
ex_nbclose(eap)
2359-
exarg_T *eap UNUSED;
2358+
ex_nbclose(exarg_T *eap UNUSED)
23602359
{
23612360
netbeans_close();
23622361
}
23632362

23642363
void
2365-
ex_nbkey(eap)
2366-
exarg_T *eap;
2364+
ex_nbkey(exarg_T *eap)
23672365
{
23682366
(void)netbeans_keystring(eap->arg);
23692367
}
23702368

23712369
void
2372-
ex_nbstart(eap)
2373-
exarg_T *eap;
2370+
ex_nbstart(
2371+
exarg_T *eap)
23742372
{
23752373
#ifdef FEAT_GUI
23762374
# if !defined(FEAT_GUI_X11) && !defined(FEAT_GUI_GTK) \
@@ -2572,7 +2570,7 @@ netbeans_open(char *params, int doabort)
25722570
* before calling exit.
25732571
*/
25742572
void
2575-
netbeans_send_disconnect()
2573+
netbeans_send_disconnect(void)
25762574
{
25772575
char buf[128];
25782576

@@ -3400,8 +3398,7 @@ pos2off(buf_T *buf, pos_T *pos)
34003398
* doesn't normally call readfile, we do our own.
34013399
*/
34023400
static void
3403-
print_read_msg(buf)
3404-
nbbuf_T *buf;
3401+
print_read_msg(nbbuf_T *buf)
34053402
{
34063403
int lnum = buf->bufp->b_ml.ml_line_count;
34073404
off_t nchars = buf->bufp->b_orig_size;
@@ -3438,9 +3435,7 @@ print_read_msg(buf)
34383435
* writing a file.
34393436
*/
34403437
static void
3441-
print_save_msg(buf, nchars)
3442-
nbbuf_T *buf;
3443-
off_t nchars;
3438+
print_save_msg(nbbuf_T *buf, off_t nchars)
34443439
{
34453440
char_u c;
34463441
char_u *p;

0 commit comments

Comments
 (0)