aboutsummaryrefslogtreecommitdiff
path: root/text.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-06-27 10:17:18 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-06-27 10:17:18 +0200
commit13caec50e0974961f31c2b03ad3ba64e0042f6e1 (patch)
tree770390d07f9ef9db199e498ca6e748ce48f98907 /text.c
parent1ba2d94a738bb62b42fa43d69d6545b112437109 (diff)
downloadvis-13caec50e0974961f31c2b03ad3ba64e0042f6e1.tar.gz
vis-13caec50e0974961f31c2b03ad3ba64e0042f6e1.tar.xz
Mark internal undo tree functions as static
Diffstat (limited to 'text.c')
-rw-r--r--text.c8
1 files 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;