1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-17 10:52:46 +00:00

Completely kill off CoreLibExe

This commit is contained in:
2012-01-24 23:05:48 -05:00
parent 63a9eea771
commit 91fc595407
36 changed files with 178 additions and 1145 deletions

View File

@ -157,8 +157,8 @@ TBuffer<T> & TBuffer<T>::operator= (const TBuffer<T> & source) {
//===========================================================================
template<class T>
bool TBuffer<T>::operator== (const TBuffer<T> & source) const {
unsigned size = MemSize(m_data);
return (size == MemSize(source.m_data)) && !memcmp(m_data, source.m_data, size);
unsigned size = _m_size(m_data);
return (size == _m_size(source.m_data)) && !memcmp(m_data, source.m_data, size);
}
//===========================================================================
@ -181,13 +181,13 @@ void TBuffer<T>::Attach (T * source, unsigned count) {
if (m_data)
free(m_data);
m_data = source;
ASSERT(MemSize(source) >= count * sizeof(T));
ASSERT(_m_size(source) >= count * sizeof(T));
}
//===========================================================================
template<class T>
unsigned TBuffer<T>::Bytes () const {
return m_data ? MemSize(m_data) : 0;
return m_data ? _m_size(m_data) : 0;
}
//===========================================================================
@ -202,7 +202,7 @@ void TBuffer<T>::Clear () {
//===========================================================================
template<class T>
unsigned TBuffer<T>::Count () const {
return m_data ? (MemSize(m_data) / sizeof(T)) : 0;
return m_data ? (_m_size(m_data) / sizeof(T)) : 0;
}
//===========================================================================
@ -558,7 +558,7 @@ void TFArray<T,C>::Attach (T * source, unsigned count) {
if (m_data)
free(m_data);
m_data = source;
m_alloc = MemSize(source) / sizeof(T);
m_alloc = _m_size(source) / sizeof(T);
m_count = count;
ASSERT(m_alloc >= m_count);
}

View File

@ -138,7 +138,7 @@ void CBaseSpareList::GrowSpareList (unsigned objectSize, const char typeName[])
void CBaseSpareList::CleanUp (const char typeName[]) {
// warn of resource leaks
#ifdef SPARELIST_TRACK_MEMORY
if (m_unfreedObjects && !ErrorGetOption(kErrOptDisableMemLeakChecking)) {
if (m_unfreedObjects) {
#ifdef CLIENT
{
char buffer[256];