aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2001-06-04 07:45:08 +0000
committerEli Zaretskii <eliz@gnu.org>2001-06-04 07:45:08 +0000
commitfe4e3eb861f34aedece88a642124ef1b0601cf4d (patch)
tree4f338782875e8c0036cecbbc6a96d4aa5b89639e /gdb/defs.h
parent37ba1196cfa445fc376f312d4152486692ce50b1 (diff)
downloadgdb-fe4e3eb861f34aedece88a642124ef1b0601cf4d.zip
gdb-fe4e3eb861f34aedece88a642124ef1b0601cf4d.tar.gz
gdb-fe4e3eb861f34aedece88a642124ef1b0601cf4d.tar.bz2
* source.c (mod_path, openp): Use HAVE_DOS_BASED_FILE_SYSTEM
instead of system-specific define's like _WIN32 and __MSDOS__. Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH instead of SLASH_P and ROOTED_P. (top-level): #include "filenames.h". * solib.c (solib_open): Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH instead of SLASH_CHAR, ROOTED_P and SLASH_P. (top-level): #include "filenames.h". * defs.h (SLASH_P, SLASH_CHAR, ROOTED_P): Remove definitions. (SLASH_STRING): Define only for _WIN32. * completer.c: Use HAVE_DOS_BASED_FILE_SYSTEM instead of __MSDOS_. * cli/cli-cmds.c (cd_command): Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH instead of SLASH_P and ROOTED_P. Replace system-specific ifdefs with HAVE_DOS_BASED_FILE_SYSTEM. (top-level): #include "filenames.h".
Diffstat (limited to 'gdb/defs.h')
-rw-r--r--gdb/defs.h22
1 files changed, 1 insertions, 21 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index 435e47b..9c33c53 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -1364,34 +1364,14 @@ extern int use_windows;
#define DIRNAME_SEPARATOR ':'
#endif
-#ifndef SLASH_P
-#if defined(__GO32__)||defined(_WIN32)
-#define SLASH_P(X) ((X)=='\\')
-#else
-#define SLASH_P(X) ((X)=='/')
-#endif
-#endif
-
-#ifndef SLASH_CHAR
-#if defined(__GO32__)||defined(_WIN32)
-#define SLASH_CHAR '\\'
-#else
-#define SLASH_CHAR '/'
-#endif
-#endif
-
#ifndef SLASH_STRING
-#if defined(__GO32__)||defined(_WIN32)
+#ifdef _WIN32
#define SLASH_STRING "\\"
#else
#define SLASH_STRING "/"
#endif
#endif
-#ifndef ROOTED_P
-#define ROOTED_P(X) (SLASH_P((X)[0]))
-#endif
-
/* Provide default definitions of PIDGET, TIDGET, and MERGEPID.
The name ``TIDGET'' is a historical accident. Many uses of TIDGET
in the code actually refer to a lightweight process id, i.e,