diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-18 20:53:59 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-18 20:53:59 +0000 |
commit | 3f23417a1099f73dc28ec1b7d6ec2a1a7fc2b7a2 (patch) | |
tree | 3e0bcd88c55dad310da0dc980e252bf9fbfa6dc5 /include/m_langpack.h | |
parent | 537b94169bf2483798a651ee3b96f7904eebe7b4 (diff) |
- PLUGININFO structure removed at all;
- Options_AddPage & UserInfo_AddPage replaced MS_OPT_ADDPAGE & MS_USERINFO_ADDPAGE services respectively
- total internal redesign of options' translation
- code reformatting
git-svn-id: http://svn.miranda-ng.org/main/trunk@477 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/m_langpack.h')
-rw-r--r-- | include/m_langpack.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/m_langpack.h b/include/m_langpack.h index e601b58c49..d1dfb9d326 100644 --- a/include/m_langpack.h +++ b/include/m_langpack.h @@ -24,7 +24,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef M_LANGPACK_H__
#define M_LANGPACK_H__
-#if !defined( _STATIC )
+#if !defined(_STATIC)
#define MIRANDA_CUSTOM_LP
#endif
@@ -41,7 +41,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. //these versions, I pity them.
#define MS_LANGPACK_TRANSLATESTRING "LangPack/TranslateString"
-#if defined( MIRANDA_CUSTOM_LP )
+#if defined(MIRANDA_CUSTOM_LP)
extern int hLangpack;
@@ -105,7 +105,7 @@ typedef struct { #define MS_LANGPACK_TRANSLATEDIALOG "LangPack/TranslateDialog"
-#if defined( MIRANDA_CUSTOM_LP )
+#if defined(MIRANDA_CUSTOM_LP)
__inline static INT_PTR TranslateDialogDefault(HWND hwndDlg)
{
@@ -137,7 +137,7 @@ __inline static INT_PTR TranslateDialogDefault(HWND hwndDlg) //returns 0 on success, nonzero on failure
#define MS_LANGPACK_TRANSLATEMENU "LangPack/TranslateMenu"
-#if defined( MIRANDA_CUSTOM_LP )
+#if defined(MIRANDA_CUSTOM_LP)
__inline static INT_PTR TranslateMenu(HMENU hMenu)
{ return CallService(MS_LANGPACK_TRANSLATEMENU, (WPARAM)hMenu, hLangpack);
@@ -170,7 +170,7 @@ __inline static INT_PTR TranslateMenu(HMENU hMenu) //This string should be freed using mir_free() then
#define MS_LANGPACK_PCHARTOTCHAR "LangPack/PcharToTchar"
-#if defined( MIRANDA_CUSTOM_LP )
+#if defined(MIRANDA_CUSTOM_LP)
__inline static INT_PTR Langpack_PCharToTChar(const char* str)
{ return CallService(MS_LANGPACK_PCHARTOTCHAR, hLangpack, (LPARAM)str);
@@ -190,8 +190,8 @@ __inline static INT_PTR Langpack_PCharToTChar(const char* str) //always returns 0
#define MS_LANGPACK_REGISTER "LangPack/Register"
-#if defined( MIRANDA_CUSTOM_LP )
-__forceinline void mir_getLP( const PLUGININFOEX* pInfo )
+#if defined(MIRANDA_CUSTOM_LP)
+__forceinline void mir_getLP(const PLUGININFOEX* pInfo)
{ CallService(MS_LANGPACK_REGISTER, (WPARAM)&hLangpack, (LPARAM)pInfo);
}
#endif
|