diff options
author | 2005-10-25 01:26:25 +1000 | |
---|---|---|
committer | 2005-10-25 01:26:25 +1000 | |
commit | 277f9b7e607e40ee84ac5c59fcc878d34cb586e2 (patch) | |
tree | dba9925930f8f011dda4b603919b3e0e38bea85c /builtin_commandline.c | |
parent | f8de9de13de17a4dadab7d2fb1c2094c6a5b105c (diff) |
Huge API documentation cleanup
darcs-hash:20051024152625-ac50b-41503feb4ea8d428c5b30c159aaae0c8f7ae46a2.gz
Diffstat (limited to 'builtin_commandline.c')
-rw-r--r-- | builtin_commandline.c | 24 |
1 files changed, 20 insertions, 4 deletions
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; |