aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-11-01 08:47:47 +0000
committerRichard M. Stallman1994-11-01 08:47:47 +0000
commit881a5a809352cf0f848255cb96dce37ad7d0223b (patch)
tree252df6be65aa0ee96c86bd84beaa4d0a3dfc2106 /src
parentfcc182b34b7a0ecf7a1bfc26d310c12b4b6c3cda (diff)
downloademacs-881a5a809352cf0f848255cb96dce37ad7d0223b.tar.gz
emacs-881a5a809352cf0f848255cb96dce37ad7d0223b.zip
(DEVICE_SEP, DIRECTORY_SEP, IS_DEVICE_SEP)
(IS_DIRECTORY_SEP, IS_ANY_SEP): New macros, defined if not already def.
Diffstat (limited to 'src')
-rw-r--r--src/lisp.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/lisp.h b/src/lisp.h
index e5b0c367ee2..02af5881ff9 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -1493,3 +1493,27 @@ extern char *egetenv ();
1493 1493
1494/* Set up the name of the machine we're running on. */ 1494/* Set up the name of the machine we're running on. */
1495extern void init_system_name (); 1495extern void init_system_name ();
1496
1497/* Some systems (e.g., NT) use a different path separator than Unix,
1498 in addition to a device separator. Default the path separator
1499 to '/', and don't test for a device separator in IS_ANY_SEP. */
1500
1501#ifndef DIRECTORY_SEP
1502#define DIRECTORY_SEP '/'
1503#endif
1504#ifndef DEVICE_SEP
1505#define DEVICE_SEP ':'
1506#endif
1507#ifndef IS_DIRECTORY_SEP
1508#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)
1509#endif
1510#ifndef IS_DEVICE_SEP
1511#ifndef DEVICE_SEP
1512#define IS_DEVICE_SEP(_c_) 0
1513#else
1514#define IS_DEVICE_SEP(_c_) ((_c_) == DEVICE_SEP)
1515#endif
1516#endif
1517#ifndef IS_ANY_SEP
1518#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))
1519#endif