From e96f9f3869c6ea5803f5759bf1737547a46be22f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Mon, 19 Jul 2021 11:32:34 +0200 Subject: Change function declaration style This is a very sweeping change, but I feel that it is necessary. --- src/pager.c | 40 ++++++++++++++++++++++++++++++---------- 1 file changed, 30 insertions(+), 10 deletions(-) (limited to 'src/pager.c') diff --git a/src/pager.c b/src/pager.c index 6c237bd..3c88c7e 100644 --- a/src/pager.c +++ b/src/pager.c @@ -40,18 +40,24 @@ static void DrawPagerClient(const PagerType *pp, const ClientNode *np); /**************************************************************************** ****************************************************************************/ -void InitializePager() { +void +InitializePager() +{ pagers = NULL; } /**************************************************************************** ****************************************************************************/ -void StartupPager() { +void +StartupPager() +{ } /**************************************************************************** ****************************************************************************/ -void ShutdownPager() { +void +ShutdownPager() +{ PagerType *pp; @@ -63,7 +69,9 @@ void ShutdownPager() { /**************************************************************************** ****************************************************************************/ -void DestroyPager() { +void +DestroyPager() +{ PagerType *pp; @@ -99,7 +107,9 @@ TrayComponentType *CreatePager() { /**************************************************************************** ****************************************************************************/ -void Create(TrayComponentType *cp) { +void +Create(TrayComponentType *cp) +{ PagerType *pp; @@ -120,13 +130,17 @@ void Create(TrayComponentType *cp) { /**************************************************************************** ****************************************************************************/ -void Destroy(TrayComponentType *cp) { +void +Destroy(TrayComponentType *cp) +{ } /**************************************************************************** ****************************************************************************/ -void SetSize(TrayComponentType *cp, int width, int height) { +void +SetSize(TrayComponentType *cp, int width, int height) +{ PagerType *pp; @@ -165,7 +179,9 @@ void SetSize(TrayComponentType *cp, int width, int height) { /**************************************************************************** ****************************************************************************/ -void ProcessPagerButtonEvent(TrayComponentType *cp, int x, int y, int mask) { +void +ProcessPagerButtonEvent(TrayComponentType *cp, int x, int y, int mask) +{ PagerType *pp; @@ -193,7 +209,9 @@ void ProcessPagerButtonEvent(TrayComponentType *cp, int x, int y, int mask) { /**************************************************************************** ****************************************************************************/ -void UpdatePager() { +void +UpdatePager() +{ PagerType *pp; ClientNode *np; @@ -260,7 +278,9 @@ void UpdatePager() { /**************************************************************************** ****************************************************************************/ -void DrawPagerClient(const PagerType *pp, const ClientNode *np) { +void +DrawPagerClient(const PagerType *pp, const ClientNode *np) +{ int x, y; int width, height; -- cgit v1.2.3