From aedb3394abee7818edfe53f2066f2e8ae1f048af Mon Sep 17 00:00:00 2001 From: Steven Eker Date: Wed, 30 Oct 2024 06:21:56 +0100 Subject: [PATCH] fix formatting --- include/runtime/header.h | 6 +++--- runtime/alloc/arena.cpp | 6 +++--- unittests/runtime-collections/lists.cpp | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/include/runtime/header.h b/include/runtime/header.h index 0400f3c13..d82cae004 100644 --- a/include/runtime/header.h +++ b/include/runtime/header.h @@ -48,9 +48,9 @@ void k_hash(block *, void *); bool hash_enter(void); void hash_exit(void); #ifdef __MACH__ - // - // thread_local disabled for Apple - // +// +// thread_local disabled for Apple +// extern bool gc_enabled; #else extern thread_local bool gc_enabled; diff --git a/runtime/alloc/arena.cpp b/runtime/alloc/arena.cpp index b775a0bed..c3815b269 100644 --- a/runtime/alloc/arena.cpp +++ b/runtime/alloc/arena.cpp @@ -150,9 +150,9 @@ static void fresh_block(struct arena *arena) { } #ifdef __MACH__ - // - // thread_local disabled for Apple - // +// +// thread_local disabled for Apple +// bool gc_enabled = true; #else thread_local bool gc_enabled = true; diff --git a/unittests/runtime-collections/lists.cpp b/unittests/runtime-collections/lists.cpp index a8d6ec5e8..1aa13a4e0 100644 --- a/unittests/runtime-collections/lists.cpp +++ b/unittests/runtime-collections/lists.cpp @@ -63,9 +63,9 @@ block *DUMMY1 = &D1; } #ifdef __MACH__ - // - // thread_local disabled for Apple - // +// +// thread_local disabled for Apple +// bool gc_enabled; #else thread_local bool gc_enabled;