diff options
author | Karl Williamson <khw@cpan.org> | 2015-09-03 10:27:39 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2015-09-03 16:38:58 -0600 |
commit | c10713345de01e923289c756b4a97e41147dac26 (patch) | |
tree | 4e33488b37b46384cfb5db4311e39770c4a94562 /regcomp.h | |
parent | d9f326ede1e1ef81c3259b08db1604d7191d3466 (diff) | |
download | perl-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |