aboutsummaryrefslogtreecommitdiff
path: root/c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-17 02:30:34 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-17 02:30:34 +0200
commitcd5ff302d1b03edb6fe81254c585e0e88c8e71ee (patch)
treebbf61c24e710f6ac07f2973ca31efdd1a2c9cbeb /c
parente96b4db3fb46384f286e9297186b87648c7219c4 (diff)
downloadEpisodeBrowser-cd5ff302d1b03edb6fe81254c585e0e88c8e71ee.tar.gz
Name function arguments in headers.
This is obviously a lot less obtuse.
Diffstat (limited to 'c')
-rw-r--r--c/common.h6
-rw-r--r--c/datalistview.h4
-rw-r--r--c/episodelistview.h14
-rw-r--r--c/listview.cpp2
-rw-r--r--c/listview.h8
-rw-r--r--c/main.h2
-rw-r--r--c/pl.h10
7 files changed, 23 insertions, 23 deletions
diff --git a/c/common.h b/c/common.h
index 5528ff6..2bcf0d7 100644
--- a/c/common.h
+++ b/c/common.h
@@ -13,7 +13,7 @@
struct Win32Error : public std::exception
{
- Win32Error(DWORD);
+ Win32Error(DWORD dwErr);
~Win32Error(void);
virtual const char* what(void) const noexcept override;
private:
@@ -23,9 +23,9 @@ private:
struct Library
{
- Library(const TCHAR*);
+ Library(const TCHAR* tszLibrary);
~Library(void);
- FARPROC GetProcAddress(const char*);
+ FARPROC GetProcAddress(const char* szProc);
private:
HMODULE m_hModule;
};
diff --git a/c/datalistview.h b/c/datalistview.h
index de1bd81..4ff61fd 100644
--- a/c/datalistview.h
+++ b/c/datalistview.h
@@ -8,8 +8,8 @@
struct DataListView : public ListView
{
- DataListView(HWND);
- void ShowEpisode(int);
+ DataListView(HWND hWndParent);
+ void ShowEpisode(int iEpisode);
};
#endif
diff --git a/c/episodelistview.h b/c/episodelistview.h
index 74fcf3d..45146e6 100644
--- a/c/episodelistview.h
+++ b/c/episodelistview.h
@@ -12,24 +12,24 @@
struct EpisodeListView : public ListView
{
- EpisodeListView(HWND);
+ EpisodeListView(HWND hWndParent);
void DoSort(void);
void EnsureFocusVisible(void);
- LRESULT HandleNotify(LPARAM);
+ LRESULT HandleNotify(LPARAM lParam);
int ISort(void) const;
void Redraw(void);
void SaveFocus(void);
- void SetTop(int);
+ void SetTop(int iItem);
void RestoreFocus(void);
- void SelectUnwatched(int);
+ void SelectUnwatched(int iDir);
void ShowFocus(void);
void Update(void);
- void UpdateItem(LPLVITEM);
- LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM) override;
+ void UpdateItem(LPLVITEM lpLvi);
+ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) override;
private:
int m_iSort;
LVITEM m_lviFocus;
- friend int CALLBACK ElvSort(LPARAM, LPARAM, LPARAM);
+ friend int CALLBACK ElvSort(LPARAM lParam1, LPARAM lParam2, LPARAM lExtra);
};
#endif
diff --git a/c/listview.cpp b/c/listview.cpp
index 4a64398..3bec5ab 100644
--- a/c/listview.cpp
+++ b/c/listview.cpp
@@ -43,7 +43,7 @@ HWND ListView::Handle() const
return m_hWnd;
}
-void ListView::UpdateTheme(const BOOL bThemeActive)
+void ListView::UpdateTheme(const int bThemeActive)
{
DWORD dwStyle;
LPTSTR tszTheme;
diff --git a/c/listview.h b/c/listview.h
index e7cd68b..08511d1 100644
--- a/c/listview.h
+++ b/c/listview.h
@@ -5,11 +5,11 @@
struct ListView
{
- ListView(HWND, HMENU, DWORD);
- int Height(int = -1);
+ ListView(HWND hWndParent, HMENU hMenu, DWORD dwStyle);
+ int Height(int bHeader = -1);
HWND Handle(void) const;
- virtual void UpdateTheme(BOOL);
- virtual LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
+ virtual void UpdateTheme(int bThemeActive);
+ virtual LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
protected:
int m_bHeader = 1;
WNDPROC m_prevProc;
diff --git a/c/main.h b/c/main.h
index 0b899e6..d79975e 100644
--- a/c/main.h
+++ b/c/main.h
@@ -1,6 +1,6 @@
#ifndef MAIN_H
#define MAIN_H
-void UpdateLayout();
+void UpdateLayout(void);
#endif
diff --git a/c/pl.h b/c/pl.h
index 38fa94f..14f6c43 100644
--- a/c/pl.h
+++ b/c/pl.h
@@ -4,16 +4,16 @@
#include <windows.h>
#include <SWI-Prolog.h>
-int PL_get_tchars(term_t, TCHAR**, int);
-int Plx(const char*, const char*);
+int PL_get_tchars(term_t t, TCHAR** lpTsz, int iFlags);
+int Plx(const char* szMod, const char* szPred);
struct Query
{
Query(module_t ctx, predicate_t p, term_t t0);
~Query(void);
- int Cut();
- int Close();
- int NextSolution();
+ int Cut(void);
+ int Close(void);
+ int NextSolution(void);
private:
qid_t m_q;
};