vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 2e84f42f0171c3f989b0b5a88d75485b42946ffb parent 8085fdcca7b9522e67fe23e6009ec18d2bd6df2f Author: Marc André Tanner <mat@brain-dump.org> Date: Wed, 30 Sep 2020 10:21:25 +0200 text: mark text_stat argument as const Diffstat:
| M | text.c | | | 2 | +- |
| M | text.h | | | 2 | +- |
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/text.c b/text.c @@ -1218,7 +1218,7 @@ out: return NULL; } -struct stat text_stat(Text *txt) { +struct stat text_stat(const Text *txt) { return txt->info; } diff --git a/text.h b/text.h @@ -130,7 +130,7 @@ size_t text_size(Text*); * @endrst * @return See ``stat(2)`` for details. */ -struct stat text_stat(Text*); +struct stat text_stat(const Text*); /** Query whether the text contains any unsaved modifications. */ bool text_modified(Text*); /**