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>
This commit is contained in:
Yegappan Lakshmanan
2025-08-16 16:26:54 +02:00
committed by Christian Brabandt
parent 62f5be6ea6
commit d6a762fe1b
17 changed files with 118 additions and 25 deletions

View File

@ -2714,7 +2714,11 @@ invoke_one_time_callback(
}
static void
append_to_buffer(buf_T *buffer, char_u *msg, channel_T *channel, ch_part_T part)
append_to_buffer(
buf_T *buffer,
char_u *msg,
channel_T *channel,
ch_part_T part)
{
aco_save_T aco;
linenr_T lnum = buffer->b_ml.ml_line_count;

View File

@ -387,7 +387,11 @@ dict_add(dict_T *d, dictitem_T *item)
* Returns FAIL when out of memory and when key already exists.
*/
static int
dict_add_number_special(dict_T *d, char *key, varnumber_T nr, vartype_T vartype)
dict_add_number_special(
dict_T *d,
char *key,
varnumber_T nr,
vartype_T vartype)
{
dictitem_T *item;

View File

@ -2750,7 +2750,11 @@ diff_set_topline(win_T *fromwin, win_T *towin)
* syntax is correct.
*/
static int
parse_diffanchors(int check_only, buf_T *buf, linenr_T *anchors, int *num_anchors)
parse_diffanchors(
int check_only,
buf_T *buf,
linenr_T *anchors,
int *num_anchors)
{
int i;
char_u *dia = (*buf->b_p_dia == NUL) ? p_dia : buf->b_p_dia;

View File

@ -745,7 +745,10 @@ form_realize_child(GtkForm *form, GtkFormChild *child)
}
static void
form_position_child(GtkForm *form, GtkFormChild *child, gboolean force_allocate)
form_position_child(
GtkForm *form,
GtkFormChild *child,
gboolean force_allocate)
{
gint x;
gint y;

View File

@ -5419,7 +5419,10 @@ gui_mch_free_font(GuiFont font)
* monospace fonts as it's unlikely other fonts would be useful.
*/
void
gui_mch_expand_font(optexpand_T *args, void *param, int (*add_match)(char_u *val))
gui_mch_expand_font(
optexpand_T *args,
void *param,
int (*add_match)(char_u *val))
{
PangoFontFamily **font_families = NULL;
int n_families = 0;

View File

@ -348,7 +348,10 @@ gui_ph_handle_timer_cursor(
}
static int
gui_ph_handle_timer_timeout(PtWidget_t *widget, void *data, PtCallbackInfo_t *info)
gui_ph_handle_timer_timeout(
PtWidget_t *widget,
void *data,
PtCallbackInfo_t *info)
{
is_timeout = TRUE;
@ -1476,7 +1479,10 @@ gui_ph_dialog_close(int button, void *data)
}
static int
gui_ph_dialog_text_enter(PtWidget_t *widget, void *data, PtCallbackInfo_t *info)
gui_ph_dialog_text_enter(
PtWidget_t *widget,
void *data,
PtCallbackInfo_t *info)
{
if (info->reason_subtype == Pt_EDIT_ACTIVATE)
gui_ph_dialog_close(1, data);

View File

@ -841,7 +841,11 @@ static void remove_timer(void);
// timers are presented in GUI only
# if defined(FEAT_GUI_MSWIN)
static void CALLBACK
timer_proc(HWND hwnd UNUSED, UINT uMsg UNUSED, UINT_PTR idEvent UNUSED, DWORD dwTime UNUSED)
timer_proc(
HWND hwnd UNUSED,
UINT uMsg UNUSED,
UINT_PTR idEvent UNUSED,
DWORD dwTime UNUSED)
# elif defined(FEAT_GUI_GTK)
static gboolean
timer_proc(gpointer data UNUSED)
@ -1306,7 +1310,10 @@ mzscheme_init(void)
* Evaluate command with exception handling
*/
static int
eval_with_exn_handling(void *data, Scheme_Closed_Prim *what, Scheme_Object **ret)
eval_with_exn_handling(
void *data,
Scheme_Closed_Prim *what,
Scheme_Object **ret)
{
Scheme_Object *value = NULL;
Scheme_Object *exn = NULL;
@ -1698,7 +1705,10 @@ vim_eval(void *data UNUSED, int argc UNUSED, Scheme_Object **argv UNUSED)
* (range-start)
*/
static Scheme_Object *
get_range_start(void *data UNUSED, int argc UNUSED, Scheme_Object **argv UNUSED)
get_range_start(
void *data UNUSED,
int argc UNUSED,
Scheme_Object **argv UNUSED)
{
return scheme_make_integer(range_start);
}
@ -1883,7 +1893,10 @@ get_curr_win(void *data UNUSED, int argc UNUSED, Scheme_Object **argv UNUSED)
* (win-count)
*/
static Scheme_Object *
get_window_count(void *data UNUSED, int argc UNUSED, Scheme_Object **argv UNUSED)
get_window_count(
void *data UNUSED,
int argc UNUSED,
Scheme_Object **argv UNUSED)
{
int n = 0;
win_T *w;
@ -2275,7 +2288,10 @@ get_buffer_num(void *data, int argc, Scheme_Object **argv)
* (buff-count)
*/
static Scheme_Object *
get_buffer_count(void *data UNUSED, int argc UNUSED, Scheme_Object **argv UNUSED)
get_buffer_count(
void *data UNUSED,
int argc UNUSED,
Scheme_Object **argv UNUSED)
{
buf_T *b;
int n = 0;
@ -2300,7 +2316,10 @@ get_buffer_name(void *data, int argc, Scheme_Object **argv)
* (curr-buff)
*/
static Scheme_Object *
get_curr_buffer(void *data UNUSED, int argc UNUSED, Scheme_Object **argv UNUSED)
get_curr_buffer(
void *data UNUSED,
int argc UNUSED,
Scheme_Object **argv UNUSED)
{
return (Scheme_Object *)get_vim_curr_buffer();
}
@ -2997,7 +3016,10 @@ vim_to_mzscheme(typval_T *vim_value)
}
static Scheme_Object *
vim_to_mzscheme_impl(typval_T *vim_value, int depth, Scheme_Hash_Table *visited)
vim_to_mzscheme_impl(
typval_T *vim_value,
int depth,
Scheme_Hash_Table *visited)
{
Scheme_Object *result = NULL;
int new_value = TRUE;

View File

@ -1016,7 +1016,12 @@ fail:
* External interface
*/
static void
DoPyCommand(const char *cmd, dict_T* locals, rangeinitializer init_range, runner run, void *arg)
DoPyCommand(
const char *cmd,
dict_T* locals,
rangeinitializer init_range,
runner run,
void *arg)
{
#ifndef PY_CAN_RECURSE
static int recursive = 0;

View File

@ -1279,7 +1279,10 @@ did_set_breakindentopt(optset_T *args)
}
int
expand_set_breakindentopt(optexpand_T *args, int *numMatches, char_u ***matches)
expand_set_breakindentopt(
optexpand_T *args,
int *numMatches,
char_u ***matches)
{
return expand_set_opt_string(
args,
@ -3756,7 +3759,10 @@ did_set_sessionoptions(optset_T *args)
}
int
expand_set_sessionoptions(optexpand_T *args, int *numMatches, char_u ***matches)
expand_set_sessionoptions(
optexpand_T *args,
int *numMatches,
char_u ***matches)
{
return expand_set_opt_string(
args,
@ -4308,7 +4314,10 @@ did_set_toolbariconsize(optset_T *args UNUSED)
}
int
expand_set_toolbariconsize(optexpand_T *args, int *numMatches, char_u ***matches)
expand_set_toolbariconsize(
optexpand_T *args,
int *numMatches,
char_u ***matches)
{
return expand_set_opt_string(
args,

View File

@ -3001,7 +3001,10 @@ expand_font_enumproc(
* platform code.
*/
void
gui_mch_expand_font(optexpand_T *args, void *param UNUSED, int (*add_match)(char_u *val))
gui_mch_expand_font(
optexpand_T *args,
void *param UNUSED,
int (*add_match)(char_u *val))
{
expand_T *xp = args->oe_xp;
if (xp->xp_pattern > args->oe_set_arg && *(xp->xp_pattern-1) == ':')

View File

@ -443,7 +443,12 @@ vms_wproc(char *name, int val)
*
*/
int
mch_expand_wildcards(int num_pat, char_u **pat, int *num_file, char_u ***file, int flags)
mch_expand_wildcards(
int num_pat,
char_u **pat,
int *num_file,
char_u ***file,
int flags)
{
int i, cnt = 0;
char_u buf[MAXPATHL];

View File

@ -2810,7 +2810,12 @@ executable_file(char *name, char_u **path)
* the allocated memory.
*/
static int
executable_exists(char *name, size_t namelen, char_u **path, int use_path, int use_pathext)
executable_exists(
char *name,
size_t namelen,
char_u **path,
int use_path,
int use_pathext)
{
// WinNT and later can use _MAX_PATH wide characters for a pathname, which
// means that the maximum pathname is _MAX_PATH * 3 bytes when 'enc' is

View File

@ -1253,7 +1253,11 @@ typedef enum
// note:
// submatch is available only if FEAT_EVAL is defined.
static void
reg_getline_common(linenr_T lnum, reg_getline_flags_T flags, char_u **line, colnr_T *length)
reg_getline_common(
linenr_T lnum,
reg_getline_flags_T flags,
char_u **line,
colnr_T *length)
{
int get_line = flags & RGLF_LINE;
int get_length = flags & RGLF_LENGTH;

View File

@ -2922,7 +2922,12 @@ showmatch(
* Returns TRUE, FALSE or -1 for failure.
*/
static int
is_zero_width(char_u *pattern, size_t patternlen, int move, pos_T *cur, int direction)
is_zero_width(
char_u *pattern,
size_t patternlen,
int move,
pos_T *cur,
int direction)
{
regmmatch_T regmatch;
int nmatched = 0;

View File

@ -822,7 +822,11 @@ sign_list_placed(buf_T *rbuf, char_u *sign_group)
* Adjust a placed sign for inserted/deleted lines.
*/
void
sign_mark_adjust(linenr_T line1, linenr_T line2, long amount, long amount_after)
sign_mark_adjust(
linenr_T line1,
linenr_T line2,
long amount,
long amount_after)
{
sign_entry_T *sign = NULL; // a sign in a b_signlist
FOR_ALL_SIGNS_IN_BUF(curbuf, sign)

View File

@ -1543,7 +1543,12 @@ uc_split_args(char_u *arg, size_t *lenp)
}
static size_t
add_cmd_modifier(char_u *buf, size_t buflen, char *mod_str, size_t mod_strlen, int *multi_mods)
add_cmd_modifier(
char_u *buf,
size_t buflen,
char *mod_str,
size_t mod_strlen,
int *multi_mods)
{
if (buf != NULL)
{

View File

@ -719,6 +719,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1636,
/**/
1635,
/**/