summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2010-01-18 16:26:24 -0800
committerKaz Kylheku <kaz@kylheku.com>2010-01-18 16:26:24 -0800
commiteb533d54bf1dd5e0c88b4b1ebf262349e368cfd1 (patch)
treec87fb4ad1126755920c1e9214839f64cf9fdde17 /configure
parent8ad6bb9114f0f8ce2d86e4290f8ac86ed108dc16 (diff)
downloadtxr-eb533d54bf1dd5e0c88b4b1ebf262349e368cfd1.tar.gz
txr-eb533d54bf1dd5e0c88b4b1ebf262349e368cfd1.tar.bz2
txr-eb533d54bf1dd5e0c88b4b1ebf262349e368cfd1.zip
* regex.c (reg_derivative_list, reg_derivative): Recognition
of cases to reduce consing. In reg_derivative_list, we avoid consing the full or expression if either branch is t, and also save a cons when the first element has a null derivative. In reg_derivative the oneplus and zeroplus cases are split, since zeroplus can re-use the input expression, when it's just a one-character match, deriving nil.
Diffstat (limited to 'configure')
0 files changed, 0 insertions, 0 deletions