diff options
author | Gerard Goossen <gerard@tty.nl> | 2009-10-29 12:27:49 +0100 |
---|---|---|
committer | Rafael Garcia-Suarez <rgs@consttype.org> | 2009-11-06 14:16:27 +0100 |
commit | bb4c52e023e0fcade469e46e9a1d5245ff44f3f2 (patch) | |
tree | 70d31b8d5045c7af391d3b1a8a98054d96902263 /util.c | |
parent | 45a2d9782bd1c90e53c52dacd30d9b185db62239 (diff) | |
download | perl-bb4c52e023e0fcade469e46e9a1d5245ff44f3f2.tar.gz |
move JMPENV_JUMP to die_where and mark it as "noreturn"
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 18 |
1 files changed, 3 insertions, 15 deletions
@@ -1364,8 +1364,7 @@ S_vdie(pTHX_ const char* pat, va_list *args) message = vdie_croak_common(pat, args); - PL_restartop = die_where(message); - JMPENV_JUMP(3); + die_where(message); /* NOTREACHED */ return NULL; } @@ -1403,13 +1402,7 @@ Perl_vcroak(pTHX_ const char* pat, va_list *args) msv = S_vdie_croak_common(aTHX_ pat, args); - if (PL_in_eval) { - PL_restartop = die_where(msv); - JMPENV_JUMP(3); - } - - write_to_stderr( msv ? msv : ERRSV ); - my_failure_exit(); + die_where(msv); } #if defined(PERL_IMPLICIT_CONTEXT) @@ -1564,12 +1557,7 @@ Perl_vwarner(pTHX_ U32 err, const char* pat, va_list* args) assert(msv); S_vdie_common(aTHX_ msv, FALSE); } - if (PL_in_eval) { - PL_restartop = die_where(msv); - JMPENV_JUMP(3); - } - write_to_stderr(msv); - my_failure_exit(); + die_where(msv); } else { Perl_vwarn(aTHX_ pat, args); |