aboutsummaryrefslogtreecommitdiff
path: root/extract.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-03-30 12:40:21 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-05-17 16:14:10 +0000
commita6d9f01c0d1d914362b73eacd89e1e09877632cb (patch)
tree044a331241b6534f00cad1ace1941d13313cbdfd /extract.h
parentsearch: find_next(): correctly wrap row number (diff)
extract: move ‘strip_trailing_empty’ parameter from extra_finish() to extract_begin()
Diffstat (limited to 'extract.h')
-rw-r--r--extract.h9
1 files changed, 4 insertions, 5 deletions
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);