changeset 62292:3c46f9593ea1

(DIRECTORY_SEP): New macro. (IS_DIRECTORY_SEP): Use it.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Fri, 13 May 2005 08:53:17 +0000
parents 461736030d14
children f020f9769645
files lib-src/make-docfile.c
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/make-docfile.c	Fri May 13 08:51:35 2005 +0000
+++ b/lib-src/make-docfile.c	Fri May 13 08:53:17 2005 +0000
@@ -60,8 +60,16 @@
 #define READ_BINARY "r"
 #endif /* not DOS_NT */
 
+#ifndef DIRECTORY_SEP
+#ifdef MAC_OS8
+#define DIRECTORY_SEP ':'
+#else  /* not MAC_OS8 */
+#define DIRECTORY_SEP '/'
+#endif	/* not MAC_OS8 */
+#endif
+
 #ifndef IS_DIRECTORY_SEP
-#define IS_DIRECTORY_SEP(_c_) ((_c_) == '/')
+#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)
 #endif
 
 int scan_file ();