Skip to content

Commit d6a762f

Browse files
yegappanchrisbra
authored andcommitted
patch 9.1.1636: style issues
Problem: style issues Solution: Fix indentation of function parameters exceeding 80 character length (Yegappan Lakshmanan). closes: #18013 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 62f5be6 commit d6a762f

17 files changed

Lines changed: 118 additions & 25 deletions

src/channel.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2714,7 +2714,11 @@ invoke_one_time_callback(
27142714
}
27152715

27162716
static void
2717-
append_to_buffer(buf_T *buffer, char_u *msg, channel_T *channel, ch_part_T part)
2717+
append_to_buffer(
2718+
buf_T *buffer,
2719+
char_u *msg,
2720+
channel_T *channel,
2721+
ch_part_T part)
27182722
{
27192723
aco_save_T aco;
27202724
linenr_T lnum = buffer->b_ml.ml_line_count;

src/dict.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,11 @@ dict_add(dict_T *d, dictitem_T *item)
387387
* Returns FAIL when out of memory and when key already exists.
388388
*/
389389
static int
390-
dict_add_number_special(dict_T *d, char *key, varnumber_T nr, vartype_T vartype)
390+
dict_add_number_special(
391+
dict_T *d,
392+
char *key,
393+
varnumber_T nr,
394+
vartype_T vartype)
391395
{
392396
dictitem_T *item;
393397

src/diff.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2750,7 +2750,11 @@ diff_set_topline(win_T *fromwin, win_T *towin)
27502750
* syntax is correct.
27512751
*/
27522752
static int
2753-
parse_diffanchors(int check_only, buf_T *buf, linenr_T *anchors, int *num_anchors)
2753+
parse_diffanchors(
2754+
int check_only,
2755+
buf_T *buf,
2756+
linenr_T *anchors,
2757+
int *num_anchors)
27542758
{
27552759
int i;
27562760
char_u *dia = (*buf->b_p_dia == NUL) ? p_dia : buf->b_p_dia;

src/gui_gtk_f.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,10 @@ form_realize_child(GtkForm *form, GtkFormChild *child)
745745
}
746746

747747
static void
748-
form_position_child(GtkForm *form, GtkFormChild *child, gboolean force_allocate)
748+
form_position_child(
749+
GtkForm *form,
750+
GtkFormChild *child,
751+
gboolean force_allocate)
749752
{
750753
gint x;
751754
gint y;

src/gui_gtk_x11.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5419,7 +5419,10 @@ gui_mch_free_font(GuiFont font)
54195419
* monospace fonts as it's unlikely other fonts would be useful.
54205420
*/
54215421
void
5422-
gui_mch_expand_font(optexpand_T *args, void *param, int (*add_match)(char_u *val))
5422+
gui_mch_expand_font(
5423+
optexpand_T *args,
5424+
void *param,
5425+
int (*add_match)(char_u *val))
54235426
{
54245427
PangoFontFamily **font_families = NULL;
54255428
int n_families = 0;

src/gui_photon.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,10 @@ gui_ph_handle_timer_cursor(
348348
}
349349

350350
static int
351-
gui_ph_handle_timer_timeout(PtWidget_t *widget, void *data, PtCallbackInfo_t *info)
351+
gui_ph_handle_timer_timeout(
352+
PtWidget_t *widget,
353+
void *data,
354+
PtCallbackInfo_t *info)
352355
{
353356
is_timeout = TRUE;
354357

@@ -1476,7 +1479,10 @@ gui_ph_dialog_close(int button, void *data)
14761479
}
14771480

14781481
static int
1479-
gui_ph_dialog_text_enter(PtWidget_t *widget, void *data, PtCallbackInfo_t *info)
1482+
gui_ph_dialog_text_enter(
1483+
PtWidget_t *widget,
1484+
void *data,
1485+
PtCallbackInfo_t *info)
14801486
{
14811487
if (info->reason_subtype == Pt_EDIT_ACTIVATE)
14821488
gui_ph_dialog_close(1, data);

src/if_mzsch.c

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,11 @@ static void remove_timer(void);
841841
// timers are presented in GUI only
842842
# if defined(FEAT_GUI_MSWIN)
843843
static void CALLBACK
844-
timer_proc(HWND hwnd UNUSED, UINT uMsg UNUSED, UINT_PTR idEvent UNUSED, DWORD dwTime UNUSED)
844+
timer_proc(
845+
HWND hwnd UNUSED,
846+
UINT uMsg UNUSED,
847+
UINT_PTR idEvent UNUSED,
848+
DWORD dwTime UNUSED)
845849
# elif defined(FEAT_GUI_GTK)
846850
static gboolean
847851
timer_proc(gpointer data UNUSED)
@@ -1306,7 +1310,10 @@ mzscheme_init(void)
13061310
* Evaluate command with exception handling
13071311
*/
13081312
static int
1309-
eval_with_exn_handling(void *data, Scheme_Closed_Prim *what, Scheme_Object **ret)
1313+
eval_with_exn_handling(
1314+
void *data,
1315+
Scheme_Closed_Prim *what,
1316+
Scheme_Object **ret)
13101317
{
13111318
Scheme_Object *value = NULL;
13121319
Scheme_Object *exn = NULL;
@@ -1698,7 +1705,10 @@ vim_eval(void *data UNUSED, int argc UNUSED, Scheme_Object **argv UNUSED)
16981705
* (range-start)
16991706
*/
17001707
static Scheme_Object *
1701-
get_range_start(void *data UNUSED, int argc UNUSED, Scheme_Object **argv UNUSED)
1708+
get_range_start(
1709+
void *data UNUSED,
1710+
int argc UNUSED,
1711+
Scheme_Object **argv UNUSED)
17021712
{
17031713
return scheme_make_integer(range_start);
17041714
}
@@ -1883,7 +1893,10 @@ get_curr_win(void *data UNUSED, int argc UNUSED, Scheme_Object **argv UNUSED)
18831893
* (win-count)
18841894
*/
18851895
static Scheme_Object *
1886-
get_window_count(void *data UNUSED, int argc UNUSED, Scheme_Object **argv UNUSED)
1896+
get_window_count(
1897+
void *data UNUSED,
1898+
int argc UNUSED,
1899+
Scheme_Object **argv UNUSED)
18871900
{
18881901
int n = 0;
18891902
win_T *w;
@@ -2275,7 +2288,10 @@ get_buffer_num(void *data, int argc, Scheme_Object **argv)
22752288
* (buff-count)
22762289
*/
22772290
static Scheme_Object *
2278-
get_buffer_count(void *data UNUSED, int argc UNUSED, Scheme_Object **argv UNUSED)
2291+
get_buffer_count(
2292+
void *data UNUSED,
2293+
int argc UNUSED,
2294+
Scheme_Object **argv UNUSED)
22792295
{
22802296
buf_T *b;
22812297
int n = 0;
@@ -2300,7 +2316,10 @@ get_buffer_name(void *data, int argc, Scheme_Object **argv)
23002316
* (curr-buff)
23012317
*/
23022318
static Scheme_Object *
2303-
get_curr_buffer(void *data UNUSED, int argc UNUSED, Scheme_Object **argv UNUSED)
2319+
get_curr_buffer(
2320+
void *data UNUSED,
2321+
int argc UNUSED,
2322+
Scheme_Object **argv UNUSED)
23042323
{
23052324
return (Scheme_Object *)get_vim_curr_buffer();
23062325
}
@@ -2997,7 +3016,10 @@ vim_to_mzscheme(typval_T *vim_value)
29973016
}
29983017

29993018
static Scheme_Object *
3000-
vim_to_mzscheme_impl(typval_T *vim_value, int depth, Scheme_Hash_Table *visited)
3019+
vim_to_mzscheme_impl(
3020+
typval_T *vim_value,
3021+
int depth,
3022+
Scheme_Hash_Table *visited)
30013023
{
30023024
Scheme_Object *result = NULL;
30033025
int new_value = TRUE;

src/if_python.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,12 @@ Python_Init(void)
10161016
* External interface
10171017
*/
10181018
static void
1019-
DoPyCommand(const char *cmd, dict_T* locals, rangeinitializer init_range, runner run, void *arg)
1019+
DoPyCommand(
1020+
const char *cmd,
1021+
dict_T* locals,
1022+
rangeinitializer init_range,
1023+
runner run,
1024+
void *arg)
10201025
{
10211026
#ifndef PY_CAN_RECURSE
10221027
static int recursive = 0;

src/optionstr.c

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,10 @@ did_set_breakindentopt(optset_T *args)
12791279
}
12801280

12811281
int
1282-
expand_set_breakindentopt(optexpand_T *args, int *numMatches, char_u ***matches)
1282+
expand_set_breakindentopt(
1283+
optexpand_T *args,
1284+
int *numMatches,
1285+
char_u ***matches)
12831286
{
12841287
return expand_set_opt_string(
12851288
args,
@@ -3756,7 +3759,10 @@ did_set_sessionoptions(optset_T *args)
37563759
}
37573760

37583761
int
3759-
expand_set_sessionoptions(optexpand_T *args, int *numMatches, char_u ***matches)
3762+
expand_set_sessionoptions(
3763+
optexpand_T *args,
3764+
int *numMatches,
3765+
char_u ***matches)
37603766
{
37613767
return expand_set_opt_string(
37623768
args,
@@ -4308,7 +4314,10 @@ did_set_toolbariconsize(optset_T *args UNUSED)
43084314
}
43094315

43104316
int
4311-
expand_set_toolbariconsize(optexpand_T *args, int *numMatches, char_u ***matches)
4317+
expand_set_toolbariconsize(
4318+
optexpand_T *args,
4319+
int *numMatches,
4320+
char_u ***matches)
43124321
{
43134322
return expand_set_opt_string(
43144323
args,

src/os_mswin.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3001,7 +3001,10 @@ expand_font_enumproc(
30013001
* platform code.
30023002
*/
30033003
void
3004-
gui_mch_expand_font(optexpand_T *args, void *param UNUSED, int (*add_match)(char_u *val))
3004+
gui_mch_expand_font(
3005+
optexpand_T *args,
3006+
void *param UNUSED,
3007+
int (*add_match)(char_u *val))
30053008
{
30063009
expand_T *xp = args->oe_xp;
30073010
if (xp->xp_pattern > args->oe_set_arg && *(xp->xp_pattern-1) == ':')

0 commit comments

Comments
 (0)