vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit a678818f0841e652daa4557846f5ff4f4f46ee95 parent a35d8138c1b460c6cad6ee9a2fe36bed20c5ed4f Author: Marc André Tanner <mat@brain-dump.org> Date: Wed, 30 Sep 2020 10:24:30 +0200 text: mark text_state 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 @@ -814,7 +814,7 @@ size_t text_restore(Text *txt, time_t time) { return history_traverse_to(txt, rev); } -time_t text_state(Text *txt) { +time_t text_state(const Text *txt) { return txt->history->time; } diff --git a/text.h b/text.h @@ -197,7 +197,7 @@ size_t text_restore(Text*, time_t); * .. note:: TODO: This is currently not the same as the time of the last snapshot. * @endrst */ -time_t text_state(Text*); +time_t text_state(const Text*); /** * @} * @defgroup lines