diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2012-02-28 23:46:53 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2012-02-28 23:46:53 -0800 |
commit | aec0b3b3645d241ea8ad1f06dd64716b7d9c3c00 (patch) | |
tree | dc438ef7b99e4cea25d8bbfa8d88cee835b1c595 /lib.c | |
parent | 0e1b6b6f1e2ea9b420e148b3faf65c34790b7bcd (diff) | |
download | txr-aec0b3b3645d241ea8ad1f06dd64716b7d9c3c00.tar.gz txr-aec0b3b3645d241ea8ad1f06dd64716b7d9c3c00.tar.bz2 txr-aec0b3b3645d241ea8ad1f06dd64716b7d9c3c00.zip |
* match.c (do_match_line): Function takes new argument, "completely".
The check for completely matching a line is now done within
do_match_line.
(match_line): Pass nil to do_match_line, specifying that a prefix
match is okay.
(match_line_completely): New interface to do_match_line, which
requests a match to the end of the line.
(v_freeform): Pass nil to do_match_line: freeform needs
incomplete match semantics.
(match_files): Use match_line_completely instead of match_line.
By doing it this way, we do not need to compute the length of
the original line and compare it to the absolute position.
This saves time and memory since computing the length of a lazy
string forces it.
Diffstat (limited to 'lib.c')
0 files changed, 0 insertions, 0 deletions