From f041981121a18d2b5c0697db9469c8c6ab474386 Mon Sep 17 00:00:00 2001 From: okan Date: Fri, 26 Jun 2009 12:21:58 +0000 Subject: static local functions and data; almost identical diff from Thomas Pfaff ok oga@ --- client.c | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'client.c') diff --git a/client.c b/client.c index a090d8d..531bff8 100644 --- a/client.c +++ b/client.c @@ -15,13 +15,19 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: client.c,v 1.56 2009/06/23 21:52:38 okan Exp $ + * $Id: client.c,v 1.57 2009/06/26 12:21:58 okan Exp $ */ #include "headers.h" #include "calmwm.h" -static int client_inbound(struct client_ctx *, int, int); +static struct client_ctx *client_mrunext(struct client_ctx *); +static struct client_ctx *client_mruprev(struct client_ctx *); +static void client_placecalc(struct client_ctx *); +static void client_update(struct client_ctx *); +static void client_gethints(struct client_ctx *); +static void client_freehints(struct client_ctx *); +static int client_inbound(struct client_ctx *, int, int); static char emptystring[] = ""; struct client_ctx *_curcc = NULL; @@ -407,7 +413,7 @@ client_draw_border(struct client_ctx *cc) XSetWindowBorder(X_Dpy, cc->win, pixel); } -void +static void client_update(struct client_ctx *cc) { Atom *p; @@ -522,7 +528,7 @@ client_cycle(int reverse) return (newcc); } -struct client_ctx * +static struct client_ctx * client_mrunext(struct client_ctx *cc) { struct screen_ctx *sc = CCTOSC(cc); @@ -532,7 +538,7 @@ client_mrunext(struct client_ctx *cc) ccc : TAILQ_FIRST(&sc->mruq)); } -struct client_ctx * +static struct client_ctx * client_mruprev(struct client_ctx *cc) { struct screen_ctx *sc = CCTOSC(cc); @@ -542,7 +548,7 @@ client_mruprev(struct client_ctx *cc) ccc : TAILQ_LAST(&sc->mruq, cycle_entry_q)); } -void +static void client_placecalc(struct client_ctx *cc) { struct screen_ctx *sc = CCTOSC(cc); @@ -629,7 +635,7 @@ client_mtf(struct client_ctx *cc) TAILQ_INSERT_HEAD(&sc->mruq, cc, mru_entry); } -void +static void client_gethints(struct client_ctx *cc) { XClassHint xch; @@ -675,7 +681,7 @@ client_gethints(struct client_ctx *cc) } } -void +static void client_freehints(struct client_ctx *cc) { if (cc->app_name != NULL) -- cgit v1.2.3-2-gb3c3