summaryrefslogtreecommitdiff
path: root/regcomp.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2015-09-03 10:27:39 -0600
committerKarl Williamson <khw@cpan.org>2015-09-03 16:38:58 -0600
commitc10713345de01e923289c756b4a97e41147dac26 (patch)
tree4e33488b37b46384cfb5db4311e39770c4a94562 /regcomp.h
parentd9f326ede1e1ef81c3259b08db1604d7191d3466 (diff)
downloadperl-c10713345de01e923289c756b4a97e41147dac26.tar.gz
regcomp.h: SSC no longer has to be strict ANYOF
Since commit a0bd1a30d379f2625c307657d63fc50173d7a56d, a synthetic start class node can be just an ANYOF-type node. I don't think this causes a bug, just misses a potential optimisation.
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 0f2617b022..f338b35967 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -261,7 +261,7 @@ struct regnode_ssc {
#define set_ANYOF_SYNTHETIC(n) STMT_START{ OP(n) = ANYOF; \
NEXT_OFF(n) = 1; \
} STMT_END
-#define is_ANYOF_SYNTHETIC(n) (OP(n) == ANYOF && NEXT_OFF(n) == 1)
+#define is_ANYOF_SYNTHETIC(n) (PL_regkind[OP(n)] == ANYOF && NEXT_OFF(n) == 1)
/* XXX fix this description.
Impose a limit of REG_INFTY on various pattern matching operations