From a7b60dfc88b848662d77d83c5d8cb45f567e5b65 Mon Sep 17 00:00:00 2001 From: jsalling Date: Fri, 15 Jan 2016 23:11:29 -0600 Subject: [PATCH] Consistent use of * in types in the Fixture, whitespace only --- extras/fixture/src/unity_fixture.c | 32 ++++++++++---------- extras/fixture/src/unity_fixture_internals.h | 18 +++++------ 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/extras/fixture/src/unity_fixture.c b/extras/fixture/src/unity_fixture.c index 1daf0de..c4d0af2 100644 --- a/extras/fixture/src/unity_fixture.c +++ b/extras/fixture/src/unity_fixture.c @@ -48,7 +48,7 @@ int UnityMain(int argc, const char* argv[], void (*runAllTests)(void)) return UnityFailureCount(); } -static int selected(const char * filter, const char * name) +static int selected(const char* filter, const char* name) { if (filter == 0) return 1; @@ -66,12 +66,12 @@ static int groupSelected(const char* group) } void UnityTestRunner(unityfunction* setup, - unityfunction* testBody, - unityfunction* teardown, - const char * printableName, - const char * group, - const char * name, - const char * file, int line) + unityfunction* testBody, + unityfunction* teardown, + const char* printableName, + const char* group, + const char* name, + const char* file, int line) { if (testSelected(name) && groupSelected(group)) { @@ -107,7 +107,7 @@ void UnityTestRunner(unityfunction* setup, } } -void UnityIgnoreTest(const char * printableName, const char * group, const char * name) +void UnityIgnoreTest(const char* printableName, const char* group, const char* name) { if (testSelected(name) && groupSelected(group)) { @@ -176,7 +176,7 @@ typedef struct GuardBytes static const char end[] = "END"; -void * unity_malloc(size_t size) +void* unity_malloc(size_t size) { char* mem; Guard* guard; @@ -198,7 +198,7 @@ void * unity_malloc(size_t size) return (void*)mem; } -static int isOverrun(void * mem) +static int isOverrun(void* mem) { Guard* guard = (Guard*)mem; char* memAsChar = (char*)mem; @@ -207,7 +207,7 @@ static int isOverrun(void * mem) return strcmp(&memAsChar[guard->size], end) != 0; } -static void release_memory(void * mem) +static void release_memory(void* mem) { Guard* guard = (Guard*)mem; guard--; @@ -216,7 +216,7 @@ static void release_memory(void * mem) UNITY_FIXTURE_FREE(guard); } -void unity_free(void * mem) +void unity_free(void* mem) { int overrun; @@ -240,7 +240,7 @@ void* unity_calloc(size_t num, size_t size) return mem; } -void* unity_realloc(void * oldMem, size_t size) +void* unity_realloc(void* oldMem, size_t size) { Guard* guard = (Guard*)oldMem; // char* memAsChar = (char*)oldMem; @@ -276,9 +276,9 @@ void* unity_realloc(void * oldMem, size_t size) //Automatic pointer restoration functions typedef struct _PointerPair { - struct _PointerPair * next; - void ** pointer; - void * old_value; + struct _PointerPair* next; + void** pointer; + void* old_value; } PointerPair; enum {MAX_POINTERS=50}; diff --git a/extras/fixture/src/unity_fixture_internals.h b/extras/fixture/src/unity_fixture_internals.h index 2dd9734..3046e53 100644 --- a/extras/fixture/src/unity_fixture_internals.h +++ b/extras/fixture/src/unity_fixture_internals.h @@ -17,15 +17,15 @@ typedef struct _UNITY_FIXTURE_T } UNITY_FIXTURE_T; typedef void unityfunction(void); -void UnityTestRunner(unityfunction * setup, - unityfunction * body, - unityfunction * teardown, - const char * printableName, - const char * group, - const char * name, - const char * file, int line); +void UnityTestRunner(unityfunction* setup, + unityfunction* body, + unityfunction* teardown, + const char* printableName, + const char* group, + const char* name, + const char* file, int line); -void UnityIgnoreTest(const char * printableName, const char * group, const char * name); +void UnityIgnoreTest(const char* printableName, const char* group, const char* name); void UnityMalloc_StartTest(void); void UnityMalloc_EndTest(void); UNITY_COUNTER_TYPE UnityFailureCount(void); @@ -34,7 +34,7 @@ UNITY_COUNTER_TYPE UnityTestsCount(void); int UnityGetCommandLineOptions(int argc, const char* argv[]); void UnityConcludeFixtureTest(void); -void UnityPointer_Set(void ** ptr, void * newValue); +void UnityPointer_Set(void** ptr, void* newValue); void UnityPointer_UndoAllSets(void); void UnityPointer_Init(void); -- GitLab