}
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;
* 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;
* 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;
}
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;
* 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;
}
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;
}
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);
// 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)
* 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;
* (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);
}
* (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;
* (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;
* (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();
}
}
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;
* 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;
}
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,
}
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,
}
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,
* 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) == ':')
*
*/
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];
* 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
// 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;
* 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;
* 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)
}
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)
{
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1636,
/**/
1635,
/**/