Skip to content

Commit

Permalink
Revised internal type naming scheme to better sandbox Unity away from…
Browse files Browse the repository at this point in the history
… everything else. Sure, short was nice, but not at the expense of naming collisions.
  • Loading branch information
mvandervoord committed Nov 29, 2016
1 parent b77c6b8 commit 8e31f5d
Show file tree
Hide file tree
Showing 7 changed files with 399 additions and 399 deletions.
2 changes: 1 addition & 1 deletion extras/fixture/src/unity_fixture.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "unity_fixture.h"
#include "unity_internals.h"

struct _UnityFixture UnityFixture;
struct UNITY_FIXTURE_T UnityFixture;

/* If you decide to use the function pointer approach.
* Build with -D UNITY_OUTPUT_CHAR=outputChar and include <stdio.h>
Expand Down
4 changes: 2 additions & 2 deletions extras/fixture/src/unity_fixture_internals.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ extern "C"
{
#endif

struct _UnityFixture
struct UNITY_FIXTURE_T
{
int Verbose;
unsigned int RepeatCount;
const char* NameFilter;
const char* GroupFilter;
};
extern struct _UnityFixture UnityFixture;
extern struct UNITY_FIXTURE_T UnityFixture;

typedef void unityfunction(void);
void UnityTestRunner(unityfunction* setup,
Expand Down
6 changes: 3 additions & 3 deletions extras/fixture/test/unity_fixture_Test.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ TEST(UnityFixture, FreeNULLSafety)

TEST(UnityFixture, ConcludeTestIncrementsFailCount)
{
_U_UINT savedFails = Unity.TestFailures;
_U_UINT savedIgnores = Unity.TestIgnores;
UNITY_UINT savedFails = Unity.TestFailures;
UNITY_UINT savedIgnores = Unity.TestIgnores;
UnityOutputCharSpy_Enable(1);
Unity.CurrentTestFailed = 1;
UnityConcludeFixtureTest(); /* Resets TestFailed for this test to pass */
Expand Down Expand Up @@ -301,7 +301,7 @@ TEST(UnityCommandOptions, GroupOrNameFilterWithoutStringFails)

TEST(UnityCommandOptions, GroupFilterReallyFilters)
{
_U_UINT saved = Unity.NumberOfTests;
UNITY_UINT saved = Unity.NumberOfTests;
TEST_ASSERT_EQUAL(0, UnityGetCommandLineOptions(4, unknownCommand));
UnityIgnoreTest(NULL, "non-matching", NULL);
TEST_ASSERT_EQUAL(saved, Unity.NumberOfTests);
Expand Down
Loading

0 comments on commit 8e31f5d

Please sign in to comment.