remove mmgr and macros that redefine malloc/new/free

(see http://www.wildfiregames.com/forum/index.php?showtopic=11450&hl= )

clean up debug module
. no longer include platform-dependent header (-> less rebuilds)
. DISPLAY_ERROR -> DEBUG_DISPLAY_ERROR
. parts of config.h that don't affect all files moved to config.2 (->
fewer full rebuilds)
. remove creaky symbol cache (no longer needed for mmgr)
. remove TLS thread naming stuff (can use debugger's thread window
instead; no need for platform independence there)

wdbg: remove thread suspension and breakpoint APIs (not needed)

acpi: fix: u64 -> uintptr_t

wutil: fix WinScopedLock, use that instead of direct lock() functions

misc:
. get rid of SAFE_STRCPY, replace with strcpy_s
. remove _getcwd (shouldn't be used)

This was SVN commit r5563.
This commit is contained in:
janwas
2008-01-19 11:33:11 +00:00
parent 3d571150ae
commit 9269be9ee3
52 changed files with 301 additions and 1174 deletions
-6
View File
@@ -940,9 +940,7 @@ void CJSComplex<T, ReadOnly>::AddProperty( const CStrW& PropertyName, jsval Valu
{
DeletePreviouslyAssignedProperty( PropertyName );
void* mem = jscomplexproperty_suballoc();
#include "lib/nommgr.h"
CJSDynamicComplexProperty* newProp = new(mem) CJSValComplexProperty( Value, false );
#include "lib/mmgr.h"
m_Properties[PropertyName] = newProp;
ReflectorTable::iterator it;
@@ -1091,9 +1089,7 @@ void MemberAddPropertyImpl( IJSComplex* obj, const CStrW& PropertyName, PropType
{
((T*)obj)->DeletePreviouslyAssignedProperty( PropertyName );
void* mem = jscomplexproperty_suballoc();
#include "lib/nommgr.h"
obj->m_Properties[PropertyName] = new(mem) CJSComplexProperty<PropType, ReadOnly>( Native, PropAllowInheritance, Update, Refresh );
#include "lib/mmgr.h"
}
// PropertyName must not already exist! (verified in debug build)
@@ -1102,9 +1098,7 @@ void MemberAddReadOnlyPropertyImpl( IJSComplex* obj, const CStrW& PropertyName,
{
((T*)obj)->DeletePreviouslyAssignedProperty( PropertyName );
void* mem = jscomplexproperty_suballoc();
#include "lib/nommgr.h"
obj->m_Properties[PropertyName] = new(mem) CJSComplexProperty<PropType, true>( Native, PropAllowInheritance, Update, Refresh );
#include "lib/mmgr.h"
}
#endif