Skip to content

Commit d680d40

Browse files
committed
patch 9.1.1582: style issue in vim9type.c and vim9generics.c
Problem: style issue in vim9type.c and vim9generics.c (after v9.1.1581 and v9.1.1580) Solution: Update Style and place opening brace on a new line. Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 774fe9d commit d680d40

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,8 @@ static char *(features[]) =
719719

720720
static int included_patches[] =
721721
{ /* Add new patch number below this line */
722+
/**/
723+
1582,
722724
/**/
723725
1581,
724726
/**/

src/vim9generics.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,8 @@ parse_generic_func_type_args(
305305
char *ret_name = type_name(type_arg, &ret_free);
306306

307307
// create space for the name and the new type
308-
if (ga_grow(&gfatab->gfat_args, 1) == FAIL) {
308+
if (ga_grow(&gfatab->gfat_args, 1) == FAIL)
309+
{
309310
vim_free(ret_free);
310311
return NULL;
311312
}

src/vim9type.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1886,7 +1886,8 @@ parse_type_tuple(
18861886
ret_type = alloc_tuple_type(typecount, type_gap);
18871887
ret_type->tt_flags = flags;
18881888
ret_type->tt_argcount = typecount;
1889-
if (tuple_type_add_types(ret_type, typecount, type_gap) == FAIL) {
1889+
if (tuple_type_add_types(ret_type, typecount, type_gap) == FAIL)
1890+
{
18901891
ret_type = NULL;
18911892
goto on_err;
18921893
}

0 commit comments

Comments
 (0)