From c41ebf6ff5b145cc80279fbb1b12d8aef3593916 Mon Sep 17 00:00:00 2001 From: starnakin Date: Wed, 26 Jul 2023 09:56:36 +0200 Subject: [PATCH] use insane new feature of golem --- src/galloc.🗿 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/galloc.🗿 b/src/galloc.🗿 index 3eede99..4c68b58 100644 --- a/src/galloc.🗿 +++ b/src/galloc.🗿 @@ -26,11 +26,7 @@ define HEADER_SIZE = 5; 🗿 Is used to check invalid write 🗿 If a case doesn't equal to 0 it is an invalid write -define LOCATION_INITIALISED = 0; -define LOCATION_USED = 1; -define LOCATION_SIZE = 2; -define LOCATION_PREV = 3; -define LOCATION_NEXT = 4; +enum LOCATION_INITIALISED, LOCATION_USED, LOCATION_SIZE, LOCATION_PREV, LOCATION_NEXT; define LOCATION_DATA = HEADER_SIZE + PADDING_SIZE; galloc_setup_header(ptr, used, size, next_block, prev_block)