Changeset 3138 in kBuild for vendor/gnumake/current/w32/pathstuff.c
- Timestamp:
- Mar 12, 2018 7:32:29 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/gnumake/current/w32/pathstuff.c
r2596 r3138 1 1 /* Path conversion for Windows pathnames. 2 Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 3 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 2 Copyright (C) 1996-2016 Free Software Foundation, Inc. 4 3 This file is part of GNU Make. 5 4 … … 16 15 this program. If not, see <http://www.gnu.org/licenses/>. */ 17 16 18 #include "make .h"17 #include "makeint.h" 19 18 #include <string.h> 20 19 #include <stdlib.h> … … 29 28 char *etok; /* token separator for old Path */ 30 29 31 32 33 34 35 36 if (isblank((unsigned char) *etok))37 38 39 30 /* 31 * Convert all spaces to delimiters. Note that pathnames which 32 * contain blanks get trounced here. Use 8.3 format as a workaround. 33 */ 34 for (etok = Path; etok && *etok; etok++) 35 if (ISBLANK ((unsigned char) *etok)) 36 *etok = to_delim; 37 38 return (convert_Path_to_windows32(Path, to_delim)); 40 39 } 41 40 … … 81 80 *etok = to_delim; 82 81 p = ++etok; 83 82 } else 84 83 p += strlen(p); 85 84 } else { … … 116 115 getcwd_fs(char* buf, int len) 117 116 { 118 119 120 121 122 123 124 125 117 char *p = getcwd(buf, len); 118 119 if (p) { 120 char *q = w32ify(buf, 0); 121 strncpy(buf, q, len); 122 } 123 124 return p; 126 125 } 127 126
Note:
See TracChangeset
for help on using the changeset viewer.