summaryrefslogtreecommitdiff
path: root/regcomp.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2013-05-31 22:57:21 +0100
committerDavid Mitchell <davem@iabyn.com>2013-06-02 22:28:55 +0100
commitf7c7e32a45f023c8046ae1bacda1a9568fcfe755 (patch)
tree045ac3144e319d9fccf37b04eac05d5e0d64873c /regcomp.h
parentb3d298be91e6629f3ce52b46c746fbe982114323 (diff)
downloadperl-f7c7e32a45f023c8046ae1bacda1a9568fcfe755.tar.gz
eliminate PL_regdummy
This global (per-interpreter) var is just used during regex compilation as a placeholder to point RExC_emit at during the first (non-emitting) pass, to indicate to not to emit anything. There's no need for it to be a global var: just add it as an extra field in the RExC_state_t struct instead.
Diffstat (limited to 'regcomp.h')
-rw-r--r--regcomp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/regcomp.h b/regcomp.h
index 21d2e1e351..bf497e0eaa 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -288,7 +288,7 @@ struct regnode_charclass_class {
#define REG_MAGIC 0234
-#define SIZE_ONLY (RExC_emit == &PL_regdummy)
+#define SIZE_ONLY (RExC_emit == &RExC_emit_dummy)
/* If the bitmap doesn't fully represent what this ANYOF node can match, the
* ARG is set to this special value (since 0, 1, ... are legal, but will never