From e98d94aa2a8c46c392eec4b7ac664eb989f3c589 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 21 Oct 2011 13:27:31 -0400 Subject: New features. Strling list output streams in stream library, allow output to be captured as a list of strings representing lines (in contrast to string streams which capture a single string). The output directive can output to a variable, and next can scan over a variable. * lib.c (span_str, compl_span_str, break_str): New functions. * lib.h (span_str, compl_span_str, break_str): New functions declared. * match.c (into_k, var_k): New keyword variables. (mf_file_data): New static function. (v_next): Refactored argument handling. Added support for :var keyword. (v_output): Added support for :into keyword. * stream.c (strlist_mark, strlist_out_put_string, strlist_out_put_char): New static functions. (strlist_out_ops): New static struct. (make_strlist_output_stream, get_list_from_stream): New functions. * stream.h (make_strlist_output_stream, get_list_from_stream): New functions declared. --- lib.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib.h') diff --git a/lib.h b/lib.h index dca8220c..ab2e61d5 100644 --- a/lib.h +++ b/lib.h @@ -353,6 +353,9 @@ val chrp(val chr); wchar_t c_chr(val chr); val chr_str(val str, val index); val chr_str_set(val str, val index, val chr); +val span_str(val str, val set); +val compl_span_str(val str, val set); +val break_str(val str, val set); val sym_name(val sym); val make_sym(val name); val make_package(val name); -- cgit v1.2.3