From 8dd118c0db80af4ff213265a2b2b475c73bb440a Mon Sep 17 00:00:00 2001 From: yugui Date: Sat, 4 Oct 2008 13:25:12 +0000 Subject: * djgpp/GNUmakefile.in: removed. Ruby no longer supports djgpp. * djgpp/README.djgpp: ditto. * djgpp/config.hin: ditto. * djgpp/config.sed: ditto. * djgpp/configure.bat: ditto. * djgpp/mkver.sed: ditto. * ext/Setup.dj: ditto. * dln.c: removed djgpp supports. * file.c: ditto. * gc.c: ditto. * io.c: ditto. * process.c: ditto. * ruby.c: ditto. * signal.c: ditto. * util.c: ditto. * vm_core.h: ditto. * lib/fileutils.rb: ditto. * lib/mkmf.rb: ditto. * ext/socket/socket.c: ditto. * test/fileutils/test_fileutils.rb: ditto. * test/ruby/test_env.rb: ditto. * test/ruby/test_path.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- process.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'process.c') diff --git a/process.c b/process.c index b0c3250b6a..c2dfb61c37 100644 --- a/process.c +++ b/process.c @@ -28,9 +28,6 @@ #ifdef HAVE_FCNTL_H #include #endif -#ifdef __DJGPP__ -#include -#endif #include #include @@ -1004,12 +1001,12 @@ proc_exec_v(char **argv, const char *prog) return -1; } -#if (defined(MSDOS) && !defined(DJGPP)) || defined(__EMX__) || defined(OS2) +#if defined(MSDOS) || defined(__EMX__) || defined(OS2) { #if defined(__EMX__) || defined(OS2) /* OS/2 emx */ #define COMMAND "cmd.exe" #endif -#if (defined(MSDOS) && !defined(DJGPP)) +#if defined(MSDOS) #define COMMAND "command.com" #endif char *extension; @@ -2667,11 +2664,7 @@ rb_spawn_internal(int argc, VALUE *argv, int default_close_others) # else if (argc) prog = rb_ary_join(rb_ary_new4(argc, argv), rb_str_new2(" ")); status = system(StringValuePtr(prog)); -# if defined(__DJGPP__) - rb_last_status_set(status == -1 ? 127 : status, 0); -# else rb_last_status_set((status & 0xff) << 8, 0); -# endif # endif rb_run_exec_options(&sarg, NULL); -- cgit v1.2.3