tidy up patten match copying code
authorDavid Mitchell <davem@iabyn.com>
Sat, 1 Sep 2012 10:23:58 +0000 (11:23 +0100)
committerDavid Mitchell <davem@iabyn.com>
Sat, 8 Sep 2012 14:42:07 +0000 (15:42 +0100)
commitfbfb1899dd79253696b441cc1c4968a1057c2574
tree18d46c1a1e09a03ef638b31bff844f3004fca005
parenta41aa44d9dc4a3ba586d871754bd11137bdc37a2
tidy up patten match copying code

(no functional changes).

1. Remove some dead code from pp_split; it's protected by an assert
that it could never be called.

2. Simplify the flags settings for the call to CALLREGEXEC() in
pp_substcont: on subsequent matches we always set REXEC_NOT_FIRST,
which forces the regex engine not to copy anyway, so passing the
REXEC_COPY_STR is pointless, as is the conditional code to set it.

3. (whitespace change): split a conditional expression over 2 lines
for easier reading.
pp.c
pp_ctl.c
pp_hot.c