Changeset 3140 in kBuild for trunk/src/kmk/w32/pathstuff.c
- Timestamp:
- Mar 14, 2018 9:28:10 PM (7 years ago)
- Location:
- trunk/src/kmk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
w32/pathstuff.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk
-
Property svn:mergeinfo
set to
/vendor/gnumake/current merged eligible
-
Property svn:mergeinfo
set to
-
trunk/src/kmk/w32/pathstuff.c
r3060 r3140 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> … … 32 31 char *etok; /* token separator for old Path */ 33 32 34 /*35 * Convert all spaces to delimiters. Note that pathnames which36 * contain blanks get trounced here. Use 8.3 format as a workaround.37 */38 for (etok = Path; etok && *etok; etok++)39 if (isblank((unsigned char) *etok))40 *etok = to_delim;41 42 return (convert_Path_to_windows32(Path, to_delim));33 /* 34 * Convert all spaces to delimiters. Note that pathnames which 35 * contain blanks get trounced here. Use 8.3 format as a workaround. 36 */ 37 for (etok = Path; etok && *etok; etok++) 38 if (ISBLANK ((unsigned char) *etok)) 39 *etok = to_delim; 40 41 return (convert_Path_to_windows32(Path, to_delim)); 43 42 } 44 43 … … 84 83 *etok = to_delim; 85 84 p = ++etok; 86 } else85 } else 87 86 p += strlen(p); 88 87 } else { … … 128 127 getcwd_fs(char* buf, int len) 129 128 { 130 char *p = getcwd(buf, len);131 132 if (p) {133 char *q = w32ify(buf, 0);134 #if 1 /* bird */129 char *p = getcwd(buf, len); 130 131 if (p) { 132 char *q = w32ify(buf, 0); 133 #if 1 /* bird - UPSTREAM? */ 135 134 buf[0] = '\0'; 136 135 strncat(buf, q, len); 137 136 #else /* !bird */ 138 strncpy(buf, q, len);139 #endif /* !bird */140 }141 142 return p;137 strncpy(buf, q, len); 138 #endif 139 } 140 141 return p; 143 142 } 144 143
Note:
See TracChangeset
for help on using the changeset viewer.

