#define class struct

#ifdef __TLS__
#include <windows.h-->

:dword fastcall __new(EAX)
{
	return GlobalAlloc(GMEM_FIXED,EAX);
}

:dword fastcall __delete(EAX)
{
	IF(EAX)GlobalFree(EAX);
}

#endif

#ifdef __MSDOS__
#include "alloc.h--"

:word fastcall __new(AX)
{
	return MALLOC(AX);
}

:word fastcall __delete(AX)
{
	IF(AX)FREE(AX);
}

#endif
