From 5f6cee4616c52bc2cf95afcdb1e3e7a8bed6e393 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 23 Sep 2008 13:29:25 +0200 Subject: 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. --- src/list_window.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/list_window.c') 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) -- cgit v1.2.3