From 8c5f0fc6c63a804c00a001dd093c0fa998b01485 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Mon, 26 Sep 2022 09:48:39 +0300 Subject: Include stdio.h and stdlib.h only from gc_priv.h (refactoring) * allchblk.c: Do not include stdio.h directly. * alloc.c: Likewise. * dyn_load.c [(DYNAMIC_LOADING || MSWIN32 || MSWINCE || CYGWIN32) && !PCR]: Likewise. * mach_dep.c [!PLATFORM_MACH_DEP && !SN_TARGET_PSP2]: Likewise. * malloc.c: Likewise. * mallocx.c: Likewise. * mark.c: Likewise. * mark_rts.c: Likewise. * misc.c: Likewise. * new_hblk.c: Likewise. * os_dep.c: Likewise. * reclaim.c: Likewise. * tests/disclaim_bench.c: Likewise. * tests/gctest.c: Likewise. * dbg_mlc.c [KEEP_BACK_PTRS && !LINT2]: Do not include stdlib.h directly. * dyn_load.c [MSWIN32 || MSWINCE || CYGWIN32]: Likewise. * os_dep.c [HAIKU]: Likewise. * pthread_support.c [GC_PTHREADS && !GC_WIN32_THREADS]: Likewise. * tests/disclaim_bench.c: Likewise. * tests/gctest.c [!mips || !SYSTYPE_BSD43]: Likewise. * thread_local_alloc.c: Likewise. * include/private/gc_priv.h: Include stdio.h. --- new_hblk.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'new_hblk.c') diff --git a/new_hblk.c b/new_hblk.c index 41216699..83f5627d 100644 --- a/new_hblk.c +++ b/new_hblk.c @@ -21,8 +21,6 @@ * void GC_new_hblk(size, kind) */ -#include - #ifndef SMALL_CONFIG /* Build a free list for size 2 (words) cleared objects inside */ /* hblk h. Set the last link to be ofl. Return a pointer to the */ -- cgit v1.2.1