aboutsummaryrefslogtreecommitdiff
path: root/src/icon.c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-19 11:32:34 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-19 11:32:34 +0200
commite96f9f3869c6ea5803f5759bf1737547a46be22f (patch)
treee070f699751eebad032a47f118293ef219f1e147 /src/icon.c
parent0d1af7a8c8e163250e940833d646a12852aa9e5b (diff)
downloadjwm-e96f9f3869c6ea5803f5759bf1737547a46be22f.tar.gz
Change function declaration style
This is a very sweeping change, but I feel that it is necessary.
Diffstat (limited to 'src/icon.c')
-rw-r--r--src/icon.c54
1 files changed, 40 insertions, 14 deletions
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;