From 05e95b57e4c4babb0c3b6979896528f3fab0fc2b Mon Sep 17 00:00:00 2001 From: Jay Krell Date: Wed, 24 Jul 2019 08:31:26 -0700 Subject: [PATCH] Remove unneeded auto cast with codeman. (mono/mono#15792) The uses are all void* or casted. Commit migrated from https://github.com/mono/mono/commit/9e78ce94d51b6df7cefd84b139159bda1d125a5e --- src/mono/mono/utils/mono-codeman.c | 4 ++-- src/mono/mono/utils/mono-codeman.h | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/mono/mono/utils/mono-codeman.c b/src/mono/mono/utils/mono-codeman.c index 6bc0d0b..0f1c88d 100644 --- a/src/mono/mono/utils/mono-codeman.c +++ b/src/mono/mono/utils/mono-codeman.c @@ -440,7 +440,7 @@ new_codechunk (CodeChunk *last, int dynamic, int size) * \returns the pointer to the allocated memory or NULL on failure */ void* -(mono_code_manager_reserve_align) (MonoCodeManager *cman, int size, int alignment) +mono_code_manager_reserve_align (MonoCodeManager *cman, int size, int alignment) { CodeChunk *chunk, *prev; void *ptr; @@ -514,7 +514,7 @@ void* * \returns the pointer to the allocated memory or NULL on failure */ void* -(mono_code_manager_reserve) (MonoCodeManager *cman, int size) +mono_code_manager_reserve (MonoCodeManager *cman, int size) { return mono_code_manager_reserve_align (cman, size, MIN_ALIGN); } diff --git a/src/mono/mono/utils/mono-codeman.h b/src/mono/mono/utils/mono-codeman.h index 65f0a8a..4cf447f 100644 --- a/src/mono/mono/utils/mono-codeman.h +++ b/src/mono/mono/utils/mono-codeman.h @@ -29,10 +29,8 @@ void mono_code_manager_invalidate (MonoCodeManager *cman); void mono_code_manager_set_read_only (MonoCodeManager *cman); void* mono_code_manager_reserve_align (MonoCodeManager *cman, int size, int alignment); -#define mono_code_manager_reserve_align(cman, size, align) (g_cast (mono_code_manager_reserve_align ((cman), (size), (align)))) void* mono_code_manager_reserve (MonoCodeManager *cman, int size); -#define mono_code_manager_reserve(cman, size) (g_cast (mono_code_manager_reserve ((cman), (size)))) void mono_code_manager_commit (MonoCodeManager *cman, void *data, int size, int newsize); int mono_code_manager_size (MonoCodeManager *cman, int *used_size); void mono_code_manager_init (void); -- 2.7.4