Skip to content

Commit faac698

Browse files
committed
Moved the contents of os.h to OSAlloc.h
1 parent 01161f6 commit faac698

File tree

5 files changed

+33
-25
lines changed

5 files changed

+33
-25
lines changed

ttyd-tools/rel/include/gc/os.h renamed to ttyd-tools/rel/include/gc/OSAlloc.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#include <cstdint>
44

5-
namespace gc::os {
5+
namespace gc::OSAlloc {
66

77
struct ChunkInfo
88
{
@@ -20,6 +20,14 @@ struct HeapInfo
2020

2121
extern "C" {
2222

23+
// DLInsert
24+
// OSAllocFromHeap
25+
// OSFreeToHeap
26+
// OSSetCurrentHeap
27+
// OSInitAlloc
28+
// OSCreateHeap
29+
// OSDestroyHeap
30+
2331
extern HeapInfo *HeapArray;
2432
extern int32_t NumHeaps;
2533

ttyd-tools/rel/include/ttyd.eu.lst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1827,12 +1827,12 @@
18271827
// OSAlloc.c
18281828
// text
18291829
// 8029A238:DLInsert
1830-
8029A2E4:OSAllocFromHeap
1831-
8029A3E0:OSFreeToHeap
1832-
8029A45C:OSSetCurrentHeap
1833-
8029A46C:OSInitAlloc
1834-
8029A4DC:OSCreateHeap
1835-
8029A548:OSDestroyHeap
1830+
// 8029A2E4:OSAllocFromHeap
1831+
// 8029A3E0:OSFreeToHeap
1832+
// 8029A45C:OSSetCurrentHeap
1833+
// 8029A46C:OSInitAlloc
1834+
// 8029A4DC:OSCreateHeap
1835+
// 8029A548:OSDestroyHeap
18361836
// data
18371837
8042B9E0:HeapArray
18381838
8042B9E4:NumHeaps

ttyd-tools/rel/include/ttyd.jp.lst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1823,12 +1823,12 @@
18231823
// OSAlloc.c
18241824
// text
18251825
// 802903E8:DLInsert
1826-
80290494:OSAllocFromHeap
1827-
80290590:OSFreeToHeap
1828-
8029060C:OSSetCurrentHeap
1829-
8029061C:OSInitAlloc
1830-
8029068C:OSCreateHeap
1831-
802906F8:OSDestroyHeap
1826+
// 80290494:OSAllocFromHeap
1827+
// 80290590:OSFreeToHeap
1828+
// 8029060C:OSSetCurrentHeap
1829+
// 8029061C:OSInitAlloc
1830+
// 8029068C:OSCreateHeap
1831+
// 802906F8:OSDestroyHeap
18321832
// data
18331833
80418EA0:HeapArray
18341834
80418EA4:NumHeaps

ttyd-tools/rel/include/ttyd.us.lst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1824,12 +1824,12 @@
18241824
// OSAlloc.c
18251825
// text
18261826
// 80296400:DLInsert
1827-
802964AC:OSAllocFromHeap
1828-
802965A8:OSFreeToHeap
1829-
80296624:OSSetCurrentHeap
1830-
80296634:OSInitAlloc
1831-
802966A4:OSCreateHeap
1832-
80296710:OSDestroyHeap
1827+
// 802964AC:OSAllocFromHeap
1828+
// 802965A8:OSFreeToHeap
1829+
// 80296624:OSSetCurrentHeap
1830+
// 80296634:OSInitAlloc
1831+
// 802966A4:OSCreateHeap
1832+
// 80296710:OSDestroyHeap
18331833
// data
18341834
8041F070:HeapArray
18351835
8041F074:NumHeaps

ttyd-tools/rel/source/main.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include "patch.h"
99

1010
#include <gc/OSCache.h>
11-
#include <gc/os.h>
11+
#include <gc/OSAlloc.h>
1212
#include <ttyd/item_data.h>
1313
#include <ttyd/seq_mapchange.h>
1414
#include <ttyd/seqdrv.h>
@@ -498,16 +498,16 @@ void checkHeaps()
498498
char *tempDisplayBuffer = DisplayBuffer;
499499

500500
// Check the standard heaps
501-
int32_t TotalHeaps = gc::os::NumHeaps;
502-
gc::os::HeapInfo *HeapArray = gc::os::HeapArray;
501+
int32_t TotalHeaps = gc::OSAlloc::NumHeaps;
502+
gc::OSAlloc::HeapInfo *HeapArray = gc::OSAlloc::HeapArray;
503503

504504
for (int32_t i = 0; i < TotalHeaps; i++)
505505
{
506-
const gc::os::HeapInfo &heap = HeapArray[i];
506+
const gc::OSAlloc::HeapInfo &heap = HeapArray[i];
507507
bool valid = true;
508508

509-
gc::os::ChunkInfo *currentChunk = nullptr;
510-
gc::os::ChunkInfo *prevChunk = nullptr;
509+
gc::OSAlloc::ChunkInfo *currentChunk = nullptr;
510+
gc::OSAlloc::ChunkInfo *prevChunk = nullptr;
511511
for (currentChunk = heap.firstUsed; currentChunk; currentChunk = currentChunk->next)
512512
{
513513
// Check pointer sanity

0 commit comments

Comments
 (0)