diff options
author | George Hazan <george.hazan@gmail.com> | 2013-03-28 14:55:49 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-03-28 14:55:49 +0000 |
commit | 056d2be888a4235a109a123b7b2a715aa3ff72ba (patch) | |
tree | b1956081bb951f44ced81414db7656a832613b71 /plugins/UserInfoEx/src/commonheaders.h | |
parent | 5f03619d3bbda7a617f50ded2698cffc434dd525 (diff) |
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@4225 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/UserInfoEx/src/commonheaders.h')
-rw-r--r-- | plugins/UserInfoEx/src/commonheaders.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/plugins/UserInfoEx/src/commonheaders.h b/plugins/UserInfoEx/src/commonheaders.h index 123d45ebfb..c660fe8a52 100644 --- a/plugins/UserInfoEx/src/commonheaders.h +++ b/plugins/UserInfoEx/src/commonheaders.h @@ -106,9 +106,9 @@ using namespace std; #define MIREXISTS(f) ((int)(f)!=CALLSERVICE_NOTFOUND)
#define PtrIsValid(p) (((p)!=0)&&(((HANDLE)(p))!=INVALID_HANDLE_VALUE))
-#define FREE(p) {if (PtrIsValid(p)){free((VOID*)p);(p)=NULL;}}
+#define FREE(p) {if (PtrIsValid(p)){free((void*)p);(p)=NULL;}}
#define MIR_DELETE(p) {LPVOID ptr = (LPVOID)(p);if (PtrIsValid(ptr)){delete(ptr);(ptr)=NULL;}}
-#define MIR_FREE(p) {if (PtrIsValid(p)){mir_free((VOID*)p);(p)=NULL;}}
+#define MIR_FREE(p) {if (PtrIsValid(p)){mir_free((void*)p);(p)=NULL;}}
#define GetUserData(p) GetWindowLongPtr((p), GWLP_USERDATA)
#define SetUserData(p, l) SetWindowLongPtr((p), GWLP_USERDATA, (LONG_PTR) (l))
@@ -173,13 +173,13 @@ unsigned int hashSettingW_M2(const char * key); //new Murma2 hash typedef struct _MGLOBAL
{
DWORD mirandaVersion; // mirandaVersion
- BOOLEAN CanChangeDetails : 1; // is service to upload own contact information for icq present?
- BOOLEAN MsgAddIconExist : 1; // Messsage Window support status Icon
- BOOLEAN TzIndexExist : 1; // Win Reg has Timzone Index Info
- BOOLEAN PopUpActionsExist : 1; // Popup++ or MS_POPUP_REGISTERACTIONS exist
- BOOLEAN ShowPropsheetColours : 1; // cached SET_PROPSHEET_SHOWCOLOURS database value
- BOOLEAN WantAeroAdaption : 1; // reserved for later use
- BOOLEAN UseDbxTree : 1; // use dbx_tree ?
+ BYTE CanChangeDetails : 1; // is service to upload own contact information for icq present?
+ BYTE MsgAddIconExist : 1; // Messsage Window support status Icon
+ BYTE TzIndexExist : 1; // Win Reg has Timzone Index Info
+ BYTE PopUpActionsExist : 1; // Popup++ or MS_POPUP_REGISTERACTIONS exist
+ BYTE ShowPropsheetColours : 1; // cached SET_PROPSHEET_SHOWCOLOURS database value
+ BYTE WantAeroAdaption : 1; // reserved for later use
+ BYTE UseDbxTree : 1; // use dbx_tree ?
LPCSTR szMetaProto;
} MGLOBAL, *LPMGLOBAL;
@@ -202,10 +202,10 @@ extern struct CountryListEntry *countries; *
**/
#define MIRANDA_CPP_PLUGIN_API(CCoreClass) \
- typedef INT (__cdecl CCoreClass::*EVENTHOOK)(WPARAM, LPARAM); \
- typedef INT (__cdecl CCoreClass::*EVENTHOOKPARAM)(WPARAM, LPARAM, LPARAM); \
- typedef INT (__cdecl CCoreClass::*SERVICEFUNC)(WPARAM, LPARAM); \
- typedef INT (__cdecl CCoreClass::*SERVICEFUNCPARAM)(WPARAM, LPARAM, LPARAM); \
+ typedef int (__cdecl CCoreClass::*EVENTHOOK)(WPARAM, LPARAM); \
+ typedef int (__cdecl CCoreClass::*EVENTHOOKPARAM)(WPARAM, LPARAM, LPARAM); \
+ typedef int (__cdecl CCoreClass::*SERVICEFUNC)(WPARAM, LPARAM); \
+ typedef int (__cdecl CCoreClass::*SERVICEFUNCPARAM)(WPARAM, LPARAM, LPARAM); \
\
HANDLE ThisHookEvent(const char* szEvent, EVENTHOOK pfnEvent) \
{ return (HANDLE) ::HookEventObj(szEvent, (MIRANDAHOOKOBJ) (*(PVOID*) &pfnEvent), (PVOID)this);} \
@@ -240,7 +240,7 @@ static FORCEINLINE BOOL IsProtoAccountEnabled(PROTOACCOUNT *pAcc) typedef HRESULT (STDAPICALLTYPE *pfnDwmIsCompositionEnabled)(BOOL *);
extern pfnDwmIsCompositionEnabled dwmIsCompositionEnabled;
-static FORCEINLINE BOOLEAN IsAeroMode()
+static FORCEINLINE BYTE IsAeroMode()
{
BOOL result;
return myGlobals.WantAeroAdaption && dwmIsCompositionEnabled && (dwmIsCompositionEnabled(&result) == S_OK) && result;
|