optimize double anchors such as ^$
authorPaolo Bonzini <bonzini@gnu.org>
Thu, 15 May 2008 06:50:06 +0000 (08:50 +0200)
committerPaolo Bonzini <bonzini@gnu.org>
Thu, 15 May 2008 06:54:22 +0000 (08:54 +0200)
commit1f191226cb1994d17429ac7dd9e9e1979e705efb
treed7a24e2d0554d207b688ebed75d0456933d24c84
parentf64a5d6252a22e5ec3c050f9f49b4d591ec82e78
optimize double anchors such as ^$

2008-05-15  Paolo Bonzini  <bonzini@gnu.org>

* lib/regcomp.c (optimize_utf8): Add a note on why we test
opr.ctx_type.
(calc_first): Initialize constraint field.
(duplicate_node_closure): Use it instead of special casing ANCHORS.
Fix grammar.
(duplicate_node): Merge constraint field for all node types.
(calc_eclosure_iter): Look at constraint field for all node types.
* lib/regex_internal.c (create_cd_newstate): Don't look at
opr.ctx_type.
ChangeLog
lib/regcomp.c
lib/regex_internal.c