diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-09-07 13:16:58 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-09-07 13:16:58 -0700 |
commit | 2d5fcd953cd1632dece9d4202e477a5b2cc95663 (patch) | |
tree | 04708e458c3a407e8afb23a3eeb2a6da41f06d89 /match.h | |
parent | b6a1545715cdef21f6a2989436775e45bada14a9 (diff) | |
download | txr-2d5fcd953cd1632dece9d4202e477a5b2cc95663.tar.gz txr-2d5fcd953cd1632dece9d4202e477a5b2cc95663.tar.bz2 txr-2d5fcd953cd1632dece9d4202e477a5b2cc95663.zip |
Go into repl after processing txr file also.
* match.c (extract): Return match result as cons, rather than
int termination status.
* match.h (extract): Declaration updated.
* txr.c (txr_main): Handle result cons. If repl mode is selected,
pass bindings from car(result) to repl. Otherwise use match success
indication in cdr(result) to determine termination status.
Diffstat (limited to 'match.h')
-rw-r--r-- | match.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -31,5 +31,5 @@ val format_field(val string_or_list, val modifier, val filter, val eval_fun); val match_filter(val name, val arg, val other_args); val match_fun(val name, val args, val input, val files); val include(val specline); -int extract(val spec, val filenames, val bindings); +val extract(val spec, val filenames, val bindings); void match_init(void); |