diff options
| author | md5 | 2011-03-08 14:46:03 +0200 |
|---|---|---|
| committer | md5 | 2011-03-08 14:46:03 +0200 |
| commit | 0642b30933b464ddffff591ca672345d0ec55103 (patch) | |
| tree | 7bbb6fb11aa1b1e51f0b348ab5fac073f0df7001 /engines/sci/engine/gc.cpp | |
| parent | aa452d3aeb3e2506c7386554d5dfbe852b8ae475 (diff) | |
| download | scummvm-rg350-0642b30933b464ddffff591ca672345d0ec55103.tar.gz scummvm-rg350-0642b30933b464ddffff591ca672345d0ec55103.tar.bz2 scummvm-rg350-0642b30933b464ddffff591ca672345d0ec55103.zip | |
SCI: Cleanup
Diffstat (limited to 'engines/sci/engine/gc.cpp')
| -rw-r--r-- | engines/sci/engine/gc.cpp | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/engines/sci/engine/gc.cpp b/engines/sci/engine/gc.cpp index 6d00c20422..1f24e68da7 100644 --- a/engines/sci/engine/gc.cpp +++ b/engines/sci/engine/gc.cpp @@ -31,6 +31,24 @@ namespace Sci { //#define GC_DEBUG_CODE +#ifdef GC_DEBUG_CODE +const char *segmentTypeNames[] = { + "invalid", // 0 + "script", // 1 + "clones", // 2 + "locals", // 3 + "stack", // 4 + "obsolete", // 5: obsolete system strings + "lists", // 6 + "nodes", // 7 + "hunk", // 8 + "dynmem", // 9 + "obsolete", // 10: obsolete system strings + "array", // 11: SCI32 arrays + "string" // 12: SCI32 strings +}; +#endif + struct WorklistManager { Common::Array<reg_t> _worklist; AddrSet _map; // used for 2 contains() calls, inside push() and run_gc() @@ -186,7 +204,7 @@ void run_gc(EngineState *s) { if (mobj != NULL) { #ifdef GC_DEBUG_CODE const SegmentType type = mobj->getType(); - segnames[type] = SegmentObj::getSegmentTypeName(type); + segnames[type] = segmentTypeNames[type]; #endif // Get a list of all deallocatable objects in this segment, |
