aboutsummaryrefslogtreecommitdiffstats
path: root/src/list_window.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-23 13:29:25 +0200
committerMax Kellermann <max@duempel.org>2008-09-23 13:29:25 +0200
commit5f6cee4616c52bc2cf95afcdb1e3e7a8bed6e393 (patch)
tree8acf2fc02801001b20feea49343ad75b3e11b029 /src/list_window.c
parent72ad9955c8d5c9abe28d8d59301e159493087976 (diff)
downloadmpd-5f6cee4616c52bc2cf95afcdb1e3e7a8bed6e393.tar.gz
mpd-5f6cee4616c52bc2cf95afcdb1e3e7a8bed6e393.tar.xz
mpd-5f6cee4616c52bc2cf95afcdb1e3e7a8bed6e393.zip
list_window: converted several public functions to static
There are lots of functions not being used outside of list_window.c. Make them static to make it easier for gcc to optimize.
Diffstat (limited to 'src/list_window.c')
-rw-r--r--src/list_window.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/list_window.c b/src/list_window.c
index 215a531dd..cce992d86 100644
--- a/src/list_window.c
+++ b/src/list_window.c
@@ -104,7 +104,7 @@ list_window_set_selected(struct list_window *lw, unsigned n)
lw->selected = n;
}
-void
+static void
list_window_next(struct list_window *lw, unsigned length)
{
if (lw->selected + 1 < length)
@@ -113,7 +113,7 @@ list_window_next(struct list_window *lw, unsigned length)
lw->selected = 0;
}
-void
+static void
list_window_previous(struct list_window *lw, unsigned length)
{
if (lw->selected > 0)
@@ -122,14 +122,14 @@ list_window_previous(struct list_window *lw, unsigned length)
lw->selected = length - 1;
}
-void
+static void
list_window_first(struct list_window *lw)
{
lw->xoffset = 0;
lw->selected = 0;
}
-void
+static void
list_window_last(struct list_window *lw, unsigned length)
{
lw->xoffset = 0;
@@ -139,7 +139,7 @@ list_window_last(struct list_window *lw, unsigned length)
lw->selected = 0;
}
-void
+static void
list_window_next_page(struct list_window *lw, unsigned length)
{
if (lw->rows < 2)
@@ -150,7 +150,7 @@ list_window_next_page(struct list_window *lw, unsigned length)
list_window_last(lw, length);
}
-void
+static void
list_window_previous_page(struct list_window *lw)
{
if (lw->rows < 2)