From 2a7b7c61f9476ae461c8590ca7e251e214462420 Mon Sep 17 00:00:00 2001 From: David Mitchell Date: Wed, 30 Dec 2015 14:33:51 +0000 Subject: convert CX_{PUSH|POP}{WHEN|GIVEN} to inline fns Replace CX_PUSHGIVEN() with cx_pushgiven() etc. --- cop.h | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'cop.h') diff --git a/cop.h b/cop.h index d346d87fc7..b62e84c136 100644 --- a/cop.h +++ b/cop.h @@ -707,26 +707,6 @@ struct block_givwhen { SV *defsv_save; /* the original $_ */ }; -#define CX_PUSHWHEN(cx) \ - cx->blk_givwhen.leave_op = cLOGOP->op_other; - -#define CX_PUSHGIVEN(cx, orig_var) \ - CX_PUSHWHEN(cx); \ - cx->blk_givwhen.defsv_save = orig_var; - -#define CX_POPWHEN(cx) \ - assert(CxTYPE(cx) == CXt_WHEN); \ - NOOP; - -#define CX_POPGIVEN(cx) \ - STMT_START { \ - SV *sv = GvSV(PL_defgv); \ - assert(CxTYPE(cx) == CXt_GIVEN); \ - GvSV(PL_defgv) = cx->blk_givwhen.defsv_save; \ - cx->blk_givwhen.defsv_save = NULL; \ - SvREFCNT_dec(sv); \ - } STMT_END - /* context common to subroutines, evals and loops */ -- cgit v1.2.1