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 -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220108160523.9FA211C0D8A%40moolenaar.net.

Raspunde prin e-mail lui