summaryrefslogtreecommitdiff
path: root/plugins/Svc_vi/common.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-05-26 14:47:04 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-05-26 14:47:04 +0000
commit1d9dd615e5f1a43d3b78f37b5aaae836dfac1c4d (patch)
treedd3dd64e8c60cccb072e5acae857c9c55203e86d /plugins/Svc_vi/common.h
parent32abe163ec316671ec5a0a3bbec68ec13f71cb92 (diff)
- plugin converted to Unicode
- old bug fixed with the profile path git-svn-id: http://svn.miranda-ng.org/main/trunk@182 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Svc_vi/common.h')
-rw-r--r--plugins/Svc_vi/common.h20
1 files changed, 15 insertions, 5 deletions
diff --git a/plugins/Svc_vi/common.h b/plugins/Svc_vi/common.h
index 84dc24a55b..0d2b22a711 100644
--- a/plugins/Svc_vi/common.h
+++ b/plugins/Svc_vi/common.h
@@ -62,6 +62,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "m_utils.h"
#include "m_updater.h"
#include "m_folders.h"
+#include "win2k.h"
#include "utils.h"
@@ -93,11 +94,20 @@ extern BOOL verbose;
const MUUID UUID_NULL = {0x00000000, 0x0000, 0x0000, { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }};
-//miranda [re]alloc and free functions
-//main.cpp
-extern void * (* MirandaMalloc)(size_t);
-extern void * (* MirandaRealloc)(void *, size_t);
-extern void (* MirandaFree)(void *);
+///////////////////////////////////////////////////////////////////////
+class _A2T
+{
+ TCHAR* buf;
+
+public:
+ _A2T( const char* s ) : buf( mir_a2t( s )) {}
+ _A2T( const char* s, int cp ) : buf( mir_a2t_cp( s, cp )) {}
+ ~_A2T() { mir_free(buf); }
+
+ __forceinline operator TCHAR*() const
+ { return buf;
+ }
+};
#define OLD_MIRANDAPLUGININFO_SUPPORT PLUGININFO oldPluginInfo = { \
sizeof(PLUGININFO), \