From 26b426c307477ef8c1d1ae8ec96d58fcaa8494a4 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Wed, 6 Nov 2019 12:16:21 -0500 Subject: [PATCH] Mark internal functions as static --- gc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gc.c b/gc.c index d91254d7..84c29bf5 100644 --- a/gc.c +++ b/gc.c @@ -493,7 +493,7 @@ void gc_print_fixed_size_free_list(gc_heap *h) * @brief Essentially this is half of the sweep code, for sweeping bump&pop * @param h Heap page to convert */ -size_t gc_convert_heap_page_to_free_list(gc_heap *h, gc_thread_data *thd) +static size_t gc_convert_heap_page_to_free_list(gc_heap *h, gc_thread_data *thd) { size_t freed = 0; object p; @@ -584,7 +584,7 @@ size_t gc_convert_heap_page_to_free_list(gc_heap *h, gc_thread_data *thd) * memory slots to the heap. It is only called by the collector thread after * the heap has been traced to identify live objects. */ -gc_heap *gc_sweep_fixed_size(gc_heap * h, int heap_type, gc_thread_data *thd) +static gc_heap *gc_sweep_fixed_size(gc_heap * h, int heap_type, gc_thread_data *thd) { short heap_is_empty; object p, end; @@ -1224,7 +1224,7 @@ void *gc_try_alloc_slow(gc_heap *h_passed, gc_heap *h, int heap_type, size_t siz * This function will fail if there is no space on the heap for the * requested object. */ -void *gc_try_alloc_fixed_size(gc_heap * h, int heap_type, size_t size, char *obj, gc_thread_data * thd) +static void *gc_try_alloc_fixed_size(gc_heap * h, int heap_type, size_t size, char *obj, gc_thread_data * thd) { void *result; //gc_heap *h_passed = h;