summaryrefslogtreecommitdiffstats
path: root/dln.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-04 13:33:22 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-04 13:33:22 +0000
commitaa3c168b9f3da0cfaa8f4232dd0c438369a5bb97 (patch)
tree2fbb8acf1956241840fa109273e1226f4bb2ea36 /dln.c
parent63e9859dade6d680565149fd02eff3fdcb048334 (diff)
downloadruby-aa3c168b9f3da0cfaa8f4232dd0c438369a5bb97.tar.gz
ruby-aa3c168b9f3da0cfaa8f4232dd0c438369a5bb97.tar.xz
ruby-aa3c168b9f3da0cfaa8f4232dd0c438369a5bb97.zip
* dln.c: Ruby no longer supports MS-DOS.
* ext/sdbm/_sdbm.c: ditto. * ext/sdbm/sdbm.h: ditto. * gc.c: ditto. * hash.c: ditto. * include/ruby/defines.h: ditto. * include/ruby/util.h: ditto. * io.c: ditto. * process.c: ditto. * ruby.c: ditto. * strftime.c: ditto. * util.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dln.c')
-rw-r--r--dln.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/dln.c b/dln.c
index 8896d5f6b..4be1e006f 100644
--- a/dln.c
+++ b/dln.c
@@ -1581,7 +1581,7 @@ dln_find_exe_r(const char *fname, const char *path, char *buf, int size)
}
if (!path) {
-#if defined(MSDOS) || defined(_WIN32) || defined(__MACOS__)
+#if defined(_WIN32) || defined(__MACOS__)
path = "/usr/local/bin;/usr/ucb;/usr/bin;/bin;.";
#else
path = "/usr/local/bin:/usr/ucb:/usr/bin:/bin:.";
@@ -1713,9 +1713,7 @@ dln_find_1(const char *fname, const char *path, char *fbuf, int size,
#if defined(DOSISH)
if (exe_flag) {
static const char extension[][5] = {
-#if defined(MSDOS)
- ".com", ".exe", ".bat",
-#elif defined(__EMX__) || defined(_WIN32)
+#if defined(__EMX__) || defined(_WIN32)
".exe", ".com", ".cmd", ".bat",
/* end of __EMX__ or _WIN32 */
#endif
@@ -1741,7 +1739,7 @@ dln_find_1(const char *fname, const char *path, char *fbuf, int size,
}
goto next;
}
-#endif /* MSDOS or _WIN32 or __EMX__ */
+#endif /* _WIN32 or __EMX__ */
#ifndef __MACOS__
if (stat(fbuf, &st) == 0) {