2010-03-24 17:22:56 +00:00
|
|
|
// Unicode support by Jim Park -- 08/22/2007
|
|
|
|
|
2003-09-15 23:20:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
2009-02-04 14:08:31 +00:00
|
|
|
#include <nsis/pluginapi.h> // nsis plugin
|
2008-12-12 19:27:02 +00:00
|
|
|
|
2003-09-15 23:20:36 +00:00
|
|
|
#ifdef _DEBUG
|
|
|
|
//#define _DEBUG_LEAKS
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _DEBUG_LEAKS
|
|
|
|
|
|
|
|
#define dbgGlobalAlloc(a, b) watchGlobalAlloc(a, b)
|
|
|
|
#define dbgGlobalFree(a) watchGlobalFree(a)
|
|
|
|
#define dbgGlobalCheck() watchGlobal();
|
|
|
|
void watchGlobal();
|
|
|
|
void watchGlobalFree(HGLOBAL block);
|
|
|
|
HGLOBAL watchGlobalAlloc(UINT Flags, UINT size);
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#define dbgGlobalAlloc(a, b) GlobalAlloc(a, b)
|
|
|
|
#define dbgGlobalFree(a) GlobalFree(a)
|
|
|
|
#define dbgGlobalCheck() {};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2010-03-24 17:22:56 +00:00
|
|
|
TCHAR *AllocString();
|
2003-09-15 23:20:36 +00:00
|
|
|
ExpressionItem *AllocItem();
|
|
|
|
ExpressionItem *AllocArray(int size);
|
|
|
|
ExpressionItem *CopyItem(ExpressionItem *item, int NeedConst = 0);
|