summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2021-01-23 02:32:31 +0000
committerPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2021-02-04 14:09:11 +0000
commit99dbf64538ee1c097b9f7e93df5a45dbf1fa3e22 (patch)
treebf7b524ce01afd970144e9e66d25bd878633d2c5 /pp_ctl.c
parentbe319be3519a71b4f83463937d76d7e2ce14e7fe (diff)
downloadperl-99dbf64538ee1c097b9f7e93df5a45dbf1fa3e22.tar.gz
Rename CxTRYBLOCK() to CxEVALBLOCK()
CxTRYBLOCK would be confusing when we add a real CxTRY for try/catch Also renames the associated CXp_TRYBLOCK flag to CXp_EVALBLOCK
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 654ecca270..11c015e0df 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -2563,7 +2563,7 @@ PP(pp_return)
/* fall through to a normal exit */
switch (CxTYPE(cx)) {
case CXt_EVAL:
- return CxTRYBLOCK(cx)
+ return CxEVALBLOCK(cx)
? Perl_pp_leavetry(aTHX)
: Perl_pp_leaveeval(aTHX);
case CXt_SUB:
@@ -3064,7 +3064,7 @@ PP(pp_goto)
switch (CxTYPE(cx)) {
case CXt_EVAL:
leaving_eval = TRUE;
- if (!CxTRYBLOCK(cx)) {
+ if (!CxEVALBLOCK(cx)) {
gotoprobe = (last_eval_cx ?
last_eval_cx->blk_eval.old_eval_root :
PL_eval_root);
@@ -3348,7 +3348,7 @@ Perl_find_runcv_where(pTHX_ U8 cond, IV arg, U32 *db_seqp)
if (cx->cx_type & CXp_SUB_RE)
continue;
}
- else if (CxTYPE(cx) == CXt_EVAL && !CxTRYBLOCK(cx))
+ else if (CxTYPE(cx) == CXt_EVAL && !CxEVALBLOCK(cx))
cv = cx->blk_eval.cv;
if (cv) {
switch (cond) {
@@ -4615,7 +4615,7 @@ Perl_create_eval_scope(pTHX_ OP *retop, U32 flags)
PERL_CONTEXT *cx;
const U8 gimme = GIMME_V;
- cx = cx_pushblock((CXt_EVAL|CXp_TRYBLOCK), gimme,
+ cx = cx_pushblock((CXt_EVAL|CXp_EVALBLOCK), gimme,
PL_stack_sp, PL_savestack_ix);
cx_pusheval(cx, retop, NULL);