patch 9.1.1636: style issues Commit: https://github.com/vim/vim/commit/d6a762fe1b8c51e9d240d71f8724277d7d7f2788 Author: Yegappan Lakshmanan <yegap...@yahoo.com> Date: Sat Aug 16 16:26:54 2025 +0200
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 <yegap...@yahoo.com> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/src/channel.c b/src/channel.c index a369c7160..0eac3d6bf 100644 --- a/src/channel.c +++ b/src/channel.c @@ -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; diff --git a/src/dict.c b/src/dict.c index 5339bb52c..b4e971e56 100644 --- a/src/dict.c +++ b/src/dict.c @@ -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; diff --git a/src/diff.c b/src/diff.c index b8d9de539..13afade25 100644 --- a/src/diff.c +++ b/src/diff.c @@ -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; diff --git a/src/gui_gtk_f.c b/src/gui_gtk_f.c index 54828a108..dea7dd0b0 100644 --- a/src/gui_gtk_f.c +++ b/src/gui_gtk_f.c @@ -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; diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c index 6b587385a..f52f38554 100644 --- a/src/gui_gtk_x11.c +++ b/src/gui_gtk_x11.c @@ -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; diff --git a/src/gui_photon.c b/src/gui_photon.c index 9bce94ddf..24426655f 100644 --- a/src/gui_photon.c +++ b/src/gui_photon.c @@ -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); diff --git a/src/if_mzsch.c b/src/if_mzsch.c index 4a8644c50..450b43b8f 100644 --- a/src/if_mzsch.c +++ b/src/if_mzsch.c @@ -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; diff --git a/src/if_python.c b/src/if_python.c index 012a3e776..43b780be7 100644 --- a/src/if_python.c +++ b/src/if_python.c @@ -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; diff --git a/src/optionstr.c b/src/optionstr.c index 03cf4391c..bbae33973 100644 --- a/src/optionstr.c +++ b/src/optionstr.c @@ -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, diff --git a/src/os_mswin.c b/src/os_mswin.c index 7a323f327..c2c1bd0c2 100644 --- a/src/os_mswin.c +++ b/src/os_mswin.c @@ -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) == ':') diff --git a/src/os_vms.c b/src/os_vms.c index 42dbc4b00..3955c8bfe 100644 --- a/src/os_vms.c +++ b/src/os_vms.c @@ -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]; diff --git a/src/os_win32.c b/src/os_win32.c index cc379da54..6bd03bd1c 100644 --- a/src/os_win32.c +++ b/src/os_win32.c @@ -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 diff --git a/src/regexp.c b/src/regexp.c index 305ca896e..27112bc53 100644 --- a/src/regexp.c +++ b/src/regexp.c @@ -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; diff --git a/src/search.c b/src/search.c index 12bf6f7ff..677d1735a 100644 --- a/src/search.c +++ b/src/search.c @@ -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; diff --git a/src/sign.c b/src/sign.c index e997a770a..69837a494 100644 --- a/src/sign.c +++ b/src/sign.c @@ -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) diff --git a/src/usercmd.c b/src/usercmd.c index 7c10a51df..9308cd982 100644 --- a/src/usercmd.c +++ b/src/usercmd.c @@ -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) { diff --git a/src/version.c b/src/version.c index 2a2d0598c..3c38765d4 100644 --- a/src/version.c +++ b/src/version.c @@ -719,6 +719,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1636, /**/ 1635, /**/ -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1unHv2-000zpJ-Vh%40256bit.org.