From: Jarkko Hietaniemi Date: Tue, 21 May 2002 14:54:24 +0000 (+0000) Subject: microperl: if DIEing on no-functionality, the has-functionality X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4808266b7a2aefa68f681e0378316e43728b49d8;p=p5sagit%2Fp5-mst-13.2.git microperl: if DIEing on no-functionality, the has-functionality would be unreachable code. p4raw-id: //depot/perl@16723 --- diff --git a/pp.c b/pp.c index 7ff5138..531516b 100644 --- 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) diff --git a/pp_sys.c b/pp_sys.c index 5ff5c92..880c327 100644 --- 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)