mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-30 02:50:25 +08:00
* path.cc (suffix_scan::next): Avoid searching for foo.lnk twice when input is
"foo".
This commit is contained in:
parent
298fad4623
commit
57499703f2
@ -1,3 +1,8 @@
|
||||
Sat Mar 17 12:43:15 2001 Christopher Faylor <cgf@cygnus.com>
|
||||
|
||||
* path.cc (suffix_scan::next): Avoid searching for foo.lnk twice when
|
||||
input is "foo".
|
||||
|
||||
Sat Mar 17 18:10:00 2001 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* net.cc (cygwin_socket): Set protocol to 0 when address family is
|
||||
|
@ -2472,10 +2472,14 @@ suffix_scan::next ()
|
||||
{
|
||||
case SCAN_BEG:
|
||||
suffixes = suffixes_start;
|
||||
if (suffixes)
|
||||
nextstate = SCAN_EXTRALNK;
|
||||
else
|
||||
if (!suffixes)
|
||||
nextstate = SCAN_LNK;
|
||||
else
|
||||
{
|
||||
if (!*suffixes->name)
|
||||
suffixes++;
|
||||
nextstate = SCAN_EXTRALNK;
|
||||
}
|
||||
return 1;
|
||||
case SCAN_HASLNK:
|
||||
nextstate = SCAN_EXTRALNK; /* Skip SCAN_BEG */
|
||||
|
Loading…
x
Reference in New Issue
Block a user