VirtualBox

Changeset 363 in kBuild


Ignore:
Timestamp:
Dec 13, 2005 7:16:26 AM (19 years ago)
Author:
bird
Message:

drive letter and unc for windows and OS/2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/kmkbuiltin/mkdir.c

    r361 r363  
    216216        oumask = 0;
    217217        retval = 0;
     218#if defined(_MSC_VER) || defined(__EMX__)
     219        if (    (    (p[0] >= 'A' && p[0] <= 'Z')
     220                 ||  (p[0] >= 'a' && p[0] <= 'z'))
     221            && p[1] == ':')
     222            p += 2;
     223        else if (   (p[0] == '/' || p[0] == '\\')
     224                 && (p[1] == '/' || p[1] == '\\')
     225                 && (p[2] != '/' && p[2] != '\\'))
     226        {
     227            char *p2;
     228            p += 2;
     229            p2 = strpbrk(p, "\\/");
     230            if (p2)
     231                p = p2 + 1;
     232        }
     233#endif
    218234        if (p[0] == '/')                /* Skip leading '/'. */
    219235                ++p;
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