VirtualBox

Ignore:
Timestamp:
Mar 12, 2018 7:32:29 PM (7 years ago)
Author:
bird
Message:

Imported make 4.2.1 (2e55f5e4abdc0e38c1d64be703b446695e70b3b6) from https://git.savannah.gnu.org/git/make.git.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/gnumake/current/w32/pathstuff.c

    r2596 r3138  
    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>
     
    2928    char *etok;            /* token separator for old Path */
    3029
    31         /*
    32         * Convert all spaces to delimiters. Note that pathnames which
    33         * contain blanks get trounced here. Use 8.3 format as a workaround.
    34         */
    35         for (etok = Path; etok && *etok; etok++)
    36                 if (isblank ((unsigned char) *etok))
    37                         *etok = to_delim;
    38 
    39         return (convert_Path_to_windows32(Path, to_delim));
     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));
    4039}
    4140
     
    8180                *etok = to_delim;
    8281                p = ++etok;
    83             } else
     82            } else
    8483                p += strlen(p);
    8584        } else {
     
    116115getcwd_fs(char* buf, int len)
    117116{
    118         char *p = getcwd(buf, len);
    119 
    120         if (p) {
    121                 char *q = w32ify(buf, 0);
    122                 strncpy(buf, q, len);
    123         }
    124 
    125         return p;
     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;
    126125}
    127126
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