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

@ -12,11 +12,11 @@ realloc(ptr, new_size)
}
if (ptr == NULL)
return new_space;
block_ptr = ptr - LOCATION_DATA;
block_ptr = ptr - GALLOC_DATA;
i = 0;
loop
{
if (i == new_size | i == [block_ptr + LOCATION_SIZE])
if (i == new_size | i == [block_ptr + GALLOC_SIZE])
break;
[new_space + i] = [ptr + i];
i++;