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/icon.c | 54 ++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 40 insertions(+), 14 deletions(-) (limited to 'src/icon.c') diff --git a/src/icon.c b/src/icon.c index b6f5ca6..afc415d 100644 --- a/src/icon.c +++ b/src/icon.c @@ -54,7 +54,9 @@ static int GetHash(const char *str); /**************************************************************************** * Must be initialized before parsing the configuration. ****************************************************************************/ -void InitializeIcons() { +void +InitializeIcons() +{ int x; @@ -70,7 +72,9 @@ void InitializeIcons() { /**************************************************************************** ****************************************************************************/ -void StartupIcons() { +void +StartupIcons() +{ XGCValues gcValues; unsigned long gcMask; @@ -85,7 +89,9 @@ void StartupIcons() { /**************************************************************************** ****************************************************************************/ -void ShutdownIcons() { +void +ShutdownIcons() +{ int x; @@ -101,7 +107,9 @@ void ShutdownIcons() { /**************************************************************************** ****************************************************************************/ -void DestroyIcons() { +void +DestroyIcons() +{ IconPathNode *pn; @@ -121,7 +129,9 @@ void DestroyIcons() { /**************************************************************************** ****************************************************************************/ -void SetIconSize() { +void +SetIconSize() +{ XIconSize size; @@ -145,7 +155,9 @@ void SetIconSize() { /**************************************************************************** ****************************************************************************/ -void AddIconPath(char *path) { +void +AddIconPath(char *path) +{ IconPathNode *ip; int length; @@ -185,8 +197,10 @@ void AddIconPath(char *path) { /**************************************************************************** ****************************************************************************/ -void PutIcon(IconNode *icon, Drawable d, int x, int y, - int width, int height) { +void +PutIcon(IconNode *icon, Drawable d, int x, int y, + int width, int height) +{ ScaledIconNode *node; @@ -223,7 +237,9 @@ void PutIcon(IconNode *icon, Drawable d, int x, int y, /**************************************************************************** ****************************************************************************/ -void LoadIcon(ClientNode *np) { +void +LoadIcon(ClientNode *np) +{ IconPathNode *ip; @@ -349,7 +365,9 @@ IconNode *LoadNamedIconHelper(const char *name, const char *path) { /**************************************************************************** ****************************************************************************/ -void ReadNetWMIcon(ClientNode *np) { +void +ReadNetWMIcon(ClientNode *np) +{ unsigned long count; int status; @@ -604,7 +622,9 @@ IconNode *CreateIcon() { /**************************************************************************** ****************************************************************************/ -void DoDestroyIcon(int index, IconNode *icon) { +void +DoDestroyIcon(int index, IconNode *icon) +{ ScaledIconNode *np; @@ -651,7 +671,9 @@ void DoDestroyIcon(int index, IconNode *icon) { /**************************************************************************** ****************************************************************************/ -void DestroyIcon(IconNode *icon) { +void +DestroyIcon(IconNode *icon) +{ int index; @@ -664,7 +686,9 @@ void DestroyIcon(IconNode *icon) { /**************************************************************************** ****************************************************************************/ -void InsertIcon(IconNode *icon) { +void +InsertIcon(IconNode *icon) +{ int index; @@ -705,7 +729,9 @@ IconNode *FindIcon(const char *name) { /**************************************************************************** ****************************************************************************/ -int GetHash(const char *str) { +int +GetHash(const char *str) +{ int x; int hash = 0; -- cgit v1.2.3