diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2010-01-18 16:26:24 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2010-01-18 16:26:24 -0800 |
commit | eb533d54bf1dd5e0c88b4b1ebf262349e368cfd1 (patch) | |
tree | c87fb4ad1126755920c1e9214839f64cf9fdde17 /configure | |
parent | 8ad6bb9114f0f8ce2d86e4290f8ac86ed108dc16 (diff) | |
download | txr-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