rename LOCATION to GALLOC
This commit is contained in:
@ -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);
|
||||
|
@ -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");
|
||||
|
||||
|
Reference in New Issue
Block a user