- config.h: massive improvements, much clearer.

- tentatively activate PCH if gcc > 3.4. remove XP_ defines (which were
undocumented; now in scripting/spidermonkey.h)
- rename some config defines
- move sysdep/debug.h to lib/debug.h (it's portable; was wrong all
along)
- grouped all debug heap related stuff to debug.h:debug_heap_*
- sysdep: fix circular include issue with debug.h

This was SVN commit r2427.
This commit is contained in:
janwas
2005-06-22 03:23:22 +00:00
parent 064dd5699d
commit 8f9a3fc38f
19 changed files with 385 additions and 325 deletions
+3 -3
View File
@@ -21,7 +21,7 @@
#include <string.h>
#include "lib.h"
#include "sysdep/debug.h"
#include "debug.h"
#include "nommgr.h"
// some functions here are called from within mmgr; disable its hooks
// so that our allocations don't cause infinite recursion.
@@ -507,8 +507,8 @@ ErrorReaction display_error(const wchar_t* description, int flags,
{
// disable memory-leak reporting to avoid a flood of warnings
// (lots of stuff will leak since we exit abnormally).
debug_disable_leak_reporting();
#ifdef HAVE_MMGR
debug_heap_enable(DEBUG_HEAP_NONE);
#ifdef CONFIG_USE_MMGR
mmgr_set_options(0);
#endif