Patch 8.2.4042

4 views
Skip to first unread message

Bram Moolenaar

unread,
Jan 8, 2022, 11:05:29 AM1/8/22
to vim...@googlegroups.com

Patch 8.2.4042
Problem: Vim9: build error.
Solution: Use grow array instead of character pointer.
Files: src/vim9execute.c


*** ../vim-8.2.4041/src/vim9execute.c 2022-01-06 21:10:24.469027861 +0000
--- src/vim9execute.c 2022-01-08 16:02:20.870498285 +0000
***************
*** 3344,3356 ****
list_functions(NULL);
else
{
! exarg_T ea;
! char_u *line_to_free = NULL;

CLEAR_FIELD(ea);
ea.cmd = ea.arg = iptr->isn_arg.string;
! define_function(&ea, NULL, &line_to_free);
! vim_free(line_to_free);
}
break;

--- 3344,3357 ----
list_functions(NULL);
else
{
! exarg_T ea;
! garray_T lines_to_free;

CLEAR_FIELD(ea);
ea.cmd = ea.arg = iptr->isn_arg.string;
! ga_init2(&lines_to_free, sizeof(char_u *), 50);
! define_function(&ea, NULL, &lines_to_free);
! ga_clear_strings(&lines_to_free);
}
break;

*** ../vim-8.2.4041/src/version.c 2022-01-08 15:44:18.047924769 +0000
--- src/version.c 2022-01-08 16:02:40.450327831 +0000
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 4042,
/**/

--
hundred-and-one symptoms of being an internet addict:
264. You turn to the teletext page "surfing report" and are surprised that it
is about sizes of waves and a weather forecast for seaside resorts.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages