Changeset 3256
- Timestamp:
- May 1, 2007, 3:08:53 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/essentials/app-shells/bash/general.h
r3231 r3256 248 248 x == string, c == character */ 249 249 250 #if !defined (__CYGWIN__) 250 #if !defined (__CYGWIN__) && !defined (__OS2__) 251 251 # define ABSPATH(x) ((x)[0] == '/') 252 252 # define RELPATH(x) ((x)[0] != '/') 253 #else /* __CYGWIN__ */253 #else /* __CYGWIN__ || __OS2__ */ 254 254 # define ABSPATH(x) (((x)[0] && ISALPHA((unsigned char)(x)[0]) && (x)[1] == ':') || ISDIRSEP((x)[0])) 255 255 # define RELPATH(x) (ABSPATH(x) == 0) 256 #endif /* __CYGWIN__ */256 #endif /* __CYGWIN__ || __OS2__ */ 257 257 258 258 #define ROOTEDPATH(x) (ABSPATH(x)) 259 259 260 260 #define DIRSEP '/' 261 #if !defined (__CYGWIN__) 261 #if !defined (__CYGWIN__) && !defined (__OS2__) 262 262 # define ISDIRSEP(c) ((c) == '/') 263 263 #else 264 264 # define ISDIRSEP(c) ((c) == '/' || (c) == '\\') 265 #endif /* __CYGWIN__ */265 #endif /* __CYGWIN__ || __OS2__ */ 266 266 #define PATHSEP(c) (ISDIRSEP(c) || (c) == 0) 267 267
Note:
See TracChangeset
for help on using the changeset viewer.