John Marriott wrote:

> On 04-Apr-2022 06:12, Bram Moolenaar wrote:
> > Patch 8.2.4678
> > Problem:    Vim9: not all code is tested.
> > Solution:   Add a few more tests.
> > Files:      src/vim9execute.c, src/testdir/test_vim9_script.vim,
> >              src/testdir/test_vim9_import.vim, src/testdir/test_vim9_cmd.> 
> > vim
> >
> >
> >
> After this patch, mingw64 (gcc 11.2.0) throws this error:
> <snip>
> gcc -c -I. -Iproto -DWIN32 -DWINVER=0x0603 -D_WIN32_WINNT=0x0603 
> -DHAVE_PATHDEF -DFEAT_NORMAL -DHAVE_STDINT_H -D__USE_MINGW_ANSI_STDIO 
> -pipe -march=native -Wall -O3 -fomit-frame-pointer -freg-struct-return 
> -fpie -fPIE -DFEAT_GUI_MSWIN -DFEAT_CLIPBOARD vim9execute.c -o 
> gobjnative/vim9execute.o
> In file included from vim9execute.c:15:
> vim9execute.c: In function 'exec_instructions':
> vim9execute.c:2640:37: error: 'e_cant_open_file_str_2' undeclared (first 
> use in this function); did you mean 'e_cant_open_file_str'?
>   2640 |          >             Â>        semsg(_(e_cant_open_file_str_2), 
> si->sn_name);
>        |       >             Â>              >      ^~~~~~~~~~~~~~~~~~~~~~
> vim.h:564:25: note: in definition of macro '_'
>    564 | # define _(x) ((char *)(x))
>        |       >             Â>       ^
> vim9execute.c:2640:37: note: each undeclared identifier is reported only 
> once for each function it appears in
>   2640 |          >             Â>        semsg(_(e_cant_open_file_str_2), 
> si->sn_name);
>        |       >             Â>              >      ^~~~~~~~~~~~~~~~~~~~~~
> vim.h:564:25: note: in definition of macro '_'
>    564 | # define _(x) ((char *)(x))
>        |       >             Â>       ^
> make: *** [Make_cyg_ming.mak:1187: gobjnative/vim9execute.o] Error 1
> </snip>
> 
> The attached patch tries to fix it.

I had just sent out a patch to fix this.

> Also, I noticed that two error messages have the same error number in 
> errors.h:

Missing quote?

If it's a very similar error, that would be OK.

-- 
BRIDGEKEEPER: What is the air-speed velocity of an unladen swallow?
ARTHUR:       What do you mean?  An African or European swallow?
BRIDGEKEEPER: Er ...  I don't know that ... Aaaaarrrrrrggghhh!
   BRIDGEKEEPER is cast into the gorge.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- b...@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    ///

-- 
-- 
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 on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220403210047.82C9D1C05DA%40moolenaar.net.

Raspunde prin e-mail lui