Changeset 2463 for trunk/ash/cd.h


Ignore:
Timestamp:
Nov 19, 2005, 4:58:38 PM (20 years ago)
Author:
bird
Message:

OS/2 changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ash/cd.h

    r2462 r2463  
    3434int     cdcmd(int, char **);
    3535int     pwdcmd(int, char **);
     36#ifdef PC_DRIVE_LETTERS
     37#define IS_ROOT(path) (   *(path) == '/' \
     38                       || *(path) == '\\' \
     39                       ||  ( ((*(path) >= 'A' && *(path) <= 'Z') || (*(path) >= 'a' && *(path) <= 'z')) \
     40                             && (path)[1] == ':') )
     41#else
     42#define IS_ROOT(path) ( *(path) == '/' )
     43#endif
Note: See TracChangeset for help on using the changeset viewer.