diff options
author | David Mitchell <davem@iabyn.com> | 2013-05-31 22:57:21 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2013-06-02 22:28:55 +0100 |
commit | f7c7e32a45f023c8046ae1bacda1a9568fcfe755 (patch) | |
tree | 045ac3144e319d9fccf37b04eac05d5e0d64873c /regcomp.h | |
parent | b3d298be91e6629f3ce52b46c746fbe982114323 (diff) | |
download | perl-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |