From 13caec50e0974961f31c2b03ad3ba64e0042f6e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 27 Jun 2015 10:17:18 +0200 Subject: Mark internal undo tree functions as static --- text.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/text.c b/text.c index 1c569b6..cb7e1c7 100644 --- 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; -- cgit v1.2.3