From 2d5fcd953cd1632dece9d4202e477a5b2cc95663 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Mon, 7 Sep 2015 13:16:58 -0700 Subject: 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. --- match.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'match.h') diff --git a/match.h b/match.h index 2a56cf38..d8f075a3 100644 --- a/match.h +++ b/match.h @@ -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); -- cgit v1.2.3