From 62a186697df33c96dc1a6dac0f4dfc38652fb96f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 26 Dec 2021 16:39:04 +0300 Subject: BYTE -> uint8_t --- plugins/HistoryLinkListPlus/src/linklist_dlg.cpp | 6 +++--- plugins/HistoryLinkListPlus/src/linklist_fct.cpp | 16 ++++++++-------- plugins/HistoryLinkListPlus/src/linklist_fct.h | 8 ++++---- plugins/HistoryLinkListPlus/src/stdafx.h | 22 +++++++++++----------- 4 files changed, 26 insertions(+), 26 deletions(-) (limited to 'plugins/HistoryLinkListPlus/src') diff --git a/plugins/HistoryLinkListPlus/src/linklist_dlg.cpp b/plugins/HistoryLinkListPlus/src/linklist_dlg.cpp index daf5213a87..d006cad0af 100644 --- a/plugins/HistoryLinkListPlus/src/linklist_dlg.cpp +++ b/plugins/HistoryLinkListPlus/src/linklist_dlg.cpp @@ -101,7 +101,7 @@ INT_PTR CALLBACK MainDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam) LPTSTR link; ENLINK *pENLink = (ENLINK*)lParam; - BYTE mouseEvent = g_plugin.getByte(LINKLIST_MOUSE_EVENT, 0xFF); + uint8_t mouseEvent = g_plugin.getByte(LINKLIST_MOUSE_EVENT, 0xFF); switch (pENLink->msg) { case WM_MOUSEMOVE: @@ -381,7 +381,7 @@ INT_PTR CALLBACK SearchDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam return TRUE; case IDSEARCH: - BYTE flags = 0x00; + uint8_t flags = 0x00; wchar_t filter[FILTERTEXT]; HWND hListDlg = WindowList_Find(hWindowList, DlgParam->hContact); @@ -421,7 +421,7 @@ This function handles the options dialog messages */ INT_PTR CALLBACK OptionsDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { - BYTE useDefault; + uint8_t useDefault; switch (message) { case WM_INITDIALOG: diff --git a/plugins/HistoryLinkListPlus/src/linklist_fct.cpp b/plugins/HistoryLinkListPlus/src/linklist_fct.cpp index 63fbd15fa3..6994f9ebaf 100644 --- a/plugins/HistoryLinkListPlus/src/linklist_fct.cpp +++ b/plugins/HistoryLinkListPlus/src/linklist_fct.cpp @@ -42,7 +42,7 @@ int ExtractURI(DBEVENTINFO *dbei, MEVENT hEvent, LISTELEMENT *listStart) }; LISTELEMENT *newElement, *actualElement; - BYTE type = LINK_UNKNOWN; + uint8_t type = LINK_UNKNOWN; int direction, isLink, linkFound = 0; wchar_t date[DATE_SIZE + 1]; wchar_t time[TIME_SIZE + 1]; @@ -243,7 +243,7 @@ Fill the richedit field with informations ;-) Special thanks to MatriX for his help with the cursor postion! */ -void WriteLinkList(HWND hDlg, BYTE params, LISTELEMENT *listStart, LPCTSTR searchString, int append) +void WriteLinkList(HWND hDlg, uint8_t params, LISTELEMENT *listStart, LPCTSTR searchString, int append) { CHARFORMAT2 cf; PARAFORMAT2 pf; @@ -627,9 +627,9 @@ void WriteMessage(HWND hDlg, LISTELEMENT *listStart, int actLinePos) Little helper functions to get the actual state of user options. */ -BYTE GetFlags(HMENU listMenu) +uint8_t GetFlags(HMENU listMenu) { - BYTE returnflags = 0x00; + uint8_t returnflags = 0x00; if (GetMenuState(listMenu, IDM_TYPE_WEB, MF_BYCOMMAND) == MF_UNCHECKED) returnflags = returnflags | WLL_MAIL; @@ -727,7 +727,7 @@ void DrawLine(HWND hDlg, size_t lineLen) /* Little helper function to get informations about the linked list, such as number of links, etc */ -void GetListInfo(BYTE params, LISTELEMENT *listStart, LPCTSTR searchString, size_t *maxLen, size_t *elementCount, size_t *realElementCount) +void GetListInfo(uint8_t params, LISTELEMENT *listStart, LPCTSTR searchString, size_t *maxLen, size_t *elementCount, size_t *realElementCount) { size_t tempLen; LISTELEMENT *actualElement; @@ -931,7 +931,7 @@ Read current coloursettings from the database void GetColour(MYCOLOURSET *colourSet) { DWORD colour; - BYTE useDefault; + uint8_t useDefault; useDefault = g_plugin.getByte(LINKLIST_USE_DEF, 0xFF); if (useDefault == 0xFF) @@ -1134,9 +1134,9 @@ void SetDBColour(MYCOLOURSET *colourSet) g_plugin.setDword(LINKLIST_TXT_COL, colourSet->text); } -BYTE GetUpdateSetting(void) +uint8_t GetUpdateSetting(void) { - BYTE updateWindow; + uint8_t updateWindow; updateWindow = g_plugin.getByte(LINKLIST_UPDATE_WINDOW, 0xFF); if (updateWindow == 0xFF) diff --git a/plugins/HistoryLinkListPlus/src/linklist_fct.h b/plugins/HistoryLinkListPlus/src/linklist_fct.h index 62b7bbc087..b6d016ebeb 100644 --- a/plugins/HistoryLinkListPlus/src/linklist_fct.h +++ b/plugins/HistoryLinkListPlus/src/linklist_fct.h @@ -21,21 +21,21 @@ #define _LINKLIST_FCT_H void DrawLine(HWND, size_t); -BYTE GetFlags(HMENU); +uint8_t GetFlags(HMENU); void GetFilterText(HMENU, LPTSTR, size_t); -void GetListInfo(BYTE, LISTELEMENT*, LPCTSTR, size_t*, size_t*, size_t*); +void GetListInfo(uint8_t, LISTELEMENT*, LPCTSTR, size_t*, size_t*, size_t*); void GetListOptions(LISTOPTIONS*); void SetListOptions(LISTOPTIONS*); void ClearLinePos(LISTELEMENT*); int GetLastLinePos(LISTELEMENT*); -void WriteLinkList(HWND, BYTE, LISTELEMENT*, LPCTSTR, int); +void WriteLinkList(HWND, uint8_t, LISTELEMENT*, LPCTSTR, int); int WriteOptionExample(HWND, DWORD, DWORD, DWORD, DWORD, LISTOPTIONS*); void WriteMessage(HWND, LISTELEMENT*, int); void GetColour(MYCOLOURSET*); void GetDBColour(MYCOLOURSET*); void SetDBColour(MYCOLOURSET*); int GetMirandaColour(MYCOLOURSET*); -BYTE GetUpdateSetting(void); +uint8_t GetUpdateSetting(void); int LinklistResizer(HWND,LPARAM,UTILRESIZECONTROL*); // RTF Save functions BOOL SaveEditAsStream( HWND ); diff --git a/plugins/HistoryLinkListPlus/src/stdafx.h b/plugins/HistoryLinkListPlus/src/stdafx.h index f1dc8bbf58..d528ec95a5 100644 --- a/plugins/HistoryLinkListPlus/src/stdafx.h +++ b/plugins/HistoryLinkListPlus/src/stdafx.h @@ -73,8 +73,8 @@ #define TXT_COL_DEF 0x00000000 struct LISTELEMENT { - BYTE direction; - BYTE type; + uint8_t direction; + uint8_t type; wchar_t date[DATE_SIZE]; wchar_t time[TIME_SIZE]; wchar_t link[LINK_MAX]; @@ -84,15 +84,15 @@ struct LISTELEMENT { }; typedef struct { - BYTE openNewWindow; - BYTE updateWindow; - BYTE mouseEvent; - BYTE saveSpecial; - BYTE showDate; - BYTE showLine; - BYTE showTime; - BYTE showDirection; - BYTE showType; + uint8_t openNewWindow; + uint8_t updateWindow; + uint8_t mouseEvent; + uint8_t saveSpecial; + uint8_t showDate; + uint8_t showLine; + uint8_t showTime; + uint8_t showDirection; + uint8_t showType; } LISTOPTIONS; typedef struct { -- cgit v1.2.3