Ignore:
Timestamp:
Mar 14, 2018, 10:28:10 PM (7 years ago)
Author:
bird
Message:

kmk: Merged in changes from GNU make 4.2.1 (2e55f5e4abdc0e38c1d64be703b446695e70b3b6 / https://git.savannah.gnu.org/git/make.git).

Location:
trunk/src/kmk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk

  • trunk/src/kmk/w32/pathstuff.c

    r3060 r3140  
    11/* 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.
     2Copyright (C) 1996-2016 Free Software Foundation, Inc.
    43This file is part of GNU Make.
    54
     
    1615this program.  If not, see <http://www.gnu.org/licenses/>.  */
    1716
    18 #include "make.h"
     17#include "makeint.h"
    1918#include <string.h>
    2019#include <stdlib.h>
     
    3231    char *etok;            /* token separator for old Path */
    3332
    34         /*
    35         * Convert all spaces to delimiters. Note that pathnames which
    36         * 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));
    4342}
    4443
     
    8483                *etok = to_delim;
    8584                p = ++etok;
    86             } else
     85            } else
    8786                p += strlen(p);
    8887        } else {
     
    128127getcwd_fs(char* buf, int len)
    129128{
    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? */
    135134                buf[0] = '\0';
    136135                strncat(buf, q, len);
    137136#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;
    143142}
    144143
Note: See TracChangeset for help on using the changeset viewer.