From a6d9f01c0d1d914362b73eacd89e1e09877632cb Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 30 Mar 2021 14:40:21 +0200 Subject: extract: move ‘strip_trailing_empty’ parameter from extra_finish() to extract_begin() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extract.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'extract.h') diff --git a/extract.h b/extract.h index 879461cf..dc802bc5 100644 --- a/extract.h +++ b/extract.h @@ -8,15 +8,14 @@ struct extraction_context; -struct extraction_context *extract_begin(enum selection_kind kind); +struct extraction_context *extract_begin( + enum selection_kind kind, bool strip_trailing_empty); bool extract_one( const struct terminal *term, const struct row *row, const struct cell *cell, int col, void *context); bool extract_finish( - struct extraction_context *context, bool strip_trailing_empty, - char **text, size_t *len); + struct extraction_context *context, char **text, size_t *len); bool extract_finish_wide( - struct extraction_context *context, bool strip_trailing_empty, - wchar_t **text, size_t *len); + struct extraction_context *context, wchar_t **text, size_t *len); -- cgit v1.3