move eval_state init from regtry() to regexec()
authorDavid Mitchell <davem@iabyn.com>
Thu, 30 May 2013 10:46:02 +0000 (11:46 +0100)
committerDavid Mitchell <davem@iabyn.com>
Sun, 2 Jun 2013 21:28:53 +0000 (22:28 +0100)
commitd3aa529cd2d266e88a576f1de24da5ec842089e5
tree8bbb5debad5b8ce84ac90e69b663579d94020f91
parent006f26b2c7df5d8e6c003103a804a62c71f61625
move eval_state init from regtry() to regexec()

regexec() calls regtry() for each match start position until a match is
found. regtry() has some code that says: "if this regex contains (?{})'s,
and if we haven't done so already, set up the extra state needed".

Move the setup one level higher, into regexec(). Here, we just do it once,
and don't have to keep checking whether we've already done it.

This is part of an effort to consolidate all regex state initialisation
into one place.
regexec.c