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/confirm.c | 56 ++++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 42 insertions(+), 14 deletions(-) (limited to 'src/confirm.c') diff --git a/src/confirm.c b/src/confirm.c index e71735a..fc89aec 100644 --- a/src/confirm.c +++ b/src/confirm.c @@ -62,15 +62,21 @@ static int HandleDialogButtonRelease(const XButtonEvent *event); static int HandleDialogKey(const XKeyEvent *event); /** Initialize the dialog processing data. */ -void InitializeDialogs() { +void +InitializeDialogs() +{ } /** Startup dialog processing. */ -void StartupDialogs() { +void +StartupDialogs() +{ } /** Stop dialog processing. */ -void ShutdownDialogs() { +void +ShutdownDialogs() +{ while(dialogList) { DestroyConfirmDialog(dialogList); @@ -79,11 +85,15 @@ void ShutdownDialogs() { } /** Destroy dialog processing data. */ -void DestroyDialogs() { +void +DestroyDialogs() +{ } /** Handle an event on a dialog window. */ -int ProcessDialogEvent(const XEvent *event) { +int +ProcessDialogEvent(const XEvent *event) +{ int handled = 0; @@ -106,7 +116,9 @@ int ProcessDialogEvent(const XEvent *event) { } /** Handle an expose event. */ -int HandleDialogExpose(const XExposeEvent *event) { +int +HandleDialogExpose(const XExposeEvent *event) +{ DialogType *dp; @@ -122,7 +134,9 @@ int HandleDialogExpose(const XExposeEvent *event) { } /** Handle a mouse button release event. */ -int HandleDialogButtonRelease(const XButtonEvent *event) { +int +HandleDialogButtonRelease(const XButtonEvent *event) +{ DialogType *dp; int x, y; @@ -160,7 +174,9 @@ int HandleDialogButtonRelease(const XButtonEvent *event) { } /** Handle a key release event. */ -int HandleDialogKey(const XKeyEvent *event) { +int +HandleDialogKey(const XKeyEvent *event) +{ static int enter = 0; ClientNode *np; @@ -275,7 +291,9 @@ void ShowConfirmDialog(ClientNode *np, void (*action)(ClientNode*), ...) { } /** Draw a confirm dialog. */ -void DrawConfirmDialog(DialogType *dp) { +void +DrawConfirmDialog(DialogType *dp) +{ Assert(dp); @@ -285,7 +303,9 @@ void DrawConfirmDialog(DialogType *dp) { } /** Destroy a confirm dialog. */ -void DestroyConfirmDialog(DialogType *dp) { +void +DestroyConfirmDialog(DialogType *dp) +{ int x; @@ -315,7 +335,9 @@ void DestroyConfirmDialog(DialogType *dp) { } /** Compute the size of a dialog window. */ -void ComputeDimensions(DialogType *dp) { +void +ComputeDimensions(DialogType *dp) +{ const ScreenType *sp; int width; @@ -373,7 +395,9 @@ void ComputeDimensions(DialogType *dp) { } /** Display the message on the dialog window. */ -void DrawMessage(DialogType *dp) { +void +DrawMessage(DialogType *dp) +{ int yoffset; int x; @@ -390,7 +414,9 @@ void DrawMessage(DialogType *dp) { } /** Draw the buttons on the dialog window. */ -void DrawButtons(DialogType *dp) { +void +DrawButtons(DialogType *dp) +{ ButtonNode button; int temp; @@ -431,7 +457,9 @@ void DrawButtons(DialogType *dp) { #else /* DISABLE_CONFIRM */ /** Process an event on a dialog window. */ -int ProcessDialogEvent(const XEvent *event) { +int +ProcessDialogEvent(const XEvent *event) +{ return 0; } -- cgit v1.2.3