Added support for NetWare (libc) built using OpenWatcom.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@377 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
@@ -127,15 +127,6 @@ static FLMBOOL gv_bLogLeaks = FALSE;
|
||||
#define F_PICKET_FENCE_SIZE 0
|
||||
#endif
|
||||
|
||||
#ifdef FLM_NLM
|
||||
extern "C"
|
||||
{
|
||||
void GetClosestSymbol(
|
||||
BYTE * szBuffer,
|
||||
LONG udAddress);
|
||||
}
|
||||
#endif
|
||||
|
||||
FSTATIC FLMBOOL initMemTracking( void);
|
||||
|
||||
FSTATIC void saveMemTrackingInfo(
|
||||
@@ -1330,11 +1321,6 @@ void logMemLeak(
|
||||
udDisplacement);
|
||||
}
|
||||
}
|
||||
#elif defined( FLM_NLM)
|
||||
{
|
||||
szFuncName [0] = '\t';
|
||||
GetClosestSymbol( (BYTE *)(&szFuncName[1]), (LONG)(*puiStack));
|
||||
}
|
||||
#else
|
||||
|
||||
#ifdef HAVE_DLADDR
|
||||
@@ -4604,6 +4590,7 @@ void F_Object::operator delete(
|
||||
/****************************************************************************
|
||||
Desc:
|
||||
****************************************************************************/
|
||||
#if !defined( FLM_WATCOM_NLM)
|
||||
void F_Object::operator delete(
|
||||
void * ptr,
|
||||
const char *, // file
|
||||
@@ -4616,10 +4603,12 @@ void F_Object::operator delete(
|
||||
|
||||
f_freeImp( &ptr, TRUE);
|
||||
}
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
Desc:
|
||||
****************************************************************************/
|
||||
#if !defined( FLM_WATCOM_NLM)
|
||||
void F_Object::operator delete[](
|
||||
void * ptr,
|
||||
const char *, // file
|
||||
@@ -4632,6 +4621,7 @@ void F_Object::operator delete[](
|
||||
|
||||
f_freeImp( &ptr, TRUE);
|
||||
}
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
Desc:
|
||||
@@ -4656,6 +4646,7 @@ void F_OSBase::operator delete(
|
||||
/****************************************************************************
|
||||
Desc:
|
||||
****************************************************************************/
|
||||
#if !defined( FLM_WATCOM_NLM)
|
||||
void F_OSBase::operator delete(
|
||||
void * ptr,
|
||||
const char *, // file
|
||||
@@ -4663,10 +4654,12 @@ void F_OSBase::operator delete(
|
||||
{
|
||||
free( &ptr);
|
||||
}
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
Desc:
|
||||
****************************************************************************/
|
||||
#if !defined( FLM_WATCOM_NLM)
|
||||
void F_OSBase::operator delete[](
|
||||
void * ptr,
|
||||
const char *, // file
|
||||
@@ -4674,3 +4667,4 @@ void F_OSBase::operator delete[](
|
||||
{
|
||||
free( &ptr);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user