summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2013-05-31 22:35:40 +0100
committerDavid Mitchell <davem@iabyn.com>2013-06-02 22:28:55 +0100
commitb3d298be91e6629f3ce52b46c746fbe982114323 (patch)
treeb5f058b39b0863258642a39b7640c007fb43bec3 /scope.c
parent6d59b6464a160af2e5775a8f6abef1dcad33d7f1 (diff)
downloadperl-b3d298be91e6629f3ce52b46c746fbe982114323.tar.gz
eliminate PL_reg_state
This is a struct that holds all the global state of the current regex match. The previous set of commits have gradually removed all the fields of this struct (by making things local rather than global state). Since the struct is now empty, the PL_reg_state var can be removed, along with the SAVEt_RE_STATE save type which was used to save and restore those fields on recursive re-entry to the regex engine.
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/scope.c b/scope.c
index 2d3810fb8d..d2ae04a650 100644
--- a/scope.c
+++ b/scope.c
@@ -1225,17 +1225,6 @@ Perl_leave_scope(pTHX_ I32 base)
PL_compiling.cop_warnings = (STRLEN*)ARG0_PTR;
break;
- case SAVEt_RE_STATE:
- {
- const struct re_save_state *const state
- = (struct re_save_state *)
- (PL_savestack + PL_savestack_ix
- - SAVESTACK_ALLOC_FOR_RE_SAVE_STATE);
- PL_savestack_ix -= SAVESTACK_ALLOC_FOR_RE_SAVE_STATE;
-
- Copy(state, &PL_reg_state, 1, struct re_save_state);
- }
- break;
case SAVEt_PARSER:
parser_free((yy_parser *) ARG0_PTR);
break;