microperl: if DIEing on no-functionality, the has-functionality
Jarkko Hietaniemi [Tue, 21 May 2002 14:54:24 +0000 (14:54 +0000)]
would be unreachable code.

p4raw-id: //depot/perl@16723

pp.c
pp_sys.c

diff --git a/pp.c b/pp.c
index 7ff5138..531516b 100644 (file)
--- a/pp.c
+++ b/pp.c
@@ -3305,12 +3305,12 @@ PP(pp_crypt)
 #   else
     sv_setpv(TARG, PerlProc_crypt(tmps, SvPV(right, n_a)));
 #   endif
+    SETs(TARG);
+    RETURN;
 #else
     DIE(aTHX_
       "The crypt() function is unimplemented due to excessive paranoia.");
 #endif
-    SETs(TARG);
-    RETURN;
 }
 
 PP(pp_ucfirst)
index 5ff5c92..880c327 100644 (file)
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -2182,9 +2182,6 @@ PP(pp_ioctl)
 #else
        retval = fcntl(PerlIO_fileno(IoIFP(io)), func, s);
 #endif
-#else
-       DIE(aTHX_ "fcntl is not implemented");
-#endif
 
     if (SvPOK(argsv)) {
        if (s[SvCUR(argsv)] != 17)
@@ -2203,6 +2200,10 @@ PP(pp_ioctl)
        PUSHp(zero_but_true, ZBTLEN);
     }
     RETURN;
+
+#else
+    DIE(aTHX_ "fcntl is not implemented");
+#endif
 }
 
 PP(pp_flock)