vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 42a97dfdf76bdd4b94544312904030677f6cc3a7
parent d8205ac8ccc827a8ac2df7b51a60212419a5d082
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Sat, 27 Jun 2015 10:17:18 +0200

Mark internal undo tree functions as static

Diffstat:
Mtext.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/text.c b/text.c @@ -560,7 +560,7 @@ bool text_insert(Text *txt, size_t pos, const char *data, size_t len) { return true; } -size_t action_undo(Text *txt, Action *a) { +static size_t action_undo(Text *txt, Action *a) { size_t pos = EPOS; for (Change *c = a->change; c; c = c->next) { span_swap(txt, &c->new, &c->old); @@ -569,7 +569,7 @@ size_t action_undo(Text *txt, Action *a) { return pos; } -size_t action_redo(Text *txt, Action *a) { +static size_t action_redo(Text *txt, Action *a) { size_t pos = EPOS; Change *c = a->change; while (c->next) @@ -607,7 +607,7 @@ size_t text_redo(Text *txt) { return pos; } -bool history_change_branch(Action *a) { +static bool history_change_branch(Action *a) { bool changed = false; while (a->prev) { if (a->prev->next != a) { @@ -619,7 +619,7 @@ bool history_change_branch(Action *a) { return changed; } -size_t history_traverse_to(Text *txt, Action *a) { +static size_t history_traverse_to(Text *txt, Action *a) { size_t pos = EPOS; if (!a) return pos;