rename LOCATION to GALLOC

This commit is contained in:
2023-07-26 19:35:27 +02:00
parent f05f3945fe
commit 21c78421a4
4 changed files with 43 additions and 43 deletions

View File

@ -7,11 +7,11 @@ main()
name = "galloc";
ptr1 = galloc(1);
test_num(ptr1, heap + LOCATION_DATA, "");
test_num(ptr1, heap + GALLOC_DATA, "");
free(ptr1);
ptr1 = galloc(1);
test_num(ptr1, heap + LOCATION_DATA, "alloc after free");
test_num(ptr1, heap + GALLOC_DATA, "alloc after free");
free(ptr1);
ptr2 = galloc(0x9000);

View File

@ -12,7 +12,7 @@ main()
test_num(leaks(), 0, "standart: leaks");
ptr2 = realloc(NULL, 6);
test_num(heap + LOCATION_DATA, ptr2, "NULL: value");
test_num(heap + GALLOC_DATA, ptr2, "NULL: value");
free(ptr2);
test_num(leaks(), 0, "NULL: leaks");