]> git.eshelyaron.com Git - emacs.git/commitdiff
(DEVICE_SEP, DIRECTORY_SEP, IS_DEVICE_SEP)
authorRichard M. Stallman <rms@gnu.org>
Tue, 1 Nov 1994 08:47:47 +0000 (08:47 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 1 Nov 1994 08:47:47 +0000 (08:47 +0000)
(IS_DIRECTORY_SEP, IS_ANY_SEP): New macros, defined if not already def.

src/lisp.h

index e5b0c367ee2fd8cc143e308d74cc6d5a38174edb..02af5881ff9ca01ebcd7dcd9bd1819b3b5c3c762 100644 (file)
@@ -1493,3 +1493,27 @@ extern char *egetenv ();
  
 /* Set up the name of the machine we're running on.  */
 extern void init_system_name ();
+
+/* Some systems (e.g., NT) use a different path separator than Unix,
+   in addition to a device separator.  Default the path separator
+   to '/', and don't test for a device separator in IS_ANY_SEP.  */
+
+#ifndef DIRECTORY_SEP
+#define DIRECTORY_SEP '/'
+#endif
+#ifndef DEVICE_SEP
+#define DEVICE_SEP ':'
+#endif
+#ifndef IS_DIRECTORY_SEP
+#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)
+#endif
+#ifndef IS_DEVICE_SEP
+#ifndef DEVICE_SEP
+#define IS_DEVICE_SEP(_c_) 0
+#else
+#define IS_DEVICE_SEP(_c_) ((_c_) == DEVICE_SEP)
+#endif
+#endif
+#ifndef IS_ANY_SEP
+#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))
+#endif