VirtualBox

Changeset 1989 in kBuild for vendor/gnumake/current/vpath.c


Ignore:
Timestamp:
Oct 28, 2008 11:02:45 PM (16 years ago)
Author:
bird
Message:

Load gnumake-2008-10-28-CVS into vendor/gnumake/current.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/gnumake/current/vpath.c

    r900 r1989  
    11/* Implementation of pattern-matching file search paths for GNU Make.
    22Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
    3 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software
     31998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software
    44Foundation, Inc.
    55This file is part of GNU Make.
     
    77GNU Make is free software; you can redistribute it and/or modify it under the
    88terms of the GNU General Public License as published by the Free Software
    9 Foundation; either version 2, or (at your option) any later version.
     9Foundation; either version 3 of the License, or (at your option) any later
     10version.
    1011
    1112GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
     
    1415
    1516You should have received a copy of the GNU General Public License along with
    16 GNU Make; see the file COPYING.  If not, write to the Free Software
    17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.  */
     17this program.  If not, see <http://www.gnu.org/licenses/>.  */
    1818
    1919#include "make.h"
     
    237237      /* Find the end of this entry.  */
    238238      v = p;
    239       while (*p != '\0' && *p != PATH_SEPARATOR_CHAR
     239      while (*p != '\0'
     240#if defined(HAVE_DOS_PATHS) && (PATH_SEPARATOR_CHAR == ':')
     241             /* Platforms whose PATH_SEPARATOR_CHAR is ':' and which
     242                also define HAVE_DOS_PATHS would like us to recognize
     243                colons after the drive letter in the likes of
     244                "D:/foo/bar:C:/xyzzy".  */
     245             && (*p != PATH_SEPARATOR_CHAR
     246                 || (p == v + 1 && (p[1] == '/' || p[1] == '\\')))
     247#else
     248             && *p != PATH_SEPARATOR_CHAR
     249#endif
    240250             && !isblank ((unsigned char)*p))
    241251        ++p;
     
    244254      /* Make sure there's no trailing slash,
    245255         but still allow "/" as a directory.  */
    246 #if defined(__MSDOS__) || defined(__EMX__)
     256#if defined(__MSDOS__) || defined(__EMX__) || defined(HAVE_DOS_PATHS)
    247257      /* We need also to leave alone a trailing slash in "d:/".  */
    248258      if (len > 3 || (len > 1 && v[1] != ':'))
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette