From 095954fe8c0d1a64d8696d0ad0cd0ed395dd6c54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 15 Jul 2022 00:50:32 +0200 Subject: Change declaration style. --- c/main.cpp | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) (limited to 'c/main.cpp') diff --git a/c/main.cpp b/c/main.cpp index 718ed85..1d8a981 100644 --- a/c/main.cpp +++ b/c/main.cpp @@ -30,8 +30,7 @@ static HWND CreateStatusBar(HWND, HINSTANCE); static int Attach(void); static void UpdateTheme(void); -int WINAPI -WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, +int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, INT nCmdShow) { LPTSTR tszErr; @@ -129,8 +128,7 @@ f: MessageBox(NULL, tszErr, TEXT("Error"), MB_ICONERROR); return 1; } -static LRESULT CALLBACK -CBTProc(int nCode, WPARAM wParam, LPARAM lParam) +static LRESULT CALLBACK CBTProc(int nCode, WPARAM wParam, LPARAM lParam) { if (nCode != HCBT_CREATEWND) return 0; if (g_hWnd) return 0; @@ -159,8 +157,7 @@ CBTProc(int nCode, WPARAM wParam, LPARAM lParam) return 0; } -LRESULT CALLBACK -WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) +LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { switch (uMsg) { case WM_CREATE: @@ -451,8 +448,7 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) return 0; } -INT_PTR CALLBACK -AboutDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) +INT_PTR CALLBACK AboutDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { switch (uMsg) { case WM_CLOSE: @@ -472,8 +468,7 @@ AboutDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) return TRUE; } -HWND -CreateStatusBar(HWND hWndParent, HINSTANCE hInstance) +HWND CreateStatusBar(HWND hWndParent, HINSTANCE hInstance) { HWND hWnd = CreateWindowEx( 0, @@ -492,8 +487,7 @@ CreateStatusBar(HWND hWndParent, HINSTANCE hInstance) /***/ /* Attach persistent databases. */ -int -Attach() +int Attach() { if (!Pl("track_episodes","attach","")) return 0; if (!Pl("episode_data","attach","")) return 0; @@ -502,8 +496,7 @@ Attach() /***/ -void -UpdateLayout() +void UpdateLayout() { int cxColumn, cyDlv, yStatus; RECT rc, rcStatus; @@ -538,8 +531,7 @@ UpdateLayout() } /* Try to style application according to current Windows theme. */ -void -UpdateTheme() +void UpdateTheme() { if (!g_bThemes) return; BOOL bThemeActive = IsThemeActive(); -- cgit v1.2.3