On 06/04/2020 03:56 p. m., Bram Moolenaar wrote:
>
> Patch 8.2.0524
> Problem: Win32: searching for file matches is slow.
> Solution: Instead of making another round to find any short
> filename, check
> for the short name right away. Avoid using an ordinary
> file like a
> directory. (Nir Lichtman, closes #5883)
> Files: src/filepath.c
>
>
> *** ../vim-8.2.0523/src/filepath.c 2020-04-06 21:12:38.809322010 +0200
> --- src/filepath.c 2020-04-06 22:54:50.647590386 +0200
> ***************
> [...]

I'm building vim 8.2.0524 with MinGW-W64 on Windows 7.
I get:

[...]
filepath.c: In function 'dos_expandpath':
filepath.c:3171:12: warning: statement with no effect [-Wunused-value]
p_alt == NULL;
^
filepath.c:3180:3: warning: suggest parentheses around '&&' within '||' 
[-Wparentheses]
if ((p[0] != '.' || starts_with_dot
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|| ((flags & EW_DODOT)
~~~~~~~~~~~~~~~~~~~~~~
&& p[1] != NUL && (p[1] != '.' || p[2] != NUL)))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
&& (matchname == NULL
^~~~~~~~~~~~~~~~~~~~~
|| (regmatch.regprog != NULL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
&& (vim_regexec(&regmatch, p, (colnr_T)0)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|| (p_alt != NULL
~~~~~~~~~~~~~~~~~
&& vim_regexec(&regmatch, p_alt, (colnr_T)0)))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
))
~~
filepath.c:3187:55: error: expected statement before ')' token
&& fnamencmp(path + (s - buf), p, e - s) == 0)))
^
make: *** [gobji686/filepath.o] Error 1
Error by compiling gvim.exe


Many thanks in advance

-- 
Cesar

-- 
-- 
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/1e159e55-6e9d-42ba-bec6-a1ec9fcde8c2%40googlegroups.com.

Raspunde prin e-mail lui