summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authormichal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-08-28 08:05:23 +0000
committermichal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-08-28 08:05:23 +0000
commit0d0ae37e508788ea52e2e2cf477877ee58fa79dd (patch)
tree300e3a58cac901929c00518abaf11d7d3caaeb50 /process.c
parent3685a85b3d60bb6bdee18b3634ec8e264d8031c5 (diff)
Int vs Long cleanup #3 (ruby-core:352)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/process.c b/process.c
index 7385ec9..9d98bc5 100644
--- a/process.c
+++ b/process.c
@@ -831,8 +831,7 @@ rb_f_system(argc, argv)
if (status == 0) return Qtrue;
return Qfalse;
-#else
-#ifdef DJGPP
+#elif defined(DJGPP)
VALUE cmd;
int status;
@@ -855,10 +854,8 @@ rb_f_system(argc, argv)
if (status == 0) return Qtrue;
return Qfalse;
-#else
-#if defined(__human68k__)
+#elif defined(__human68k__)
VALUE prog = 0;
- int i;
int status;
fflush(stdin);
@@ -885,8 +882,7 @@ rb_f_system(argc, argv)
}
last_status_set(status == -1 ? 127 : status);
return status == 0 ? Qtrue : Qfalse;
-#else
-#if defined(__VMS)
+#elif defined(__VMS)
VALUE cmd;
int status;
@@ -962,10 +958,7 @@ rb_f_system(argc, argv)
if (NUM2INT(rb_last_status) == 0)
return Qtrue;
return Qfalse;
-#endif /* __VMS */
-#endif /* __human68k__ */
-#endif /* DJGPP */
-#endif /* NT */
+#endif
}
static VALUE