From 1bb26c154fe83c1518d576ee6e6b0d212ed22e3d Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Mon, 14 Nov 2016 10:39:54 +0300 Subject: [PATCH] Change no-argument functions declaration style to ANSI C (extra files) * extra/AmigaOS.c (GC_get_main_stack_base, GC_register_data_segments): Replace "()" to "(void)" in the function prototype. * extra/MacOS.c (GC_MacGetDataStart, perform_final_collection, GC_MacFreeTemporaryMemory, GC_MacGetDataEnd): Likewise. * extra/msvc_dbg.c (GetSymHandle): Likewise. --- extra/AmigaOS.c | 4 ++-- extra/MacOS.c | 8 ++++---- extra/msvc_dbg.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/extra/AmigaOS.c b/extra/AmigaOS.c index 27c071fc..805bd728 100644 --- a/extra/AmigaOS.c +++ b/extra/AmigaOS.c @@ -40,7 +40,7 @@ Find the base of the stack. ******************************************************************/ -ptr_t GC_get_main_stack_base() +ptr_t GC_get_main_stack_base(void) { struct Process *proc = (struct Process*)SysBase->ThisTask; @@ -93,7 +93,7 @@ ptr_t GC_get_stack_base() Register data segments. ******************************************************************/ - void GC_register_data_segments() + void GC_register_data_segments(void) { struct Process *proc; struct CommandLineInterface *cli; diff --git a/extra/MacOS.c b/extra/MacOS.c index 4fb82755..3e0f075a 100644 --- a/extra/MacOS.c +++ b/extra/MacOS.c @@ -35,7 +35,7 @@ typedef struct { unsigned long JTOffset; } *CodeZeroPtr, **CodeZeroHandle; -void* GC_MacGetDataStart() +void* GC_MacGetDataStart(void) { CodeZeroHandle code0 = (CodeZeroHandle)GetResource('CODE', 0); if (code0) { @@ -94,7 +94,7 @@ Ptr GC_MacTemporaryNewPtr(size_t size, Boolean clearMemory) extern word GC_fo_entries; -static void perform_final_collection() +static void perform_final_collection(void) { unsigned i; word last_fo_entries = 0; @@ -111,7 +111,7 @@ static void perform_final_collection() } -void GC_MacFreeTemporaryMemory() +void GC_MacFreeTemporaryMemory(void) { # if defined(SHARED_LIBRARY_BUILD) /* if possible, collect all memory, and invoke all finalizers. */ @@ -142,7 +142,7 @@ void GC_MacFreeTemporaryMemory() #if __option(far_data) - void* GC_MacGetDataEnd() + void* GC_MacGetDataEnd(void) { CodeZeroHandle code0 = (CodeZeroHandle)GetResource('CODE', 0); if (code0) { diff --git a/extra/msvc_dbg.c b/extra/msvc_dbg.c index fbceff42..6855243e 100644 --- a/extra/msvc_dbg.c +++ b/extra/msvc_dbg.c @@ -47,7 +47,7 @@ typedef GC_word word; typedef ULONG ULONG_ADDR; #endif -static HANDLE GetSymHandle() +static HANDLE GetSymHandle(void) { static HANDLE symHandle = NULL; if (!symHandle) { -- 2.40.0