summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/winsup.h
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-01-09 08:22:05 +0000
committerChristopher Faylor <me@cgf.cx>2003-01-09 08:22:05 +0000
commit85ba109de7c313449a8d4cd8bcc7b0606d0f15ec (patch)
treeee0dac5c3f1406d3c39f6ef39148dc40dae2698f /winsup/cygwin/winsup.h
parent9f05d3a44a4f7c12a832b972fad9c4f0cc693421 (diff)
downloadcygnal-85ba109de7c313449a8d4cd8bcc7b0606d0f15ec.tar.gz
cygnal-85ba109de7c313449a8d4cd8bcc7b0606d0f15ec.tar.bz2
cygnal-85ba109de7c313449a8d4cd8bcc7b0606d0f15ec.zip
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.
Diffstat (limited to 'winsup/cygwin/winsup.h')
-rw-r--r--winsup/cygwin/winsup.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/winsup.h b/winsup/cygwin/winsup.h
index e46c0721a..2f6e4966e 100644
--- a/winsup/cygwin/winsup.h
+++ b/winsup/cygwin/winsup.h
@@ -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]))))