diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-03-12 11:59:45 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-03-12 11:59:45 -0700 |
commit | 7809492815eb35df33e52aae72e03ce10349def5 (patch) | |
tree | 836bc37ca81c54b2ebc516341dc4e8505d898f64 /checkman.txr | |
parent | f233d4776a8b71f2f0ea714c139bb1f871f80f73 (diff) | |
download | txr-7809492815eb35df33e52aae72e03ce10349def5.tar.gz txr-7809492815eb35df33e52aae72e03ce10349def5.tar.bz2 txr-7809492815eb35df33e52aae72e03ce10349def5.zip |
bugfix: @(next) in function called with match-fun.
The match-fun function must augment the input list
with the current input source, because @(next)
pops the first item from the files list and tries
to open the second.
We want it so that if we invoke
(match-fun 'f arglist input '("abc"))
then if the pattern function f invokes @(next),
it will open "abc".
* match.c (match_fun): Calculate a value for the curfile
property of the match context and pass it to mf_all. If the
input is a stream, we get its name. We also push this curfile
onto the files list, satisfying the expectation that curfile
and the first element of files refer to the same thing.
Diffstat (limited to 'checkman.txr')
0 files changed, 0 insertions, 0 deletions