From 277f9b7e607e40ee84ac5c59fcc878d34cb586e2 Mon Sep 17 00:00:00 2001 From: axel Date: Tue, 25 Oct 2005 01:26:25 +1000 Subject: Huge API documentation cleanup darcs-hash:20051024152625-ac50b-41503feb4ea8d428c5b30c159aaae0c8f7ae46a2.gz --- builtin_commandline.c | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'builtin_commandline.c') diff --git a/builtin_commandline.c b/builtin_commandline.c index 0406d6a0..aa5345e0 100644 --- a/builtin_commandline.c +++ b/builtin_commandline.c @@ -47,6 +47,14 @@ enum ; +/** + Replace/append/insert the selection with/at/after the specified string. + + \param begin beginning of selection + \param end end of selection + \param insert the string to insert + \param append_mode can be one of REPLACE_MODE, INSERT_MODE or APPEND_MODE, affects the way the test update is performed +*/ static void replace_part( wchar_t *begin, wchar_t *end, wchar_t *insert, @@ -95,10 +103,18 @@ static void replace_part( wchar_t *begin, sb_destroy( &out ); } -void write_part( wchar_t *begin, - wchar_t *end, - int cut_at_cursor, - int tokenize ) +/** + Output the specified selection. + + \param begin start of selection + \param end end of selection + \param cut_at_cursor whether printing should stop at the surrent cursor position + \param tokenize whether the string should be tokenized, printing one string token on every line and skipping non-string tokens +*/ +static void write_part( wchar_t *begin, + wchar_t *end, + int cut_at_cursor, + int tokenize ) { tokenizer tok; string_buffer_t out; -- cgit v1.2.3