summaryrefslogtreecommitdiff
path: root/plugins/Utils/mir_memory.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-08-03 20:23:56 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-08-03 20:23:56 +0000
commit04cd8c25a959010db3f8e8c079bdcc0dcdd81a57 (patch)
tree8d14f806cf1150a6b4a377604882a14dc546bcc3 /plugins/Utils/mir_memory.h
parentc78a9a7552554b65bcd3d27605da2e470b39342d (diff)
rest of those unicode core checks
git-svn-id: http://svn.miranda-ng.org/main/trunk@1346 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Utils/mir_memory.h')
-rw-r--r--plugins/Utils/mir_memory.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/plugins/Utils/mir_memory.h b/plugins/Utils/mir_memory.h
index d62f4833f3..56ee80d2ac 100644
--- a/plugins/Utils/mir_memory.h
+++ b/plugins/Utils/mir_memory.h
@@ -20,27 +20,8 @@ Boston, MA 02111-1307, USA.
#ifndef __MIR_MEMORY_H__
# define __MIR_MEMORY_H__
-
#include <windows.h>
-
-
-static BOOL mir_is_unicode()
-{
- return TRUE;
-}
-
-
-static void * mir_alloc0(size_t size)
-{
- void * ptr = mir_alloc(size);
-
- if (ptr != NULL)
- memset(ptr, 0, size);
-
- return ptr;
-}
-
static int strcmpnull(char *str1, char *str2)
{
if ( str1 == NULL && str2 == NULL )
@@ -65,31 +46,14 @@ static int strcmpnullW(WCHAR *str1, WCHAR *str2)
return lstrcmpW(str1, str2);
}
-
-
-#define CHECK_VERSION(_NAME_) \
- if ( !mir_is_unicode()) \
- { \
- MessageBox(NULL, _T("Your Miranda is ansi. You have to install ansi ") _T(_NAME_), \
- _T(_NAME_), MB_OK | MB_ICONERROR); \
- return -1; \
- }
-
# define lstrcmpnull strcmpnullW
#define INPLACE_CHAR_TO_TCHAR(_new_var_, _size_, _old_var_) \
TCHAR _new_var_[_size_]; \
MultiByteToWideChar(CP_ACP, 0, _old_var_, -1, _new_var_, _size_)
-
#define INPLACE_TCHAR_TO_CHAR(_new_var_, _size_, _old_var_) \
char _new_var_[_size_]; \
WideCharToMultiByte(CP_ACP, 0, _old_var_, -1, _new_var_, _size_, NULL, NULL);
-
-// Free memory and set to NULL
-//#define MIR_FREE(_x_) if (_x_ != NULL) { mir_free(_x_); _x_ = NULL; }
-
-
-
#endif // __MIR_MEMORY_H__