Changeset 2596 for vendor/gnumake/current/w32/pathstuff.c
- Timestamp:
- Jun 20, 2012, 12:44:52 AM (13 years ago)
- Location:
- vendor/gnumake/current
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/gnumake/current
- Property svn:ignore deleted
-
vendor/gnumake/current/w32/pathstuff.c
r1989 r2596 1 1 /* Path conversion for Windows pathnames. 2 2 Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 3 2007 Free Software Foundation, Inc.3 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 4 4 This file is part of GNU Make. 5 5 … … 16 16 this program. If not, see <http://www.gnu.org/licenses/>. */ 17 17 18 #include "make.h" 18 19 #include <string.h> 19 20 #include <stdlib.h> 20 #include "make.h"21 21 #include "pathstuff.h" 22 22 … … 50 50 51 51 /* is this a multi-element Path ? */ 52 /* FIXME: Perhaps use ":;\"" in strpbrk to convert all quotes to 53 delimiters as well, as a way to handle quoted directories in 54 PATH? */ 52 55 for (p = Path, etok = strpbrk(p, ":;"); 53 56 etok; … … 75 78 ; 76 79 etok = strpbrk(p, ":;"); /* find next delimiter */ 77 *etok = to_delim; 78 p = ++etok; 80 if (etok) { 81 *etok = to_delim; 82 p = ++etok; 83 } else 84 p += strlen(p); 79 85 } else { 80 86 /* found another one, no drive letter */
Note:
See TracChangeset
for help on using the changeset viewer.