summaryrefslogtreecommitdiff
path: root/regexp.h
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 /regexp.h
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 'regexp.h')
-rw-r--r--regexp.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/regexp.h b/regexp.h
index 8256c8deeb..5422bd1552 100644
--- a/regexp.h
+++ b/regexp.h
@@ -829,13 +829,6 @@ typedef struct regmatch_slab {
} regmatch_slab;
-struct re_save_state {
- /* temporarily give the struct a member till we delete the whole thing */
- int dummy;
-};
-
-#define SAVESTACK_ALLOC_FOR_RE_SAVE_STATE \
- (1 + ((sizeof(struct re_save_state) - 1) / sizeof(*PL_savestack)))
/*
* Local variables: