Use isdirsep rather than SLASH_P throughout.
* path.cc (iscygdrive): Disallow /cygdrive\x. (normalize_posix_path): "Normalize" a windows path, if detected, rather than converting to posix. * fhandler_serial.cc (fhandler_serial::tcsetattr): Add support and capability checking for B230400 bitrate. (fhandler_serial::tcgetattr): Add support for B230400 bitrate. * include/sys/termios.h: Add B230400 definition for Posix support of 230.4Kbps.
This commit is contained in:
@@ -105,7 +105,7 @@ extern HANDLE title_mutex;
|
||||
/**************************** Convenience ******************************/
|
||||
|
||||
/* Used when treating / and \ as equivalent. */
|
||||
#define SLASH_P(ch) \
|
||||
#define isdirsep(ch) \
|
||||
({ \
|
||||
char __c = (ch); \
|
||||
((__c) == '/' || (__c) == '\\'); \
|
||||
@@ -124,7 +124,6 @@ extern unsigned int signal_shift_subtract;
|
||||
#undef issep
|
||||
#define issep(ch) (strchr (" \t\n\r", (ch)) != NULL)
|
||||
|
||||
#define isdirsep SLASH_P
|
||||
#define isabspath(p) \
|
||||
(isdirsep (*(p)) || (isalpha (*(p)) && (p)[1] == ':' && (!(p)[2] || isdirsep ((p)[2]))))
|
||||
|
||||
|
Reference in New Issue
Block a user