Fixing lalr on windows
This commit is contained in:
parent
ffafeba6c2
commit
afe32d6014
15 changed files with 1276 additions and 1226 deletions
|
|
@ -11,6 +11,7 @@
|
|||
namespace obj {
|
||||
|
||||
ObjectMemHead* bottom = nullptr;
|
||||
tp::ualni count = 0;
|
||||
|
||||
struct ObjectsFileHeader {
|
||||
char name[10] = { 0 };
|
||||
|
|
@ -33,16 +34,17 @@ namespace obj {
|
|||
memh->down = NULL;
|
||||
memh->flags = 0;
|
||||
|
||||
#ifdef OBJECT_REF_COUNT
|
||||
memh->refc = (tp::alni) 1;
|
||||
#endif
|
||||
|
||||
if (bottom) {
|
||||
bottom->down = memh;
|
||||
}
|
||||
|
||||
memh->up = bottom;
|
||||
bottom = memh;
|
||||
|
||||
count++;
|
||||
|
||||
NDO_FROM_MEMH(memh)->type = type;
|
||||
return NDO_FROM_MEMH(memh);
|
||||
}
|
||||
|
|
@ -61,6 +63,8 @@ namespace obj {
|
|||
}
|
||||
|
||||
tp::HeapAllocGlobal::deallocate(memh);
|
||||
|
||||
count--;
|
||||
}
|
||||
|
||||
void logTypeData(const ObjectType* type) {
|
||||
|
|
@ -71,6 +75,8 @@ namespace obj {
|
|||
}
|
||||
}
|
||||
|
||||
tp::ualni getObjCount() { return count; }
|
||||
|
||||
void assertNoLeaks() {
|
||||
if (bottom) {
|
||||
printf("ERROR : not all objects are destroyed\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue