From c426e485e527a03aa3b4bdbb3203f621e006cbd5 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 10 Oct 2016 21:29:23 +0000 Subject: Loads more static, except for cmd-*.c and window-*.c. --- screen.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'screen.c') diff --git a/screen.c b/screen.c index 8e4f8a65..b0ba216a 100644 --- a/screen.c +++ b/screen.c @@ -24,8 +24,8 @@ #include "tmux.h" -void screen_resize_x(struct screen *, u_int); -void screen_resize_y(struct screen *, u_int); +static void screen_resize_x(struct screen *, u_int); +static void screen_resize_y(struct screen *, u_int); /* Create a new screen. */ void @@ -139,7 +139,7 @@ screen_resize(struct screen *s, u_int sx, u_int sy, int reflow) screen_reflow(s, sx); } -void +static void screen_resize_x(struct screen *s, u_int sx) { struct grid *gd = s->grid; @@ -161,7 +161,7 @@ screen_resize_x(struct screen *s, u_int sx) gd->sx = sx; } -void +static void screen_resize_y(struct screen *s, u_int sy) { struct grid *gd = s->grid; @@ -221,8 +221,8 @@ screen_resize_y(struct screen *s, u_int sy) needed = sy - oldy; /* - * Try to pull as much as possible out of scrolled history, if is - * is enabled. + * Try to pull as much as possible out of scrolled history, if + * is is enabled. */ available = gd->hscrolled; if (gd->flags & GRID_HISTORY && available > 0) { -- cgit From e45401846f0a423bb90ebd3943041a28b2657631 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 11 Oct 2016 13:21:59 +0000 Subject: Add static in window-*.c and move some internal functions out of tmux.h. --- screen.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'screen.c') diff --git a/screen.c b/screen.c index b0ba216a..7bde6f9b 100644 --- a/screen.c +++ b/screen.c @@ -27,6 +27,8 @@ static void screen_resize_x(struct screen *, u_int); static void screen_resize_y(struct screen *, u_int); +static void screen_reflow(struct screen *, u_int); + /* Create a new screen. */ void screen_init(struct screen *s, u_int sx, u_int sy, u_int hlimit) @@ -370,7 +372,7 @@ screen_check_selection(struct screen *s, u_int px, u_int py) } /* Reflow wrapped lines. */ -void +static void screen_reflow(struct screen *s, u_int new_x) { struct grid *old = s->grid; -- cgit